Commit 3947ca8
authored
chore(deploy): download urls in parallel in config-processor (#6351)
Resolves #6350
Reduces time to process PPX config down from 2m to 6s:
```
./generate_local_test_config.sh --values ~/code/pathoplexus/loculus_values/values.yaml --from-live --live-host preview-main.pathoplexus.org
```
Some savings also transfer to faster pod startup (via reduced time of
init container) of backend/website, where this script also does lots of
downloading. For example backend init container on Loculus takes only 6s
vs 18s. On PPX this is even more marked, we might save almost a minute.
Before (on Loculus main):
```
../generate_local_test_config.sh --from-live 6.46s user 0.72s system 39% cpu 18.193 total
```
After:
```
../generate_local_test_config.sh --from-live 3.99s user 0.44s system 100% cpu 4.403 total
```
### Screenshot
<img width="1087" height="849" alt="image"
src="https://github.com/user-attachments/assets/57ea838b-13bf-45e8-ba5f-a161abb8e92d"
/>
Also works in init container on ArgoCD:
<img width="1319" height="396" alt="image"
src="https://github.com/user-attachments/assets/dfe5edd4-44a3-4084-8b93-72da38a849be"
/>
🚀 Preview: https://speed-up-deploy.loculus.org1 parent 39aaa21 commit 3947ca8
1 file changed
Lines changed: 57 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
20 | 64 | | |
21 | 65 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 66 | + | |
28 | 67 | | |
29 | 68 | | |
30 | 69 | | |
31 | 70 | | |
32 | 71 | | |
33 | 72 | | |
34 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
35 | 83 | | |
| 84 | + | |
36 | 85 | | |
37 | 86 | | |
38 | 87 | | |
39 | 88 | | |
40 | 89 | | |
41 | 90 | | |
42 | | - | |
| 91 | + | |
43 | 92 | | |
44 | 93 | | |
45 | 94 | | |
| |||
0 commit comments