Skip to content

Auto-scaling (resolves #349, resolves #600) - #541

Closed
benedictpaten wants to merge 33 commits into
masterfrom
issues/349-autoscaling
Closed

benedictpaten wants to merge 33 commits into
masterfrom
issues/349-autoscaling

Conversation

@benedictpaten

Copy link
Copy Markdown
Contributor

Not finished, starting to add abstract API. Have sketched out an algorithm, will try to get this implemented today and tomorrow in a fairly dumb way.

Resolves #349

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hannes-ucsc

Copy link
Copy Markdown
Member

My hunch is that getIssuedQueueSize() sort of hard-wires one particular notion of autoscaling algorithm, the naive one, so to speak. I think we should just pass the provisioner into the batch system and have it make its own decisions. We can always generalize later and pull functionality into leader.py. It is easier to add abstraction than to change or remove them. Besides, the only batch system that could currently support auto-scaling is Mesos.

@hannes-ucsc hannes-ucsc changed the title Issues/349 autoscaling Auto-scaling (resolves #349) Nov 12, 2015
@hannes-ucsc

Copy link
Copy Markdown
Member

Jenkins, skip this please.

@hannes-ucsc hannes-ucsc changed the title Auto-scaling (resolves #349) Auto-scaling (resolves #349, resolves #541) Dec 3, 2015
@hannes-ucsc hannes-ucsc changed the title Auto-scaling (resolves #349, resolves #541) Auto-scaling (resolves #349, resolves #600) Dec 3, 2015
@hannes-ucsc

Copy link
Copy Markdown
Member

Build fails with straight-forward error. Multiple inheritance complicates the super.__init__ mechanism.

It is uncommon for an abstract base class (ABC) to introduce state. That should be left to the concrete subclasses. I think we should push the common attributes down into each concrete subclass. If you do that the constructor of the ABC looses its arguments or maybe even becomes empty at which point you can drop it.

@benedictpaten

Copy link
Copy Markdown
Contributor Author

Okay, that was silly, do you need me to take a look, or are you proceeding?

On Fri, Dec 4, 2015 at 2:25 PM, Hannes Schmidt [email protected]
wrote:

Build fails with straight-forward error. Multiple inheritance complicates
the super.init mechanism.

It is uncommon for an abstract base class (ABC) to introduce state. That
should be left to the concrete subclasses. I think we should push the
common attributes down into each concrete subclass. If you do that the
constructor of the ABC looses its arguments or maybe even becomes empty at
which point you can drop it.

—
Reply to this email directly or view it on GitHub
#541 (comment).

@hannes-ucsc

Copy link
Copy Markdown
Member

I won't get to it before Monday. At that time I will be happy to fix it.

On Fri, Dec 4, 2015 at 3:14 PM, Benedict Paten [email protected]
wrote:

Okay, that was silly, do you need me to take a look, or are you proceeding?

On Fri, Dec 4, 2015 at 2:25 PM, Hannes Schmidt [email protected]
wrote:

Build fails with straight-forward error. Multiple inheritance complicates
the super.init mechanism.

It is uncommon for an abstract base class (ABC) to introduce state. That
should be left to the concrete subclasses. I think we should push the
common attributes down into each concrete subclass. If you do that the
constructor of the ABC looses its arguments or maybe even becomes empty
at
which point you can drop it.

—
Reply to this email directly or view it on GitHub
#541 (comment).

—
Reply to this email directly or view it on GitHub
#541 (comment).

Hannes Schmidt
Software Engineer
Center for Biomolecular Science and Engineering
University of California, Santa Cruz

(206) 696-2316 (cell)
[email protected]

@hannes-ucsc
hannes-ucsc force-pushed the issues/349-autoscaling branch from 05ba30f to 61f2365 Compare December 8, 2015 08:13
* master:
  Fix: stats/logging collator process fails if worker or general log is absent (resolves #609)
  Toil should fail if stats/logging collator process fails
  Bump version to next alpha
  Fix: dev build detection in Makefile fails with "unexpected indent"
  Retry when Azure reports a service is unavailable (resolves #583)

# Conflicts:
#	src/toil/leader.py
... 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.
@hannes-ucsc
hannes-ucsc force-pushed the issues/349-autoscaling branch from d93766b to 5611dff Compare December 9, 2015 08:21
* master:
  Skipping CWL test (connected to #621)
  If no args are passed to cwltoil tool main method, use system args (the default None will cause exception on the [workdir] + args)
… common.py

This will make more sense once we add the getNodeShape method to AbstractProvisioner
… common.py

This will make more sense once we add the getNodeShape method to AbstractProvisioner
… common.py

This will make more sense once we add the getNodeShape method to AbstractProvisioner
* master:
  Remove unused import in CWL test
  Bump cwltool version to fix pickling.  Enable strict validation of cwl files.
  Update cwltool version pin.
  Fix for args=None
* master:
  Fix: Mesos tasks aren't sorted by type (resolves #625)
* master:
  Allow uploading unowned files to file store
@hannes-ucsc

Copy link
Copy Markdown
Member

Continued in #802

@hannes-ucsc hannes-ucsc removed the ready label Apr 19, 2016
@ejacox
ejacox deleted the issues/349-autoscaling branch September 21, 2017 22:51
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.

2 participants