Skip to content

Edge cases of Cluster.scale() #112

Closed

Description

@jhamman

Consider a simple jobqueue cluster:

from dask_jobqueue import FooCluster
cluster = FooCluster(cores=1, processes=1)

What should the behavior of the following cases be:

cluster.scale(2)
# run immediately
cluster.scale(0)

Currently, pending jobs are not removed from the cluster and eventually come on line. This is producing some buggy behavior.

or

cluster.scale_up(4)
cluster.scale_up(2)

Currently, the second scale_up call is a no-op but 4 workers will come online. Should we update the target number of workers or inform the user that scaling up to beyond 2 is already pending?

Activity

  1. mrocklin commented on Jul 31, 2018

    @mrocklin
    Member
  2. guillaumeeb commented on Aug 1, 2018

    @guillaumeeb
    Member

    I agree with @mrocklin, pending jobs must be removed from the cluster, last call to scale must be setting the target to achieve, if there are too many pending jobs, then we must remove some.

  3. guillaumeeb commented on Oct 7, 2018

    @guillaumeeb
    Member

    So this one is actually not closed.

  4. added
    bug
    on Oct 27, 2018
  5. self-assigned this
    on Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions