arvados.git
8 years ago7870: Teach crunch-dispatch to fail jobs it already locked. 7870-crunch-dispatch-retry-fail-lock-wip
Brett Smith [Tue, 1 Dec 2015 15:38:09 +0000 (10:38 -0500)]
7870: Teach crunch-dispatch to fail jobs it already locked.

The fail_job method has been written with the assumption that the job
should be unlocked.  The retry support added in #4410 breaks this
assumption.  Teach fail_job to acquire the lock only when we don't
know we already have it.

8 years agocloses #7252
radhika [Mon, 30 Nov 2015 15:27:47 +0000 (10:27 -0500)]
closes #7252
Merge branch '7252-go-sdk-errors'

8 years agoMerge branch 'master' into 7252-go-sdk-errors
radhika [Fri, 27 Nov 2015 16:02:38 +0000 (11:02 -0500)]
Merge branch 'master' into 7252-go-sdk-errors

8 years agoMock dispatch instead of relying on rollback in child proc.
Tom Clegg [Fri, 27 Nov 2015 09:28:16 +0000 (04:28 -0500)]
Mock dispatch instead of relying on rollback in child proc.

No issue #. amends d88316705b23d1022ee2167c7ed0e5cf5e460cbe

8 years agoClear job queue before testing crunch-dispatch start/stop.
Tom Clegg [Fri, 27 Nov 2015 07:01:42 +0000 (02:01 -0500)]
Clear job queue before testing crunch-dispatch start/stop.

Otherwise, it might get as far as starting jobs before we send TERM.

No issue # but see build 2249.

8 years agoMerge branch '7851-available-port' refs #7851
Tom Clegg [Fri, 27 Nov 2015 02:16:57 +0000 (21:16 -0500)]
Merge branch '7851-available-port' refs #7851

8 years agoFix crash on removing nonexistent directory.
Tom Clegg [Fri, 27 Nov 2015 02:16:16 +0000 (21:16 -0500)]
Fix crash on removing nonexistent directory.

No issue #

8 years ago7851: Use a random display (:100-:499 = port 6100-6499) for Xvfb, instead of always...
Tom Clegg [Thu, 26 Nov 2015 22:44:18 +0000 (17:44 -0500)]
7851: Use a random display (:100-:499 = port 6100-6499) for Xvfb, instead of always :99.

8 years ago7851: Choose available ports for selenium and poltergeist.
Tom Clegg [Thu, 26 Nov 2015 21:41:49 +0000 (16:41 -0500)]
7851: Choose available ports for selenium and poltergeist.

Also, display the chosen port numbers at startup.

Without this the Selenium driver defaults to 7055, which causes
interference between concurrent test runs.

8 years agoWarn, but do not error out, if a collection has conflicting block sizes.
Tom Clegg [Thu, 26 Nov 2015 19:23:03 +0000 (14:23 -0500)]
Warn, but do not error out, if a collection has conflicting block sizes.

If this is treated as a fatal error, any user can stop all garbage
collection entirely by hand-editing a collection (accidentally or
maliciously) to include the same block with different size hints.

No issue #

8 years agorefs #7253
radhika [Thu, 26 Nov 2015 18:10:48 +0000 (13:10 -0500)]
refs #7253
Merge branch '7253-datamanager-test-errors'

8 years ago7253: update the manifest_text for the test fixture multilevel_collection_2 to be...
radhika [Thu, 26 Nov 2015 18:08:07 +0000 (13:08 -0500)]
7253: update the manifest_text for the test fixture multilevel_collection_2 to be valid.

8 years agoUpdate capybara in workbench bundle.
Tom Clegg [Thu, 26 Nov 2015 16:14:29 +0000 (11:14 -0500)]
Update capybara in workbench bundle.

No issue #

8 years agoMerge branch 'master' into 7252-go-sdk-errors
radhika [Thu, 26 Nov 2015 16:01:03 +0000 (11:01 -0500)]
Merge branch 'master' into 7252-go-sdk-errors

