/
mongo_alternative.yaml
115 lines (115 loc) · 2.78 KB
/
mongo_alternative.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: MongoAlternative
description: Document-facing workloads on Postgres.
repository: "quay.io/tembo"
organization: tembo
images:
14: "standard-cnpg:14-ed6e9e9"
15: "standard-cnpg:15-ed6e9e9"
16: "standard-cnpg:16-ed6e9e9"
stack_version: 0.1.0
appServices:
- name: fdb-api
image: ghcr.io/ferretdb/ferretdb
routing:
- port: 27018
ingressPath: /ferretdb/v1
entryPoints:
- ferretdb
ingressType: tcp
env:
- name: FERRETDB_POSTGRESQL_URL
valueFromPlatform: ReadWriteConnection
- name: FERRETDB_LOG_LEVEL
value: debug
- name: FERRETDB_STATE_DIR
value: '-'
- name: FERRETDB_LISTEN_TLS_CERT_FILE
value: /tembo/certs/tls.crt
- name: FERRETDB_LISTEN_TLS_KEY_FILE
value: /tembo/certs/tls.key
- name: FERRETDB_LISTEN_TLS
value: :27018
storage:
volumes:
- name: ferretdb-data
ephemeral:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
volumeMounts:
- name: ferretdb-data
mountPath: /state
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 400m
memory: 256Mi
compute_templates:
- cpu: 0.25
memory: 1Gi
instance_class: GeneralPurpose
- cpu: 1
memory: 4Gi
instance_class: GeneralPurpose
- cpu: 2
memory: 8Gi
instance_class: GeneralPurpose
- cpu: 4
memory: 16Gi
instance_class: GeneralPurpose
- cpu: 8
memory: 32Gi
instance_class: GeneralPurpose
- cpu: 2
memory: 4Gi
instance_class: ComputeOptimized
- cpu: 4
memory: 8Gi
instance_class: ComputeOptimized
- cpu: 8
memory: 16Gi
instance_class: ComputeOptimized
- cpu: 1
memory: 8Gi
instance_class: MemoryOptimized
- cpu: 2
memory: 16Gi
instance_class: MemoryOptimized
- cpu: 4
memory: 32Gi
instance_class: MemoryOptimized
trunk_installs:
- name: pg_stat_statements
version: 1.10.0
extensions:
- name: pg_stat_statements
locations:
- database: postgres
enabled: true
version: 1.10.0
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