arvados.git
8 years ago3793: Log uncleaned images. 3793-clean-docker-images-wip
Brett Smith [Thu, 7 May 2015 22:11:50 +0000 (18:11 -0400)]
3793: Log uncleaned images.

8 years ago3793: Always keep one Docker image.
Brett Smith [Thu, 7 May 2015 21:18:15 +0000 (17:18 -0400)]
3793: Always keep one Docker image.

9 years ago3793: Fixups from code review.
Brett Smith [Tue, 5 May 2015 14:24:17 +0000 (10:24 -0400)]
3793: Fixups from code review.

9 years ago3793: Add Docker image cleaner service for compute nodes.
Brett Smith [Thu, 30 Apr 2015 13:19:15 +0000 (09:19 -0400)]
3793: Add Docker image cleaner service for compute nodes.

This service monitors Docker events.  When no containers are active,
it arranges to keep the most recently used images up to a configured
size limit, then deletes the rest.  This will prevent Docker images
from growing indefinitely on physical compute nodes.

9 years agoMerge branch '5562-pycurl' closes #5562
Tom Clegg [Wed, 29 Apr 2015 17:45:46 +0000 (13:45 -0400)]
Merge branch '5562-pycurl' closes #5562

9 years ago5562: Return UA to pool if it worked well enough to get an HTTP status.
Tom Clegg [Wed, 29 Apr 2015 15:10:40 +0000 (11:10 -0400)]
5562: Return UA to pool if it worked well enough to get an HTTP status.

9 years ago5562: Enable TCP Keepalive for Keep requests. refs #5822
Tom Clegg [Wed, 29 Apr 2015 14:57:47 +0000 (10:57 -0400)]
5562: Enable TCP Keepalive for Keep requests. refs #5822

9 years agocloses #5826
Radhika Chippada [Wed, 29 Apr 2015 13:07:10 +0000 (09:07 -0400)]
closes #5826
Merge branch '5826-unreadable-inputs-error'

9 years ago5826: use present? instead of !empty?
Radhika Chippada [Wed, 29 Apr 2015 12:44:49 +0000 (08:44 -0400)]
5826: use present? instead of !empty?

9 years ago5562: Add fake keepstore server with configurable problems.
Tom Clegg [Tue, 28 Apr 2015 23:08:45 +0000 (19:08 -0400)]
5562: Add fake keepstore server with configurable problems.

9 years ago5562: Use pycurl library (instead of requests) for Keep transactions.
Tom Clegg [Wed, 22 Apr 2015 18:26:43 +0000 (14:26 -0400)]
5562: Use pycurl library (instead of requests) for Keep transactions.

9 years ago5826: revert the previous update that checked if readable only for pdh or uuid;
Radhika Chippada [Tue, 28 Apr 2015 22:03:58 +0000 (18:03 -0400)]
5826: revert the previous update that checked if readable only for pdh or uuid;
instead check as long as a collection datatype is presented with a non-empty string.

9 years agocloses #5622
Radhika Chippada [Tue, 28 Apr 2015 18:43:34 +0000 (14:43 -0400)]
closes #5622
Merge branch '5622-fix-timeout-pdh-page'

9 years ago5622: when there are too many collections matching a pdh, show only 20 of them.
Radhika Chippada [Tue, 28 Apr 2015 18:06:28 +0000 (14:06 -0400)]
5622: when there are too many collections matching a pdh, show only 20 of them.

9 years agoCheck if cache slot is not None before trying to test the read flag. refs #5831
Peter Amstutz [Tue, 28 Apr 2015 13:46:58 +0000 (09:46 -0400)]
Check if cache slot is not None before trying to test the read flag.  refs #5831

9 years agoMerge branch '5739-no-sqlite3' closes #5739
Tom Clegg [Tue, 28 Apr 2015 06:10:14 +0000 (02:10 -0400)]
Merge branch '5739-no-sqlite3' closes #5739