Conflicts:
sdk/go/manifest/manifest_test.go

8 years agocloses #7253
radhika [Thu, 26 Nov 2015 15:46:51 +0000 (10:46 -0500)]
closes #7253
Merge branch '7253-datamanager-test-errors'

8 years ago7253: update manigest.parseManifestStream to raise error when the given manifest...
radhika [Thu, 26 Nov 2015 15:33:31 +0000 (10:33 -0500)]
7253: update manigest.parseManifestStream to raise error when the given manifest does not have any block locators or file tokens.

8 years ago7253: update BlockIterWithDuplicates to return any errors through Manifest, rather...
radhika [Thu, 26 Nov 2015 05:22:12 +0000 (00:22 -0500)]
7253: update BlockIterWithDuplicates to return any errors through Manifest, rather than BlockLocator.

8 years agoMerge branch 'master' into 7253-datamanager-test-errors
radhika [Thu, 26 Nov 2015 03:52:29 +0000 (22:52 -0500)]
Merge branch 'master' into 7253-datamanager-test-errors

8 years ago7253: consume all blocks from BlockIterWithDuplicates, not just the first in test.
radhika [Thu, 26 Nov 2015 03:50:19 +0000 (22:50 -0500)]
7253: consume all blocks from BlockIterWithDuplicates, not just the first in test.

8 years agoMerge branch '7832-pysdk-use-slots' refs #7832
Peter Amstutz [Thu, 26 Nov 2015 02:14:02 +0000 (21:14 -0500)]
Merge branch '7832-pysdk-use-slots' refs #7832

8 years ago7253: update arvadostest.stub to offer ServerStub and remove the redundant KeepServer...
radhika [Wed, 25 Nov 2015 23:07:30 +0000 (18:07 -0500)]
7253: update arvadostest.stub to offer ServerStub and remove the redundant KeepServerStub; update tests accordingly.

8 years ago7253: rename arvadostest/testing.go as stub.go
radhika [Wed, 25 Nov 2015 22:27:21 +0000 (17:27 -0500)]
7253: rename arvadostest/testing.go as stub.go

8 years agoMerge branch 'master' into 7253-datamanager-test-errors
radhika [Wed, 25 Nov 2015 22:21:22 +0000 (17:21 -0500)]
Merge branch 'master' into 7253-datamanager-test-errors

8 years ago7252: convert fatalf's into errors in logger sdk code; remove AssertFromString from...
radhika [Wed, 25 Nov 2015 22:16:27 +0000 (17:16 -0500)]
7252: convert fatalf's into errors in logger sdk code; remove AssertFromString from blockdigest and instead use FromString in all places where it was being used.

8 years ago7832: Add __slots__ and remove __del__ which interfers with garbage collection. ...
Peter Amstutz [Wed, 25 Nov 2015 21:41:45 +0000 (16:41 -0500)]
7832: Add __slots__ and remove __del__ which interfers with garbage collection.  Memory usage comes down by ~40%

8 years agoMove remaining arv-run-pipeline-instance usage info from comments to --help message.
Tom Clegg [Wed, 25 Nov 2015 18:37:24 +0000 (13:37 -0500)]
Move remaining arv-run-pipeline-instance usage info from comments to --help message.

No issue #

8 years ago7751: Clean up KEEP_LOCAL_STORE env var after tests.
Tom Clegg [Wed, 25 Nov 2015 18:06:07 +0000 (13:06 -0500)]
7751: Clean up KEEP_LOCAL_STORE env var after tests.

refs #7751

8 years ago7253: instead of ignoring errors during BlockIterWithDuplicates, send them to the...
radhika [Wed, 25 Nov 2015 17:06:05 +0000 (12:06 -0500)]
7253: instead of ignoring errors during BlockIterWithDuplicates, send them to the caller.

