20 Commits

Author SHA1 Message Date
Xav Paice
18419a87c5 Add object-rsync-timeout option
Adds the rsync_timeout option to to object-server.conf, so we can adjust
it away from the default of 900s.

If there are a number of large partitions needing replication,
occasionally one needs to adjust the timeout in order to allow the rsync
to complete rather than timeout and retry.

Change-Id: I2d895741cb0528836a675deb6399005a5bf59ab5
Closes-bug: 1702039
2017-07-04 07:57:22 +12:00
Luong Anh Tuan
bca8efdcd5 Replace assertEquals with assertEqual
The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

Change-Id: If7a404da609eb3cae22627f3b9d71292b8865674
Closes-Bug: #1218185
2016-11-22 10:23:25 +07:00
James Page
ab35249f38 Re-license charm as Apache-2.0
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.

Change-Id: I97206ee8be76220cb0937a09be3230432e04535a
2016-07-01 18:15:00 +01:00
James Page
5dd12f71d8 Tidy lint 2016-02-09 10:29:16 +00:00
James Page
9d042778d2 Resync helpers, refactor code to use cpu calcs from charmhelpers 2016-01-30 13:37:50 +01:00
Adam Collard
6cbfd89ad2 Fix references in unit_tests 2015-07-17 16:52:38 +01:00
Edward Hope-Morley
b4380504f2 [xtrusia,r=hopem]
Adds more unit tests

Closes-Bug: 1375395
2015-03-05 10:24:01 +08:00
Seyeong Kim
337af05ebf fix lint error 2015-02-03 04:01:59 -08:00
Seyeong Kim
4d0860e25e add more unit tests 2015-01-27 18:39:28 -08:00
Tom Haddon
338f33a26d Explicitly set rsync config values for better testing 2014-09-12 12:02:17 +01:00
Tom Haddon
5659fadb6c Fix expected output of test_swift_storage_context 2014-09-12 10:40:49 +01:00
Tom Haddon
6391ad523b Add config options for max connections in rsync stanzas and concurrency of object replicator 2014-09-12 10:17:27 +01:00
James Page
f715cbacbb [mthaddon,r=james-page] Add configuration for worker and per disk thread pool sizes
Make the number of workers for account, container and object servers a multiplier of the number of CPUs, and default to a sensible setting per recommendations in http://docs.openstack.org/developer/swift/deployment_guide.html#general-service-tuning. Also, add in a tunable option for object server threads_per_disk and tune default to recommendations from http://docs.openstack.org/developer/swift/deployment_guide.html#object-server-configuration.
2014-06-19 09:40:58 +01:00
Tom Haddon
20253d1e75 Unit tests for the new worker multiplier and threads per disk config values 2014-06-18 12:34:19 +01:00
James Page
8a8da35a05 Add execd preinstall, tidy unit testing 2013-09-27 17:33:06 +01:00
Adam Gandelman
294c7dc0a0 Merge fixes, helpers sync. 2013-08-16 13:52:04 -07:00
Adam Gandelman
45617ff76f Update tests post-helper sync. 2013-08-16 13:38:32 -07:00
Adam Gandelman
9c546ad876 Typo. 2013-07-25 18:02:52 -07:00
Adam Gandelman
047a89309f Clean charm lint. 2013-07-19 14:33:41 -07:00
Adam Gandelman
a9fb83be8a Update to 100% coverage. 2013-07-19 13:44:37 -07:00