9 years agocloses #5826
Radhika Chippada [Mon, 27 Apr 2015 22:48:09 +0000 (18:48 -0400)]
closes #5826
closes #5827
Merge branch '5826-unreadable-inputs-error'

9 years ago5827: check readable only attrvalue is a string
Radhika Chippada [Mon, 27 Apr 2015 22:30:22 +0000 (18:30 -0400)]
5827: check readable only attrvalue is a string

9 years agoMerge branch '5490-crunch-tighten-job-reuse-wip'
Brett Smith [Mon, 27 Apr 2015 21:52:35 +0000 (17:52 -0400)]
Merge branch '5490-crunch-tighten-job-reuse-wip'

Closes #3341, #5388, #5490, #5688, #5784.

9 years ago5490: Require exact matches in API server's default job reuse filters.
Brett Smith [Tue, 21 Apr 2015 20:48:42 +0000 (16:48 -0400)]
5490: Require exact matches in API server's default job reuse filters.

The previous default filters would reuse jobs that used any Docker
image with the matching name, and/or Arvados SDK version since the
named commit.  User feedback indicates this is surprising, and they
would prefer to have behavior more like the handling around
script_version: only reuse jobs that have the latest version of a
symbolic name, or the exact specified hash.

9 years ago5490: Test API server finds Docker images with hash names.
Brett Smith [Tue, 21 Apr 2015 15:35:01 +0000 (11:35 -0400)]
5490: Test API server finds Docker images with hash names.

This is in the same spirit as the previous, analogous commit for git
branches.

9 years ago5490: Test API server handling of git hash-like branch names.
Brett Smith [Tue, 21 Apr 2015 15:23:19 +0000 (11:23 -0400)]
5490: Test API server handling of git hash-like branch names.

If you have a branch that looks like a commit hash, different git subcommands do different things.  After extended discussion on IRC, we've decided we'd like the rules to be:

* If a 40-character hex string references a commit, resolve it to that
  commit.
* In other cases of ambiguity, prefer branch names over short commit
  hashes.

Fortunately, this corresponds to the behavior of `git rev-list` and
our existing implementation.  This commit codifies our desired
behavior with tests.

9 years ago5490: Clean up API server previous job fixtures.
Brett Smith [Thu, 16 Apr 2015 21:33:22 +0000 (17:33 -0400)]
5490: Clean up API server previous job fixtures.

* Every fixture that specified an arvados_sdk_version constraint
  should also specify a docker_image constraint, to better match
  reality.

* Use the same Docker image name in link and previous job fixture
  constraints.

9 years ago5490: Refactor API server job_reuse_controller_test.
Brett Smith [Thu, 16 Apr 2015 21:32:54 +0000 (17:32 -0400)]
5490: Refactor API server job_reuse_controller_test.

Teach the convenience methods to start from any fixture job as a basis
for submitting new ones and comparing.

9 years ago5826: check readable only when it is a data collection pdf or uuid.
Radhika Chippada [Mon, 27 Apr 2015 20:58:10 +0000 (16:58 -0400)]
5826: check readable only when it is a data collection pdf or uuid.

9 years agoMerge branch '5554-delete-job-log-rows-wip'
Brett Smith [Mon, 27 Apr 2015 15:23:50 +0000 (11:23 -0400)]
Merge branch '5554-delete-job-log-rows-wip'

Closes #5554, #5798.

9 years ago5554: Workbench links finished job logs from pipeline instance log tab.
Brett Smith [Fri, 24 Apr 2015 21:13:31 +0000 (17:13 -0400)]
5554: Workbench links finished job logs from pipeline instance log tab.

This is an affordance to help users find logs after they're removed
from the API server's logs table.  The display is not very great.
We're punting improvements until Workbench generally has better
capabilities to display large logs.