8 years ago5824: Move run_test_server diag messages from stdout to stderr.
Tom Clegg [Wed, 25 Nov 2015 15:49:57 +0000 (10:49 -0500)]
5824: Move run_test_server diag messages from stdout to stderr.

refs #5824

8 years agoMerge branch '7751-mount-tmp' refs #7751
Tom Clegg [Wed, 25 Nov 2015 15:45:24 +0000 (10:45 -0500)]
Merge branch '7751-mount-tmp' refs #7751

8 years ago7751: Fix race by telling fuse not to cache the .arvados#collection dirent.
Tom Clegg [Tue, 24 Nov 2015 18:45:02 +0000 (13:45 -0500)]
7751: Fix race by telling fuse not to cache the .arvados#collection dirent.

8 years ago7751: Refactor TmpCollectionDirectory: generate .arvados#collection less often.
Tom Clegg [Tue, 24 Nov 2015 18:43:42 +0000 (13:43 -0500)]
7751: Refactor TmpCollectionDirectory: generate .arvados#collection less often.

8 years ago7751: Fix stack trace on shutdown caused by race between destroy() and llfuse unmount.
Tom Clegg [Tue, 24 Nov 2015 15:41:15 +0000 (10:41 -0500)]
7751: Fix stack trace on shutdown caused by race between destroy() and llfuse unmount.

8 years ago7751: Fix shell wrapper code path.
Tom Clegg [Mon, 23 Nov 2015 22:42:40 +0000 (17:42 -0500)]
7751: Fix shell wrapper code path.

8 years ago7751: Lowercase method name for PEP-0008.
Tom Clegg [Mon, 23 Nov 2015 21:31:37 +0000 (16:31 -0500)]
7751: Lowercase method name for PEP-0008.

8 years ago7751: Suppress help messages when testing usage errors.
Tom Clegg [Sun, 22 Nov 2015 10:26:13 +0000 (05:26 -0500)]
7751: Suppress help messages when testing usage errors.

8 years ago7751: Update explanation of special .arvados#collection file. Fix wayward use of...
Tom Clegg [Fri, 20 Nov 2015 23:37:32 +0000 (18:37 -0500)]
7751: Update explanation of special .arvados#collection file. Fix wayward use of "Keep locator".

8 years ago7751: Return an empty array from InodeCache.find() instead of None.
Tom Clegg [Fri, 20 Nov 2015 23:09:55 +0000 (18:09 -0500)]
7751: Return an empty array from InodeCache.find() instead of None.

8 years ago7751: Test mount arguments.
Tom Clegg [Fri, 20 Nov 2015 08:38:10 +0000 (03:38 -0500)]
7751: Test mount arguments.

8 years ago7751: Add tests for --mount-tmp option.
Tom Clegg [Fri, 20 Nov 2015 01:38:34 +0000 (20:38 -0500)]
7751: Add tests for --mount-tmp option.

8 years ago7751: Move code from arv-mount executable to module.
Tom Clegg [Thu, 19 Nov 2015 22:37:25 +0000 (17:37 -0500)]
7751: Move code from arv-mount executable to module.

8 years ago7751: Add --mount-tmp option.
Tom Clegg [Wed, 18 Nov 2015 19:32:18 +0000 (14:32 -0500)]
7751: Add --mount-tmp option.

8 years agoMerge branch '7676-dispatch-cheaper-nodes' closes #7676
Tom Clegg [Wed, 25 Nov 2015 15:43:53 +0000 (10:43 -0500)]
Merge branch '7676-dispatch-cheaper-nodes' closes #7676

8 years ago7676: Improve comments.
Tom Clegg [Tue, 24 Nov 2015 21:16:13 +0000 (16:16 -0500)]
7676: Improve comments.

