Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pipelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pipelines
Commits
a3210f40
Commit
a3210f40
authored
4 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
[dask] Updated the target duration of a task to 10s. Being very aggressive in scale-up
parent
7b8e32c9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!56
Two new features
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pipelines/distributed/sge.py
+7
-3
7 additions, 3 deletions
bob/pipelines/distributed/sge.py
with
7 additions
and
3 deletions
bob/pipelines/distributed/sge.py
+
7
−
3
View file @
a3210f40
...
@@ -290,10 +290,14 @@ class SGEMultipleQueuesCluster(JobQueueCluster):
...
@@ -290,10 +290,14 @@ class SGEMultipleQueuesCluster(JobQueueCluster):
# interval: Milliseconds between checks from the scheduler
# interval: Milliseconds between checks from the scheduler
# wait_count: Number of consecutive times that a worker should be suggested for
# wait_count: Number of consecutive times that a worker should be suggested for
# removal before we remove it.
# removal before we remove it.
# Here the goal is to wait 2 minutes before scaling down since
# it is very expensive to get jobs on the SGE grid
self.adapt(minimum=min_jobs, maximum=max_jobs, wait_count=5, interval=10)
self.adapt(
minimum=min_jobs,
maximum=max_jobs,
wait_count=5,
interval=10,
target_duration=
"
10s
"
,
)
def _get_worker_spec_options(self, job_spec):
def _get_worker_spec_options(self, job_spec):
"""
Craft a dask worker_spec to be used in the qsub command.
"""
"""
Craft a dask worker_spec to be used in the qsub command.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment