Skip to content

Commit

Permalink
Add geo yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHStanton committed Dec 5, 2023
1 parent 571e111 commit fd65e18
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/run-tembo-locally/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM quay.io/tembo/tembo-pg-cnpg:latest

USER root

RUN chown -R postgres:postgres $PGDATA && \
chmod -R 0700 $PGDATA
ENV PGDATA /var/lib/postgresql/data2
Expand Down
55 changes: 55 additions & 0 deletions tembo-operator/src/stacks/templates/gis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Geospatial
description: Postgres for geospatial workloads.
image: "quay.io/tembo/standard-cnpg:15.3.0-1-1096aeb"
stack_version: 0.1.0
compute_templates:
- cpu: 1
memory: 4Gi
- cpu: 2
memory: 8Gi
- cpu: 4
memory: 16Gi
- cpu: 8
memory: 32Gi
- cpu: 16
memory: 32Gi
postgres_config_engine: standard
postgres_config:
- name: autovacuum_vacuum_cost_limit
value: -1
- name: autovacuum_vacuum_scale_factor
value: 0.05
- name: autovacuum_vacuum_insert_scale_factor
value: 0.05
- name: autovacuum_analyze_scale_factor
value: 0.05
- name: checkpoint_timeout
value: 10min
- name: track_activity_query_size
value: 2048
- name: wal_compression
value: 'on'
- name: track_io_timing
value: 'on'
- name: log_min_duration_statement # https://www.postgresql.org/docs/15/runtime-config-logging.html
value: 1000
- name: pg_stat_statements.track
value: all
- name: shared_preload_libraries
value: pg_stat_statements
trunk_installs:
- name: pg_stat_statements
version: 1.10.0
- name: postgis
version: 3.4.0
extensions:
- name: pg_stat_statements
locations:
- database: postgres
enabled: true
version: 1.10.0
- name: postgis
locations:
- database: postgres
enabled: true
version: 3.4.0

0 comments on commit fd65e18

Please sign in to comment.