8 years ago7676: Test choosing cheaper nodes, and basic crunch-dispatch startup/locking.
Tom Clegg [Mon, 23 Nov 2015 18:29:52 +0000 (13:29 -0500)]
7676: Test choosing cheaper nodes, and basic crunch-dispatch startup/locking.

8 years ago7676: Move crunch dispatch code into lib.
Tom Clegg [Mon, 23 Nov 2015 09:03:40 +0000 (04:03 -0500)]
7676: Move crunch dispatch code into lib.

8 years ago7676: Prefer cheaper nodes when allocating nodes to jobs.
Tom Clegg [Mon, 23 Nov 2015 08:07:40 +0000 (03:07 -0500)]
7676: Prefer cheaper nodes when allocating nodes to jobs.

8 years ago7253: Update test so that it compiles and passes.
radhika [Wed, 25 Nov 2015 15:21:11 +0000 (10:21 -0500)]
7253: Update test so that it compiles and passes.

8 years ago7253: Write a test that "does not" fail when an invalid manifest text is retrieved...
radhika [Tue, 24 Nov 2015 20:02:20 +0000 (15:02 -0500)]
7253: Write a test that "does not" fail when an invalid manifest text is retrieved during collection.GetCollections(). The expected behavior: GetCollections() raises error in this case and hence datamanager aborts without deleting any blocks.

8 years ago7253: Refactor APIStub and KeepServerStub into a testing.go so that the code can...
radhika [Tue, 24 Nov 2015 17:51:13 +0000 (12:51 -0500)]
7253: Refactor APIStub and KeepServerStub into a testing.go so that the code can be reused from various packages

8 years ago7751: 7654: Rename bool to _closed to avoid conflicting with superclass closed()...
Tom Clegg [Sun, 22 Nov 2015 10:03:36 +0000 (05:03 -0500)]
7751: 7654: Rename bool to _closed to avoid conflicting with superclass closed() method.

refs #7654

8 years agoFix Azure node listing in node manager. refs #5353
Peter Amstutz [Mon, 23 Nov 2015 14:25:04 +0000 (09:25 -0500)]
Fix Azure node listing in node manager.  refs #5353

8 years agocloses #7255
radhika [Fri, 20 Nov 2015 22:36:32 +0000 (17:36 -0500)]
closes #7255
Merge branch '7255-manifests-in-datamanager'

8 years agoMerge branch 'master' into 7255-manifests-in-datamanager
radhika [Fri, 20 Nov 2015 22:35:25 +0000 (17:35 -0500)]
Merge branch 'master' into 7255-manifests-in-datamanager

8 years ago7255: rename test and update comments.
radhika [Fri, 20 Nov 2015 22:34:34 +0000 (17:34 -0500)]
7255: rename test and update comments.

8 years agoInstall guide crunch-dispatch runit script exports $HOME.
Brett Smith [Fri, 20 Nov 2015 22:14:17 +0000 (17:14 -0500)]
Install guide crunch-dispatch runit script exports $HOME.

crunch-dispatch needs $HOME set in order to do some path
manipulation.  We set it to $(pwd) in production, which should
normally be the runit service definition directory.

This seems weird and it seems likely that there's a better value, but
until we investigate that and figure that out, documenting what we
have in production is better than letting crunch-dispatch crash.

Reported in IRC.  No issue #.

8 years agoMerge branch 'master' into 7255-manifests-in-datamanager
radhika [Fri, 20 Nov 2015 22:13:00 +0000 (17:13 -0500)]
Merge branch 'master' into 7255-manifests-in-datamanager

Conflicts:
services/datamanager/datamanager_test.go

8 years agocloses #7490
radhika [Fri, 20 Nov 2015 21:33:13 +0000 (16:33 -0500)]
closes #7490
Merge branch '7490-datamanager-dont-die-return-error'

8 years agoMerge branch 'master' into 7490-datamanager-dont-die-return-error
radhika [Fri, 20 Nov 2015 21:32:29 +0000 (16:32 -0500)]
Merge branch 'master' into 7490-datamanager-dont-die-return-error

