Commit ba12d09
committed
feat(boot): background the loading of DB data into Kubernetes
This uses backgrounding of the management command and uses nohup to manage the running of the task.
Logs (that are not part of the normal Django log loop) will go into /app/data/logs/load_db_state_to_k8s.log
By doing this the Controller can go into a ready state a lot earlier than otherwise when there are a lot of resources (specficially apps)
Readiness and Liveness both have 30 second delay and in that timeframe the initial set of Model save() operations will be able to take place to create the appropriate Namespaces and Services
Generally the slowest part is the Deploy but other Kubernetes resource manipulations can be a tad bit slow.
Closes #7461 parent 1466e7b commit ba12d09
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
0 commit comments