Skip to content

Commit aa065ba

Browse files
committed
Merge branch 'config_scheduler_section' into 'master'
Get "scheduler" config section back See merge request postgres-ai/database-lab!144
2 parents 2238b72 + 6e943c5 commit aa065ba

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

configs/config.example.physical_generic.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,19 @@ retrieval:
203203
work_mem: "100MB"
204204
# ... put Query Planning parameters here
205205

206+
# Scheduler contains tasks which run on a schedule.
207+
scheduler:
208+
# Snapshot scheduler creates a new snapshot on a schedule.
209+
snapshot:
210+
# Timetable defines in crontab format: https://en.wikipedia.org/wiki/Cron#Overview
211+
timetable: "0 */6 * * *"
212+
# Retention scheduler cleans up old snapshots on a schedule.
213+
retention:
214+
# Timetable defines in crontab format: https://en.wikipedia.org/wiki/Cron#Overview
215+
timetable: "0 * * * *"
216+
# Limit defines how many snapshots should be hold.
217+
limit: 4
218+
206219
cloning:
207220
# Deprecated field. Default: "base".
208221
mode: "base"

configs/config.example.physical_walg.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,19 @@ retrieval:
196196
work_mem: "100MB"
197197
# ... put Query Planning parameters here
198198

199+
# Scheduler contains tasks which run on a schedule.
200+
scheduler:
201+
# Snapshot scheduler creates a new snapshot on a schedule.
202+
snapshot:
203+
# Timetable defines in crontab format: https://en.wikipedia.org/wiki/Cron#Overview
204+
timetable: "0 */6 * * *"
205+
# Retention scheduler cleans up old snapshots on a schedule.
206+
retention:
207+
# Timetable defines in crontab format: https://en.wikipedia.org/wiki/Cron#Overview
208+
timetable: "0 * * * *"
209+
# Limit defines how many snapshots should be hold.
210+
limit: 4
211+
199212
cloning:
200213
# Deprecated field. Default: "base".
201214
mode: "base"

0 commit comments

Comments
 (0)