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

Support read-only mode for v1 #1701

Merged
merged 9 commits into from
Aug 21, 2024
Merged

Conversation

ychiucco
Copy link
Collaborator

@ychiucco ychiucco commented Jul 31, 2024

closes #1689

Checklist before merging

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

@ychiucco ychiucco linked an issue Jul 31, 2024 that may be closed by this pull request
@ychiucco ychiucco requested a review from mfranzon July 31, 2024 16:44
Copy link

github-actions bot commented Jul 31, 2024

Benchmark comparison

GET /api/alive/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 0.8 0.9 0.89 0.0 0.0
power 0.8 0.8 1.00 0.0 0.0
dataset 0.8 0.8 1.00 0.0 0.0
project 0.8 0.8 1.00 0.0 0.0
job 0.8 1.0 0.80 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.8 8.6 1.02 0.7 0.7
power 432.6 410.8 1.05 440.2 440.2
dataset 172.2 162.0 1.06 171.2 171.2
project 48.5 45.3 1.07 58.9 58.9
job 32.7 29.9 1.09 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 6.2 5.8 1.07 2.2 2.2
power 142.6 139.1 1.03 652.0 652.0
dataset 145.8 139.0 1.05 904.8 904.8
project 49.8 47.1 1.06 283.7 283.7
job 39.1 36.8 1.06 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 7.1 6.0 1.18 0.1 0.1
power 6.8 5.8 1.17 0.1 0.1
dataset 7.1 5.9 1.20 0.1 0.1
project 8.8 7.7 1.14 2.3 2.3
job 6.0 5.8 1.03 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 11.5 10.3 1.12 0.8 0.8
power 25.8 24.2 1.07 29.8 29.8
dataset 19.4 18.4 1.05 17.1 17.1
project 23.2 21.3 1.09 21.5 21.5
job 13.6 10.1 1.35 0.9 0.9

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

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
dataset 154.3 148.3 1.04 275.1 275.1

GET /auth/current-user/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 4.6 4.1 1.12 0.2 0.2
power 4.5 4.0 1.12 0.2 0.2
dataset 4.2 4.0 1.05 0.2 0.2
project 4.1 3.9 1.05 0.2 0.2
job 4.0 3.9 1.03 0.2 0.2

@ychiucco ychiucco added the v1 label Jul 31, 2024
Copy link

github-actions bot commented Jul 31, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  fractal_server/app/routes/api/v1
  _aux_functions.py
  dataset.py
  project.py
  task.py
  task_collection.py
  workflow.py
  workflowtask.py
  fractal_server/app/runner/executors/slurm/sudo
  executor.py
Project Total  

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

@tcompa tcompa merged commit 379bea9 into main Aug 21, 2024
20 checks passed
@tcompa tcompa deleted the 1689-support-read-only-mode-for-v1 branch August 21, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support read-only mode for V1
2 participants