The layout change necessitated updates to the anonymous access tests.
While I was in there, I strengthened the assertions by putting
assertions that check a particular element has loaded before asserting
the nonexistence of other elements.  This revealed the JavaScript
issue mentioned in the new comment: the old version of the test was
doing a single `assert_no_text` after clicking a job's log tab, which
only confirmed that we navigated away.  We already test that the log
tab exists and is not disabled in this case, so I consider that
sufficient for now.

9 years ago5554: Clean up erroneous fixture pipeline state.
Brett Smith [Thu, 23 Apr 2015 20:52:07 +0000 (16:52 -0400)]
5554: Clean up erroneous fixture pipeline state.

9 years ago5554: Add Rake task to delete old job log records.
Brett Smith [Thu, 23 Apr 2015 16:40:14 +0000 (12:40 -0400)]
5554: Add Rake task to delete old job log records.

9 years agocloses #5780
Radhika Chippada [Mon, 27 Apr 2015 14:23:03 +0000 (10:23 -0400)]
closes #5780
Merge branch '5780-sharing-popup-message'

9 years agoMerge branch 'master' into 5780-sharing-popup-message
Radhika Chippada [Mon, 27 Apr 2015 14:22:37 +0000 (10:22 -0400)]
Merge branch 'master' into 5780-sharing-popup-message

9 years ago5739: Remove unnecessary sqlite3 dependency.
Tom Clegg [Wed, 15 Apr 2015 18:26:33 +0000 (14:26 -0400)]
5739: Remove unnecessary sqlite3 dependency.

9 years agorun_test_server doesn't assume ARVADOS_API_TOKEN is set.
Brett Smith [Thu, 23 Apr 2015 21:52:27 +0000 (17:52 -0400)]
run_test_server doesn't assume ARVADOS_API_TOKEN is set.

This makes it slightly more feasible to run this script (and by
extension tests for individual components like Workbench) outside
run-tests.sh.  No issue #.

9 years agoFix typo. No issue #
Tom Clegg [Thu, 23 Apr 2015 21:28:56 +0000 (17:28 -0400)]
Fix typo. No issue #

9 years agocloses #5796
Radhika Chippada [Thu, 23 Apr 2015 17:06:03 +0000 (13:06 -0400)]
closes #5796
Merge branch '5796-collection-search-index'

9 years ago5796: add down migration
Radhika Chippada [Thu, 23 Apr 2015 17:01:15 +0000 (13:01 -0400)]
5796: add down migration

9 years ago5796: omit file_names column from collections search index.
Radhika Chippada [Thu, 23 Apr 2015 16:10:05 +0000 (12:10 -0400)]
5796: omit file_names column from collections search index.

9 years ago5416: Test with HEAD in current tree, not master: jenkins index has no master.
Tom Clegg [Thu, 23 Apr 2015 14:00:54 +0000 (10:00 -0400)]
5416: Test with HEAD in current tree, not master: jenkins index has no 

Improve logging in test suite.

refs #5416

9 years ago5780: Display message in chooser popup if one is provided. Use this to show a message...
Radhika Chippada [Thu, 23 Apr 2015 01:21:29 +0000 (21:21 -0400)]
5780: Display message in chooser popup if one is provided. Use this to show a message in sharing popup
explaining to user that only those users or groups that the user is allowed to access are displayed.

9 years agoMerge branch '5416-browse-repo-tree' refs #5416
Tom Clegg [Wed, 22 Apr 2015 18:28:10 +0000 (14:28 -0400)]
Merge branch '5416-browse-repo-tree' refs #5416

9 years agocloses #5663
Radhika Chippada [Wed, 22 Apr 2015 17:31:06 +0000 (13:31 -0400)]
closes #5663
Merge branch '5663-doc-rake-secret'

9 years agoMerge branch 'master' into 5663-doc-rake-secret
Radhika Chippada [Wed, 22 Apr 2015 17:30:42 +0000 (13:30 -0400)]
Merge branch 'master' into 5663-doc-rake-secret

