Skip to content

Commit d203a14

Browse files
committed
docs: Clarify application initialization
1 parent 5e90e91 commit d203a14

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,25 @@ be consistent at least.
108108

109109
### Initializing the application
110110

111-
The databases aren't created yet. The very first time, establish a shell into the `<deployment>-dfshell`
112-
container. It is likely that the scheduler and server containers are crashing in a loop.
111+
The deployment is created and the initjob should have created the databases and done the
112+
initialization of the site settings.
113113

114-
All we need to do is create two databases:
114+
If that didn't complete successfully, try to restart the job.
115+
116+
Once the deployment is complete and the initjob succeeded, we can set the install to that for false in config.yaml:
117+
118+
```
119+
initjob:
120+
install: false
121+
```
122+
123+
Alternatively, here are the manual
124+
steps to achieve the same:
125+
126+
Establish a shell into the `<deployment>-dfshell` container.
127+
It is likely that the scheduler and server containers are crashing in a loop.
128+
129+
All we need to is to run these commands:
115130

116131
1. `./manage.py clickhouse create-tables`
117132
2. `./manage.py database create-or-upgrade`

examples/deployment/application/config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ worker-catalog:
2020
limits:
2121
memory: 19000Mi
2222
requests:
23-
memory: 19000Mi
23+
memory: 19000Mi
24+
initjob:
25+
install: true

0 commit comments

Comments
 (0)