You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
failure to autoscale unless workers are already present #26
I am testing the PBSCluster along with autoscaling. It seems that I am unable to get the cluster to launch any workers without explicitly starting at least one worker. I would expect that this configuration would scale from 0 to 10 (180 processes) without further interaction/configuration.
@mrocklin - this may actually be a problem with the dask adaptive cluster but I wanted to discuss here to see if I am missing something obvious specific to PBS.
On Thu, Mar 29, 2018 at 3:35 PM, Joe Hamman ***@***.***> wrote:
I am testing the PBSCluster along with autoscaling. It seems that I am
unable to get the cluster to launch any workers without explicitly starting
at least one worker. I would expect that this configuration would scale
from 0 to 10 (180 processes) without further interaction/configuration.
cluster = PBSCluster(queue='default',
walltime='01:00:00',
project='MyAccount',
resource_spec='1:ncpus=36:mpiprocs=36:mem=109GB',
interface='ib0',
threads=4,
processes=18)
client = Client(cluster)
cluster.adapt(minimum=0, maximum=10)
@mrocklin <https://github.com/mrocklin> - this may actually be a problem
with the dask adaptive cluster but I wanted to discuss here to see if I am
missing something obvious specific to PBS.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASszP7j_X4s7IepLV44BwOnbXqxShn6ks5tjTeVgaJpZM4TA3ut>
.
Watching the PBS status, a single worker was launched but was quickly culled. After that no additional worker were launched, despite having set the minimum workers to 1.
A few things I don't understand here:
Why was the first job culled? It seems minimum was used to determine the initial number of workers but it was not respected when autoscaling down.
How Adaptive uses the scale_factor=2 when the number of workers is 0.
How does autoscaling work with grouped resources? I set the minimum number of workers to 1 but each job really has 9 or 18 processes (workers). Could that be causing a problem?
How does autoscaling work with grouped resources? I set the minimum number of workers to 1 but each job really has 9 or 18 processes (workers). Could that be causing a problem?
It's a good question. I'm not sure anyone has thought about this. Perhaps this is the problem?
In general adaptive deployments are young and could use help both with experimentation and development.
Thanks @mrocklin - it seems like we could do a better job defining the terminology around grouped workers and maybe add a test or two to adaptive that targets this use case.
It's a good question. I'm not sure anyone has thought about this. Perhaps this is the problem?
In general adaptive deployments are young and could use help both with experimentation and development.
Do you think there is existing test coverage for this code path within distributed? If not, would you be open to me adding some there? I could add it here as well but this doesn't seem like the appropriate place.
I think that you want
distributed/tests/test_scheduler.py::test_workers_to_close_grouped or more
generally the key= argument in workers_to_close, which gets passed in
through retire_workers
Activity
mrocklin commentedon Mar 29, 2018
jhamman commentedon Mar 30, 2018
Here's what I'm seeing in some more detail:
Watching the PBS status, a single worker was launched but was quickly culled. After that no additional worker were launched, despite having set the
minimumworkers to 1.A few things I don't understand here:
scale_factor=2when the number of workers is 0.mrocklin commentedon Mar 30, 2018
I don't know. Maybe your last question has to do with this?
See logic in https://github.com/dask/distributed/blob/8acddcc017172e43f815be9cc5183593dd7f6b45/distributed/deploy/adaptive.py#L222-L248
It's a good question. I'm not sure anyone has thought about this. Perhaps this is the problem?
In general adaptive deployments are young and could use help both with experimentation and development.
jhamman commentedon Apr 2, 2018
Thanks @mrocklin - it seems like we could do a better job defining the terminology around grouped workers and maybe add a test or two to adaptive that targets this use case.
jhamman commentedon Apr 27, 2018
@mrocklin -
Do you think there is existing test coverage for this code path within distributed? If not, would you be open to me adding some there? I could add it here as well but this doesn't seem like the appropriate place.
mrocklin commentedon Apr 28, 2018
jhamman commentedon May 1, 2018
@mrocklin - I'm looking at the adaptive tests now. Can you point me to the tests for the grouped workers (without adaptive)?
mrocklin commentedon May 1, 2018
jhamman commentedon Jul 16, 2018
closed via #63