9 years agocloses #5783
Radhika Chippada [Wed, 22 Apr 2015 17:27:16 +0000 (13:27 -0400)]
closes #5783

5783: add type="button" for Cancel button in add ssh key popup.

9 years agoMerge branch 'master' into 5663-doc-rake-secret
Radhika Chippada [Wed, 22 Apr 2015 14:36:00 +0000 (10:36 -0400)]
Merge branch 'master' into 5663-doc-rake-secret

9 years agocloses #5675
Radhika Chippada [Wed, 22 Apr 2015 12:16:43 +0000 (08:16 -0400)]
closes #5675
Merge branch '5675-project-subprojects-in-anonymous-view'

9 years agoMerge branch 'master' into 5663-doc-rake-secret
Radhika Chippada [Tue, 21 Apr 2015 17:48:40 +0000 (13:48 -0400)]
Merge branch 'master' into 5663-doc-rake-secret

9 years agoMerge branch 'master' into 5675-project-subprojects-in-anonymous-view
Radhika Chippada [Tue, 21 Apr 2015 17:47:19 +0000 (13:47 -0400)]
Merge branch 'master' into 5675-project-subprojects-in-anonymous-view

9 years agorefs #5179 : gem version in workbench
Radhika Chippada [Tue, 21 Apr 2015 17:23:45 +0000 (13:23 -0400)]
refs #5179 : gem version in workbench

9 years agocloses #5179
Radhika Chippada [Tue, 21 Apr 2015 17:18:38 +0000 (13:18 -0400)]
closes #5179
Merge branch '5179-dirs-in-filenames'

9 years ago5179: one more test with multilevel manifest text
Radhika Chippada [Tue, 21 Apr 2015 17:16:52 +0000 (13:16 -0400)]
5179: one more test with multilevel manifest text

9 years agoMerge branch 'master' into 5179-dirs-in-filenames
Radhika Chippada [Tue, 21 Apr 2015 16:56:15 +0000 (12:56 -0400)]
Merge branch 'master' into 5179-dirs-in-filenames

9 years ago5416: Fix protected method that should have been public.
Tom Clegg [Mon, 20 Apr 2015 20:43:40 +0000 (16:43 -0400)]
5416: Fix protected method that should have been public.

9 years ago5416: Use http://foo:bar@host:port/ instead of credential helper.
Tom Clegg [Thu, 16 Apr 2015 19:52:20 +0000 (15:52 -0400)]
5416: Use foo:bar@host:port/ instead of credential helper.

9 years ago5416: Remove second trailing slash in breadcrumbs link.
Tom Clegg [Thu, 16 Apr 2015 20:44:38 +0000 (16:44 -0400)]
5416: Remove second trailing slash in breadcrumbs link.

9 years ago5416: Disable repository browsing (and skip tests) if git version is suspected unreli...
Tom Clegg [Thu, 16 Apr 2015 20:31:22 +0000 (16:31 -0400)]
5416: Disable repository browsing (and skip tests) if git version is suspected unreliable.

9 years ago5416: Add read-only clone_urls attribute to Repository resources, deprecate push_url...
Tom Clegg [Tue, 14 Apr 2015 20:56:04 +0000 (16:56 -0400)]
5416: Add read-only clone_urls attribute to Repository resources, deprecate push_url and fetch_url, tidy up config settings.

9 years ago5416: Do not override git urls for remote hosted repos.
Tom Clegg [Wed, 8 Apr 2015 15:35:56 +0000 (11:35 -0400)]
5416: Do not override git urls for remote hosted repos.

9 years ago5416: Run arv-git-httpd and nginx ssl proxy in test suite.
Tom Clegg [Wed, 8 Apr 2015 14:22:05 +0000 (10:22 -0400)]
5416: Run arv-git-httpd and nginx ssl proxy in test suite.

9 years ago5416: Browse git repository contents in workbench.
Tom Clegg [Wed, 1 Apr 2015 22:34:38 +0000 (18:34 -0400)]
5416: Browse git repository contents in workbench.