8 years agoMerge branch '7490-datamanager-dont-die-return-error' of git.curoverse.com:arvados...
radhika [Fri, 20 Nov 2015 21:26:18 +0000 (16:26 -0500)]
Merge branch '7490-datamanager-dont-die-return-error' of git.curoverse.com:arvados into 7490-datamanager-dont-die-return-error

8 years ago7490: Quote strings in error messages, fixup error matching in tests.
Tom Clegg [Fri, 20 Nov 2015 21:21:42 +0000 (16:21 -0500)]
7490: Quote strings in error messages, fixup error matching in tests.

8 years agoMerge branch '5353-booted-size' refs #5353
Peter Amstutz [Fri, 20 Nov 2015 21:20:46 +0000 (21:20 +0000)]
Merge branch '5353-booted-size' refs #5353

8 years ago5352: Set node size on records returned from libcloud create_node
Peter Amstutz [Fri, 20 Nov 2015 21:20:10 +0000 (21:20 +0000)]
5352: Set node size on records returned from libcloud create_node

8 years agoMerge branch '7711-record-node-price' closes #7711
Tom Clegg [Fri, 20 Nov 2015 20:42:28 +0000 (15:42 -0500)]
Merge branch '7711-record-node-price' closes #7711

8 years ago7711: Store cloud node size id and price in properties of Arvados node record.
Tom Clegg [Fri, 20 Nov 2015 20:36:04 +0000 (15:36 -0500)]
7711: Store cloud node size id and price in properties of Arvados node record.

8 years ago7255: update TestPutAndGetCollectionsWithMultipleStreamsAndBlocks to verify that...
radhika [Fri, 20 Nov 2015 18:28:04 +0000 (13:28 -0500)]
7255: update TestPutAndGetCollectionsWithMultipleStreamsAndBlocks to verify that expected number of unique block locators are created.

8 years ago7255: improve createMultiStreamBlockCollection to create collection with multiple...
radhika [Fri, 20 Nov 2015 17:26:05 +0000 (12:26 -0500)]
7255: improve createMultiStreamBlockCollection to create collection with multiple blocks per stream.

8 years agoFix for _size_shutdowns and node prices in node manager refs #5353
Peter Amstutz [Fri, 20 Nov 2015 15:48:57 +0000 (10:48 -0500)]
Fix for _size_shutdowns and node prices in node manager refs #5353

8 years agoMerge branch 'master' into 7255-manifests-in-datamanager
radhika [Fri, 20 Nov 2015 14:41:38 +0000 (09:41 -0500)]
Merge branch 'master' into 7255-manifests-in-datamanager

8 years agoMerge branch 'master' into 7490-datamanager-dont-die-return-error
radhika [Fri, 20 Nov 2015 14:31:24 +0000 (09:31 -0500)]
Merge branch 'master' into 7490-datamanager-dont-die-return-error

8 years ago7490: remove loggerutil.LogErrorMessage that I added since it is not used
radhika [Thu, 19 Nov 2015 20:23:25 +0000 (15:23 -0500)]
7490: remove loggerutil.LogErrorMessage that I added since it is not used

8 years ago7490: use loggerutil to log any datamanager errors.
radhika [Thu, 19 Nov 2015 19:54:37 +0000 (14:54 -0500)]
7490: use loggerutil to log any datamanager errors.

8 years agoMerge branch '5353-set-node-size' refs #5353
Peter Amstutz [Thu, 19 Nov 2015 19:46:38 +0000 (14:46 -0500)]
Merge branch '5353-set-node-size' refs #5353

