Skip to content

Commit

Permalink
Added background worker settings for pg_cron
Browse files Browse the repository at this point in the history
  • Loading branch information
shhnwz committed Sep 25, 2024
1 parent d14df75 commit b42d98d
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 5 deletions.
2 changes: 2 additions & 0 deletions tembo-stacks/src/stacks/specs/analytics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ postgres_config:
value: 30min
- name: cron.host
value: /controller/run
- name: cron.use_background_workers
value: 'on'
- name: pg_stat_statements.track
value: top
- name: shared_preload_libraries
Expand Down
8 changes: 5 additions & 3 deletions tembo-stacks/src/stacks/specs/data_warehouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ postgres_config:
value: 30min
- name: cron.host
value: /controller/run
- name: cron.use_background_workers
value: 'on'
- name: pg_stat_statements.track
value: top
- name: shared_preload_libraries
Expand Down Expand Up @@ -48,7 +50,7 @@ trunk_installs:
version: 0.3.1
- name: multicorn
version: 2.5.0
- name: pg_tier
- name: pg_tier
version: 0.0.5
extensions:
- name: pg_stat_statements
Expand Down Expand Up @@ -101,8 +103,8 @@ extensions:
- database: postgres
enabled: true
version: 2.5.0
- name: pg_tier
description: pg_tier
- name: pg_tier
description: pg_tier
locations:
- database: postgres
enabled: true
Expand Down
2 changes: 2 additions & 0 deletions tembo-stacks/src/stacks/specs/machine_learning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ postgres_config:
value: all
- name: cron.host
value: /controller/run
- name: cron.use_background_workers
value: 'on'
- name: track_io_timing
value: 'on'
- name: shared_preload_libraries
Expand Down
4 changes: 3 additions & 1 deletion tembo-stacks/src/stacks/specs/olap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ postgres_config:
value: 30min
- name: cron.host
value: /controller/run
- name: cron.use_background_workers
value: 'on'
- name: pg_stat_statements.track
value: top
- name: shared_preload_libraries
Expand All @@ -45,7 +47,7 @@ trunk_installs:
version: 1.0.0
- name: parquet_s3_fdw
version: 1.1.0
- name: pg_tier
- name: pg_tier
version: 0.0.4
extensions:
- name: pg_stat_statements
Expand Down
2 changes: 2 additions & 0 deletions tembo-stacks/src/stacks/specs/paradedb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ postgres_config:
value: 30min
- name: cron.host
value: /controller/run
- name: cron.use_background_workers
value: 'on'
- name: pg_stat_statements.track
value: top
- name: shared_preload_libraries
Expand Down
2 changes: 2 additions & 0 deletions tembo-stacks/src/stacks/specs/rag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ postgres_config_engine: standard
postgres_config:
- name: cron.host
value: /controller/run
- name: cron.use_background_workers
value: 'on'
- name: vectorize.host
value: postgresql:///postgres?host=/controller/run
- name: autovacuum_vacuum_cost_limit
Expand Down
6 changes: 5 additions & 1 deletion tembo-stacks/src/stacks/specs/search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ postgres_config:
- name: pg_stat_statements.track
value: top
- name: shared_preload_libraries
value: pg_stat_statements,auto_explain,pg_search
value: pg_stat_statements,auto_explain,pg_search,pg_cron
- name: random_page_cost
value: 1.1
- name: cron.host
value: /controller/run
- name: cron.use_background_workers
value: 'on'
trunk_installs:
- name: pg_stat_statements
version: 1.10.0
Expand Down
2 changes: 2 additions & 0 deletions tembo-stacks/src/stacks/specs/timeseries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ postgres_config_engine: olap
postgres_config:
- name: cron.host
value: /controller/run
- name: cron.use_background_workers
value: 'on'
- name: autovacuum_vacuum_scale_factor
value: 0.05
- name: autovacuum_vacuum_insert_scale_factor
Expand Down
2 changes: 2 additions & 0 deletions tembo-stacks/src/stacks/specs/vectordb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ postgres_config_engine: standard
postgres_config:
- name: cron.host
value: /controller/run
- name: cron.use_background_workers
value: 'on'
- name: vectorize.host
value: postgresql:///postgres?host=/controller/run
- name: autovacuum_vacuum_cost_limit
Expand Down

0 comments on commit b42d98d

Please sign in to comment.