9 years ago5416: Fix comment.
Tom Clegg [Tue, 31 Mar 2015 14:05:47 +0000 (10:05 -0400)]
5416: Fix comment.

9 years agoRevert errant change in f8e6cb3. refs #3126
Tom Clegg [Mon, 20 Apr 2015 20:29:55 +0000 (16:29 -0400)]
Revert errant change in f8e6cb3. refs #3126

9 years agoDocker: fix the build of the sso docker container.
Ward Vandewege [Mon, 20 Apr 2015 19:23:40 +0000 (15:23 -0400)]
Docker: fix the build of the sso docker container.

No issue #

9 years agoMerge branch '3126-remote-git-url' closes #3126
Tom Clegg [Mon, 20 Apr 2015 18:40:57 +0000 (14:40 -0400)]
Merge branch '3126-remote-git-url' closes #3126

9 years ago3126: Skip some unnecessary db resets.
Tom Clegg [Mon, 20 Apr 2015 18:15:36 +0000 (14:15 -0400)]
3126: Skip some unnecessary db resets.

9 years ago3126: Use localhost to simulate API failures. reset_application_config in teardown
Tom Clegg [Mon, 20 Apr 2015 18:13:35 +0000 (14:13 -0400)]
3126: Use localhost to simulate API failures. reset_application_config in teardown
nstead of setup. Remove superfluous cleanup.

9 years ago3126: Handle "no local repository" case better.
Tom Clegg [Mon, 20 Apr 2015 17:37:15 +0000 (13:37 -0400)]
3126: Handle "no local repository" case better.

9 years ago3126: Delete git cache dir in test teardown. Remove no-op test.
Tom Clegg [Wed, 15 Apr 2015 20:50:14 +0000 (16:50 -0400)]
3126: Delete git cache dir in test teardown. Remove no-op test.

9 years ago3126: Fix test. Avoid excess "git init" by probing with "git branch" first.
Tom Clegg [Wed, 15 Apr 2015 19:45:59 +0000 (15:45 -0400)]
3126: Fix test. Avoid excess "git init" by probing with "git branch" first.

9 years ago3126: Always act as current_user in Commit.find_commit_range.
Tom Clegg [Tue, 14 Apr 2015 02:54:11 +0000 (22:54 -0400)]
3126: Always act as current_user in Commit.find_commit_range.

9 years ago3126: Do not try to do anything with job.repository in crunch-dispatch if the commit...
Tom Clegg [Mon, 13 Apr 2015 16:43:34 +0000 (12:43 -0400)]
3126: Do not try to do anything with job.repository in crunch-dispatch if the commit is already in internal.git.

9 years ago3126: Update API docs.
Tom Clegg [Fri, 10 Apr 2015 07:40:55 +0000 (03:40 -0400)]
3126: Update API docs.

9 years ago3126: Accept remote http/https/git url as repository attr in jobs.create/save.
Tom Clegg [Thu, 9 Apr 2015 22:09:40 +0000 (18:09 -0400)]
3126: Accept remote http/https/git url as repository attr in jobs.create/save.

9 years agocloses #5573
Radhika Chippada [Mon, 20 Apr 2015 16:55:00 +0000 (12:55 -0400)]
closes #5573
Merge branch '5573-user-activity-page-performance'

9 years agoMerge branch 'master' into 5573-user-activity-page-performance
Radhika Chippada [Mon, 20 Apr 2015 16:44:52 +0000 (12:44 -0400)]
Merge branch 'master' into 5573-user-activity-page-performance

9 years agocloses #5753
Radhika Chippada [Mon, 20 Apr 2015 16:36:10 +0000 (12:36 -0400)]
closes #5753
Merge branch '5753-job-name-column-in-project-page'

