Skip to content

Implement auto-scaling (resolves #349, resolves #600) - #802

Merged
hannes-ucsc merged 53 commits into
masterfrom
issues/349-autoscaling-squashed-rebased
Apr 27, 2016
Merged

hannes-ucsc merged 53 commits into
masterfrom
issues/349-autoscaling-squashed-rebased

Conversation

@hannes-ucsc

@hannes-ucsc hannes-ucsc commented Apr 19, 2016 •

Copy link
Copy Markdown
Member

Resolves #349, resolves #600.

Continues #541

@hannes-ucsc hannes-ucsc changed the title Implement autoscaling (resolves #349) Implement autoscaling (resolves #349, resolves #600) Apr 19, 2016
@hannes-ucsc hannes-ucsc changed the title Implement autoscaling (resolves #349, resolves #600) Implement auto-scaling (resolves #349, resolves #600) Apr 19, 2016
@hannes-ucsc
hannes-ucsc force-pushed the issues/349-autoscaling-squashed-rebased branch 3 times, most recently from fd5d768 to 9f3236d Compare April 22, 2016 01:53
@benedictpaten

Copy link
Copy Markdown
Contributor

Is this ready to merge?! I'd like to discuss tests for this.

@hannes-ucsc

Copy link
Copy Markdown
Member Author

No.

benedictpaten and others added 20 commits April 26, 2016 10:30
Fixing test. (+9 squashed commits)
Squashed commits:
[eb615b8] Changed to algorithm that uses avg job length to predict cluster needs.
[86e9677] Refactored to make way for updated autoscaling algorithm (some of it was just general logical cleanup)
[cd0472c] Removing duplicate methods
[cacb276] Tests passing, but unhappy with autoscaling algorithm
[ec34572] Tests for the cluster scaler in and working.
[6f716b7] Adding in support for specification if a job is preemptable or note
[a708025] Initial commit of provisioning algorithm. Still need to:  (1) add preemption option for jobs  (2) write a provisioner instance  (3) implement new functions within batch systems
[62fc197] Adding in a new abstract method to the abstract batch system class to get an approximation to the number of currently issued jobs queued.
[3e98514] Adding basic provisioning API with concept of uninteruptable and
preemptable nodes in a cluster.
... so that it's not dictated by test concerns and eliminates state in ABCs. Switched to new-style classes. Should fix most of the tests that broke when ScalableBatchSystemInterface was introduced. Plus nitpicks.
… common.py

This will make more sense once we add the getNodeShape method to AbstractProvisioner
Mesos batch system: test tweaks (+7 squashed commits)
Squashed commits:
[b8f4aca] Mesos batch system: fix merge errors; consolidate redundant functionality
[28fd8ec] Mesos batch system: fix variable naming
[c85a023] Mesos batch system: fix merge error with variable name
[28bf00d] Mesos batch system: fix missing interpolation in log message
[c29df69] Mesos batch system: some method renamings
[22091ae] Mesos batch system: Comment cleanup
[7792d55] Mesos batch system: Removed unused/unsupported configuration
… like hot-deployment and worker clean-up
- user only specifies --nodeType, the corresponding shape is determined by provisioner
- added provisioner-specific --nodeOptions
- eliminate düplication
- rid variable and option names of the "nonPreemptable" tongue breaker
- pass preemptable bid as part of nodeType
Non-preemptable nodes and jobs are the default. Variables for the default case shouldn't be longer than the ones representing the special case.
There were just too many shadowed local variables for my taste.
@hannes-ucsc
hannes-ucsc force-pushed the issues/349-autoscaling-squashed-rebased branch from 2addeca to ccadc60 Compare April 26, 2016 17:31
@hannes-ucsc

Copy link
Copy Markdown
Member Author

Jenkins, test this please.

@hannes-ucsc
hannes-ucsc force-pushed the issues/349-autoscaling-squashed-rebased branch from 38c78b2 to ccadc60 Compare April 26, 2016 23:29
@hannes-ucsc

Copy link
Copy Markdown
Member Author

So changing the instance type to c3.large caused the Toil builds to hang in the SLURM tests. I believe this is due to the lower memory offered by c3.large compared to m3.large.

I changed the type again to c3.xlarge which has more cores and more memory than m3.large.

@hannes-ucsc

Copy link
Copy Markdown
Member Author

I've added BD2KGenomics/cgcloud#155 to track the test sensitivity to instance type.

@hannes-ucsc

Copy link
Copy Markdown
Member Author

With c3.xlarge, testServiceParallelRecursive hangs.

@hannes-ucsc

Copy link
Copy Markdown
Member Author

Switched back to m3.large to skip the hanging test.

Jenkins, test this please.

@hannes-ucsc

Copy link
Copy Markdown
Member Author

Failed again, running out of SDB domains.

Jenkins, test this please.

@hannes-ucsc
hannes-ucsc merged commit a7a7599 into master Apr 27, 2016
@ejacox
ejacox deleted the issues/349-autoscaling-squashed-rebased branch September 21, 2017 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement provisioner for EC2 Design and implement autoscaling algorithm

2 participants