8 years ago5353: Remove checks that cloud_node.size is None (because it should never be None or
Peter Amstutz [Thu, 19 Nov 2015 19:44:42 +0000 (14:44 -0500)]
5353: Remove checks that cloud_node.size is None (because it should never be None or
booting multiple node sizes won't work).  Set size explicitly for the dummy driver.

8 years ago5353: Explicitly set size field on node objects returned by list_nodes on AWS and...
Peter Amstutz [Thu, 19 Nov 2015 18:32:44 +0000 (13:32 -0500)]
5353: Explicitly set size field on node objects returned by list_nodes on AWS and Azure.

8 years ago7490: Add Err to collection.ReadCollections and keep.ServerResponse so that the error...
radhika [Thu, 19 Nov 2015 17:44:15 +0000 (12:44 -0500)]
7490: Add Err to collection.ReadCollections and keep.ServerResponse so that the error can be propagated to clients accessing these through a channel read.

8 years agoHotfix: use a recursive lock for closed_lock so that EventClient.close() can be
Peter Amstutz [Thu, 19 Nov 2015 17:20:35 +0000 (12:20 -0500)]
Hotfix: use a recursive lock for closed_lock so that EventClient.close() can be
called from on_event(). refs #7654

8 years agoMerge branch 'master' into 7490-datamanager-dont-die-return-error
radhika [Thu, 19 Nov 2015 16:12:22 +0000 (11:12 -0500)]
Merge branch 'master' into 7490-datamanager-dont-die-return-error

8 years agoMerge branch '7654-ws4py-hang' closes #7654
Peter Amstutz [Thu, 19 Nov 2015 02:35:50 +0000 (21:35 -0500)]
Merge branch '7654-ws4py-hang' closes #7654

8 years agoMerge branch '3137-arv-mount-stats' closes #3137
Peter Amstutz [Thu, 19 Nov 2015 02:27:05 +0000 (21:27 -0500)]
Merge branch '3137-arv-mount-stats' closes #3137

8 years ago3137: Bump Python SDK version requirement. Tweak Stats() class, don't keep two
Peter Amstutz [Thu, 19 Nov 2015 02:26:24 +0000 (21:26 -0500)]
3137: Bump Python SDK version requirement.  Tweak Stats() class, don't keep two
sets of data points.

8 years ago7255: add one more test with manifest_text with multiple blocks in stream.
radhika [Wed, 18 Nov 2015 23:09:22 +0000 (18:09 -0500)]
7255: add one more test with manifest_text with multiple blocks in stream.

8 years agoMerge branch '6923-crunch-no-dpkg-query-wip'
Brett Smith [Wed, 18 Nov 2015 23:00:27 +0000 (18:00 -0500)]
Merge branch '6923-crunch-no-dpkg-query-wip'

Closes #6923, #7740.

8 years ago6923: crunch-job logs PySDK version when minimally bootstrapped.
Brett Smith [Wed, 18 Nov 2015 20:30:09 +0000 (15:30 -0500)]
6923: crunch-job logs PySDK version when minimally bootstrapped.

8 years ago6923: Improve Arvados SDK version logging in Crunch run script.
Brett Smith [Mon, 9 Nov 2015 15:13:21 +0000 (10:13 -0500)]
6923: Improve Arvados SDK version logging in Crunch run script.

* Use a mechanism that works in a wider variety of containers.  This
  only depends on Python itself and setuptools.  It won't generate
  spurious warnings by calling dpkg-query on Red Hat containers.
* Don't log the version when we successfully set up the specified
  arvados_sdk_version.  The version will only be '0.1' in this case,
  and that's not helpful.

8 years ago7255: test collections with empty manifest_text and multiple streams and blocks.
radhika [Wed, 18 Nov 2015 22:52:27 +0000 (17:52 -0500)]
7255: test collections with empty manifest_text and multiple streams and blocks.

8 years ago7654: Fix hang in close().
Peter Amstutz [Wed, 18 Nov 2015 20:24:02 +0000 (15:24 -0500)]
7654: Fix hang in close().

8 years ago3137: Change --stats to --crunchstat-interval as specified on the ticket.
Peter Amstutz [Wed, 18 Nov 2015 18:48:35 +0000 (13:48 -0500)]
3137: Change --stats to --crunchstat-interval as specified on the ticket.

8 years agoMerge branch '5353-node-sizes' closes #5353
Peter Amstutz [Wed, 18 Nov 2015 17:09:47 +0000 (12:09 -0500)]
Merge branch '5353-node-sizes' closes #5353

8 years ago6846: Streamline Workbench 404 page.
Brett Smith [Wed, 18 Nov 2015 16:36:04 +0000 (11:36 -0500)]
6846: Streamline Workbench 404 page.

* Prompt the user to log in with a prominent button.
* Make the page text less verbose.
* DRY up the code in the _report_error partial.

Refs #6846.

8 years ago5353: Remove extra assertion because busywait does it for us.
Peter Amstutz [Wed, 18 Nov 2015 15:18:03 +0000 (10:18 -0500)]
5353: Remove extra assertion because busywait does it for us.

8 years ago5353: Update comment about min_nodes and node size.
Peter Amstutz [Wed, 18 Nov 2015 14:52:46 +0000 (09:52 -0500)]
5353: Update comment about min_nodes and node size.

8 years ago5353: Add a couple comments to tests.
Peter Amstutz [Wed, 18 Nov 2015 14:45:08 +0000 (09:45 -0500)]
5353: Add a couple comments to tests.

8 years ago5353: Fix typo in _nodes_wanted(). Calculate number of nodes that can boot
Peter Amstutz [Wed, 18 Nov 2015 14:25:32 +0000 (09:25 -0500)]
5353: Fix typo in _nodes_wanted().  Calculate number of nodes that can boot
based on price cap.  Don't add jobs to wishlist that exceed max price cap.

8 years agoMerge branch 'master' into 7490-datamanager-dont-die-return-error
radhika [Wed, 18 Nov 2015 13:38:38 +0000 (08:38 -0500)]
Merge branch 'master' into 7490-datamanager-dont-die-return-error

8 years ago3137: Add --stats to arv-mount in crunch-job
Peter Amstutz [Wed, 18 Nov 2015 04:07:14 +0000 (23:07 -0500)]
3137: Add --stats to arv-mount in crunch-job

8 years ago3137: Add counter & logging for cache hits
Peter Amstutz [Wed, 18 Nov 2015 03:57:30 +0000 (22:57 -0500)]
3137: Add counter & logging for cache hits

8 years ago3137: Refactor stats to record keep & fuse operations as well as bytes.
Peter Amstutz [Wed, 18 Nov 2015 03:00:45 +0000 (22:00 -0500)]
3137: Refactor stats to record keep & fuse operations as well as bytes.

8 years agoCloses #7235. Merge branch '7235-python-keep-client-timeout'
sguthrie [Tue, 17 Nov 2015 21:49:04 +0000 (16:49 -0500)]
Closes #7235. Merge branch '7235-python-keep-client-timeout'

8 years agoCloses #7235. Instead of setting KeepService's pycurl.TIMEOUT_MS, set pycurl.LOW_SPEE...
sguthrie [Tue, 10 Nov 2015 20:23:18 +0000 (15:23 -0500)]
Closes #7235. Instead of setting KeepService's pycurl.TIMEOUT_MS, set pycurl.LOW_SPEED_LIMIT and pycurl.LOW_SPEED_TIME.
Default LOW_SPEED_LIMIT is 32768 bytes per second. Default LOW_SPEED_TIME is 64 seconds.
If the user specifies a length-two tuple, the first item sets CONNECTTIMEOUT_MS, the second item sets LOW_SPEED_TIME,
and LOW_SPEED_LIMIT is set to 32768 bytes per second.

Added bandwidth similator to keepstub, which uses millisecond precision (like curl) to measure timeouts.
Added tests to test_keep_client and modified existing tests to only use integers.