9 years agoMerge branch 'master' into 5753-job-name-column-in-project-page
Radhika Chippada [Mon, 20 Apr 2015 16:30:56 +0000 (12:30 -0400)]
Merge branch 'master' into 5753-job-name-column-in-project-page

9 years agocloses #5620
Radhika Chippada [Mon, 20 Apr 2015 16:29:34 +0000 (12:29 -0400)]
closes #5620
Merge branch '5620-collection-selections'

9 years ago5620: added comment to input trigger event
Radhika Chippada [Mon, 20 Apr 2015 15:42:04 +0000 (11:42 -0400)]
5620: added comment to input trigger event

9 years ago5663: update documentation to use "puts rand" in place of "rake secret"
Radhika Chippada [Sun, 19 Apr 2015 03:12:51 +0000 (23:12 -0400)]
5663: update documentation to use "puts rand" in place of "rake secret"

9 years ago5179: update arvados ruby sdk gem version in workbench.
Radhika Chippada [Sun, 19 Apr 2015 02:25:55 +0000 (22:25 -0400)]
5179: update arvados ruby sdk gem version in workbench.

9 years ago5179: update files method to move dir parts to streamname.
Radhika Chippada [Sun, 19 Apr 2015 02:22:14 +0000 (22:22 -0400)]
5179: update files method to move dir parts to streamname.

9 years ago5675: include Subprojects tab in project#show for anonymous users.
Radhika Chippada [Sat, 18 Apr 2015 02:41:25 +0000 (22:41 -0400)]
5675: include Subprojects tab in project#show for anonymous users.

9 years ago5620: add ready handler for input
Radhika Chippada [Fri, 17 Apr 2015 20:57:55 +0000 (16:57 -0400)]
5620: add ready handler for input

9 years ago5753: show name column in project#show page when the object supports name.
Radhika Chippada [Fri, 17 Apr 2015 14:59:27 +0000 (10:59 -0400)]
5753: show name column in project#show page when the object supports name.

9 years ago5573: The activity page retrieves too much data that it does not need from the server...
Radhika Chippada [Fri, 17 Apr 2015 02:15:46 +0000 (22:15 -0400)]
5573: The activity page retrieves too much data that it does not need from the server. Added a limit clause on the request to server.

9 years agocloses #5417
Radhika Chippada [Thu, 16 Apr 2015 22:06:52 +0000 (18:06 -0400)]
closes #5417
Merge branch '5417-not-start-pipeline-with-unreadable-inputs'

9 years agoMerge branch 'master' into 5417-not-start-pipeline-with-unreadable-inputs
Radhika Chippada [Thu, 16 Apr 2015 22:06:31 +0000 (18:06 -0400)]
Merge branch 'master' into 5417-not-start-pipeline-with-unreadable-inputs

9 years ago5417: one more test condition for dataclass=File
Radhika Chippada [Thu, 16 Apr 2015 22:05:53 +0000 (18:05 -0400)]
5417: one more test condition for dataclass=File

9 years agoMerge branch '3145-readonly-volumes' refs #3145
Tom Clegg [Thu, 16 Apr 2015 21:28:42 +0000 (17:28 -0400)]
Merge branch '3145-readonly-volumes' refs #3145

9 years ago5417: in case of a File dataclass with unreadable input and uneditable pipeline,...
Radhika Chippada [Thu, 16 Apr 2015 21:18:59 +0000 (17:18 -0400)]
5417: in case of a File dataclass with unreadable input and uneditable pipeline, the Run button should be disabled.

9 years ago5417: revert unreadable-input check for links since no such case exists.
Radhika Chippada [Thu, 16 Apr 2015 18:28:14 +0000 (14:28 -0400)]
5417: revert unreadable-input check for links since no such case exists.

9 years ago5417: update created_at time on pipeline_in_publicly_accessible_project, so that...
Radhika Chippada [Thu, 16 Apr 2015 18:02:18 +0000 (14:02 -0400)]
5417: update created_at time on pipeline_in_publicly_accessible_project, so that it is newest and always first in the list.

