Skip to content

Commit 67114b7

Browse files
Fix queue helm values in TTL docs (#954)
Queue.extraEnv -> Queue.deployment.extraEnv
1 parent 6cd3026 commit 67114b7

File tree

1 file changed

+20
-16
lines changed
  • docs/self_hosting/configuration

1 file changed

+20
-16
lines changed

docs/self_hosting/configuration/ttl.mdx

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ To disable the cleanup job entirely:
5959

6060
```yaml
6161
queue:
62-
extraEnv:
63-
- name: "ENABLE_CLICKHOUSE_TTL_CLEANUP_CRON"
64-
value: "false"
62+
deployment:
63+
extraEnv:
64+
- name: "ENABLE_CLICKHOUSE_TTL_CLEANUP_CRON"
65+
value: "false"
6566
```
6667
6768
### Configuring the Schedule
@@ -70,13 +71,14 @@ You can customize when the cleanup job runs by modifying the cron expressions:
7071
7172
```yaml
7273
queue:
73-
extraEnv:
74-
# UTC: Sunday 12am/2am/4am
75-
- name: "CLICKHOUSE_TTL_CLEANUP_CRON_WEEKEND_MORNING"
76-
value: "0 0,2,4 * * 0"
77-
# UTC: Saturday 8pm/10pm
78-
- name: "CLICKHOUSE_TTL_CLEANUP_CRON_WEEKEND_EVENING"
79-
value: "0 20,22 * * 6"
74+
deployment:
75+
extraEnv:
76+
# UTC: Sunday 12am/2am/4am
77+
- name: "CLICKHOUSE_TTL_CLEANUP_CRON_WEEKEND_MORNING"
78+
value: "0 0,2,4 * * 0"
79+
# UTC: Saturday 8pm/10pm
80+
- name: "CLICKHOUSE_TTL_CLEANUP_CRON_WEEKEND_EVENING"
81+
value: "0 20,22 * * 6"
8082
```
8183
8284
:::tip Single Schedule
@@ -92,9 +94,10 @@ The job goes table by table, scanning parts and deleting data from parts contain
9294

9395
```yaml
9496
queue:
95-
extraEnv:
96-
- name: "CLICKHOUSE_TTL_CRON_MIN_EXPIRED_ROWS_PER_PART"
97-
value: "100000" # 100k expired rows
97+
deployment:
98+
extraEnv:
99+
- name: "CLICKHOUSE_TTL_CRON_MIN_EXPIRED_ROWS_PER_PART"
100+
value: "100000" # 100k expired rows
98101
```
99102

100103
#### Checking Expired Rows
@@ -120,9 +123,10 @@ Delete operations can be time-consuming (~50 minutes for a 100GB part). You can
120123

121124
```yaml
122125
queue:
123-
extraEnv:
124-
- name: "CLICKHOUSE_TTL_CRON_MAX_ACTIVE_MUTATIONS"
125-
value: "1"
126+
deployment:
127+
extraEnv:
128+
- name: "CLICKHOUSE_TTL_CRON_MAX_ACTIVE_MUTATIONS"
129+
value: "1"
126130
```
127131

128132
:::danger Concurrent Mutations

0 commit comments

Comments
 (0)