Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review SLURM configuration and include new configuration option for pre-sbatch commands and gpus #1678

Merged
merged 32 commits into from
Jul 24, 2024

Conversation

tcompa
Copy link
Collaborator

@tcompa tcompa commented Jul 23, 2024

Close #1679
Close #1565

Checklist before merging

  • I added an appropriate entry to CHANGELOG.md
  • I merged main into the current branch.

@tcompa tcompa linked an issue Jul 23, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Jul 23, 2024

Benchmark comparison

GET /api/alive/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 1.0 0.8 1.25 0.0 0.0
power 1.0 0.8 1.25 0.0 0.0
dataset 1.0 0.8 1.25 0.0 0.0
project 1.0 0.8 1.25 0.0 0.0
job 0.8 0.8 1.00 0.0 0.0

GET /api/v2/dataset/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 8.6 8.4 1.02 0.7 0.7
power 412.5 413.2 1.00 440.2 440.2
dataset 161.7 161.3 1.00 171.2 171.2
project 47.4 46.7 1.01 58.9 58.9
job 27.3 30.2 0.90 41.7 41.7

GET /api/v2/job/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 5.6 5.6 1.00 2.2 2.2
power 136.3 139.8 0.97 652.0 652.0
dataset 139.4 141.9 0.98 904.8 904.8
project 46.7 47.3 0.99 283.7 283.7
job 36.1 37.2 0.97 224.8 224.8

GET /api/v2/project/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 6.0 6.0 1.00 0.1 0.1
power 5.9 5.8 1.02 0.1 0.1
dataset 5.9 5.8 1.02 0.1 0.1
project 7.8 7.8 1.00 2.3 2.3
job 5.8 5.9 0.98 0.1 0.1

GET /api/v2/workflow/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 10.0 10.5 0.95 0.8 0.8
power 23.5 24.4 0.96 29.8 29.8
dataset 18.2 18.4 0.99 17.1 17.1
project 23.9 23.6 1.01 21.5 21.5
job 9.8 9.8 1.00 0.9 0.9

POST /api/v2/project/3/dataset/405/images/query/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
dataset 149.7 149.8 1.00 275.1 275.1

Copy link

github-actions bot commented Jul 23, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  fractal_server/app/runner/executors/slurm
  _slurm_config.py
  fractal_server/app/runner/executors/slurm/ssh
  executor.py
  fractal_server/app/runner/executors/slurm/sudo
  executor.py 1126
  fractal_server/app/runner/v2
  __init__.py
  fractal_server/app/runner/v2/_slurm_common
  get_slurm_config.py
  fractal_server/app/runner/v2/_slurm_ssh
  _submit_setup.py
  fractal_server/app/runner/v2/_slurm_sudo
  _submit_setup.py
  fractal_server/ssh
  _fabric.py
Project Total  

This report was generated by python-coverage-comment-action

@tcompa
Copy link
Collaborator Author

tcompa commented Jul 24, 2024

  • Add log to non-SSH executor, regarding pre-submission commands
  • Fix current use of pre-submission commands for non-GPU tasks
  • Acquire lock for SFTP writing of new submission script
  • Test new gpus option
  • Verify persistence (or not) of module load between different calls

@tcompa tcompa changed the title Review SLURM configuration and include new configuration option for pre-sbatch commands Review SLURM configuration and include new configuration option for pre-sbatch commands and gpus Jul 24, 2024
@tcompa tcompa requested a review from mfranzon July 24, 2024 08:42
@tcompa tcompa marked this pull request as ready for review July 24, 2024 08:42
@tcompa tcompa merged commit 5407871 into main Jul 24, 2024
20 checks passed
@tcompa tcompa deleted the 1565-expose-task-specific-pre-sbatch-commands branch July 24, 2024 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose gpus SLURM parameter Expose task-specific pre-sbatch commands
1 participant