9 years agoMerge branch 'master' into 5417-not-start-pipeline-with-unreadable-inputs
Radhika Chippada [Thu, 16 Apr 2015 17:47:18 +0000 (13:47 -0400)]
Merge branch 'master' into 5417-not-start-pipeline-with-unreadable-inputs

9 years ago5417: a few changes from based on review feedback. also, account for dataclass=File...
Radhika Chippada [Thu, 16 Apr 2015 17:35:58 +0000 (13:35 -0400)]
5417: a few changes from based on review feedback. also, account for dataclass=File type when checking if input is readable by current user.

9 years ago3145: Add -readonly flag. Accept multiple -volume arguments.
Tom Clegg [Thu, 16 Apr 2015 16:16:53 +0000 (12:16 -0400)]
3145: Add -readonly flag. Accept multiple -volume arguments.

* Leave -volumes (and accept comma-separated dir lists) for backward
  compatibility.

* Detect read-only filesystems when using /proc/mounts to discover
  Keep volumes.

* VolumeManagers know whether volumes are writable, so it's not
  necessary to wait in a serialize queue just to find out a volume
  isn't writable.

* Simplify RRVolumeManager: use atomic.AddUint32() instead of channels
  and goroutines.

* -serialize (like -readonly) now affects only the volumes that come
  after it in the argument list (and automatically discovered
  volumes). This makes it possible to have a mix of serialized and
  non-serialized volumes.

* Fix some test cases that just skipped the test (instead of failing)
  when encountering an error during test setup.

* Move MockVolume code from volume.go to volume_test.go.

* Clean up some over-indented code blocks, see
  https://github.com/golang/go/wiki/CodeReviewComments#indent-error-flow

* Remove some stating-the-obvious/redundant comments and duplicate log
  messages.

9 years ago5742: User setup process uses username for VM login, not repo name.
Brett Smith [Thu, 16 Apr 2015 14:18:26 +0000 (10:18 -0400)]
5742: User setup process uses username for VM login, not repo name.

Closes #5742.

9 years agoMerge branch '5717-crunch-dynamic-max-tasks-per-node-wip'
Brett Smith [Wed, 15 Apr 2015 20:06:08 +0000 (16:06 -0400)]
Merge branch '5717-crunch-dynamic-max-tasks-per-node-wip'

Closes #5717, #5721.

9 years ago5717: crunch-job uses fewer slots when few tasks at this level.
Brett Smith [Tue, 14 Apr 2015 17:13:29 +0000 (13:13 -0400)]
5717: crunch-job uses fewer slots when few tasks at this level.

When crunch-job begins tasks at a new level, it looks at the number of
tasks scheduled for that level.  If that's smaller than the maximum
number of slots available, then it only considers slots "free" up to
the number of tasks scheduled, or the number of nodes available,
whichever is greater.

This change lets Crunch scale whole-node resources like RAM more
effectively.  This may not be desired if a level starts with a small
number of tasks queued, but later schedules more and wants maximum
parallelization, but that's uncommon enough that this seems like net
win.  Previously, Crunch could overallocate RAM in this scenario,
which seems worse.

9 years agoMerge branch '5714-gce-setup-bugfixes-wip'
Brett Smith [Wed, 15 Apr 2015 19:14:29 +0000 (15:14 -0400)]
Merge branch '5714-gce-setup-bugfixes-wip'

Closes #5714, #5715.

9 years ago5714: Avoid Node Manager race conditions around stop_if_no_cloud_node.
Brett Smith [Mon, 13 Apr 2015 20:48:16 +0000 (16:48 -0400)]
5714: Avoid Node Manager race conditions around stop_if_no_cloud_node.

Checking .is_alive() seems to always lead to race conditions.
Instead, have CloudNodeSetupActor.stop_if_no_cloud_node() return True
if it's going to stop, else False.  Have NodeManagerDaemonActor
respect this return value consistently.