17 Commits

Author SHA1 Message Date
Ivan Folgueira Bande
46146c87b0
store-db: update db settings to new hardware 16GB RAM and 8 CPUs 2024-08-16 17:30:02 +02:00
Ivan Folgueira Bande
87d2fc1605
store-db: disable autovacuum by default
The bigger table, messages, is a partitioned one where only INSERTS
happens. Furthermore, there are no dead tuples there because we
directly drop old partitions

We may need to manually perform vacuum on other tables
2024-08-16 17:29:37 +02:00
f32d99fb06
store-db: increase consul alert tresholds
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-08-11 15:24:26 +02:00
Alexis Pentori
af9162fc2e
store-db: applying postgres system setting based on the stage
Signed-off-by: Alexis Pentori <alexis@status.im>
2024-08-08 12:23:43 +02:00
Ivan Folgueira Bande
f85fc71b50
store-db add more appropriate db settings for current db hw
Signed-off-by: Ivan Folgueira Bande <ivansete@status.im>
2024-08-07 13:27:29 +02:00
stubbsta
e6b39e4b8f
store-db: add SSH access for tanya@status.im
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-08-02 09:12:59 +02:00
Hanno Cornelius
91117c823c
store-db: add SSH access for hanno@status.im
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-07-26 09:08:33 +02:00
7df38c149d
rename the shards.test fleet to status.prod
https://github.com/status-im/infra-shards/issues/33

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-07-24 12:13:50 +02:00
749c281209
store-db: fix variable name for Postgres Alter System
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-07-16 13:42:51 +02:00
f554fe7185
store-db: set autovacuum_work_mem to 10% of memory
We have seen host crashes caused by PostgreSQL using up all memory by
trying to run `autovacuum` workers.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-07-16 13:42:50 +02:00
Ivan Folgueira Bande
062cb6d51a
set max_locks_per_transaction to 2160
We are using partitions in our postgres DBs. And we have one
partition per hour (24 partitions per day.)

The default max_locks_per_transaction value (64) can cause
"our of memory" and block issues in the DB because we use to
have more than 64 partitions.

With 2160 we aim to avoid that issue for 90 days (2160 == 90*24.)
if we consider a time retention policy of 90 days. Nevertheless,
we usually have time retention policy of 30 days in our Status fleets,
but we are just adding some extra margin.
2024-06-26 13:15:24 +02:00
8a94903ad0
store-db: disable database backups
We don't need them currently.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-01-09 14:53:23 +01:00
32662b3bd8
store-db: add Write Ahead Log size limits
Related to:
https://github.com/status-im/infra-role-postgres-ha/issues/3

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-01-09 14:05:26 +01:00
9345291a26
store-db: disable db dump timer
Not necessary for now, failes due to timeouts.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-01-02 13:38:44 +01:00
710444384b
node-db: disable replication explicitly
https://github.com/status-im/infra-role-postgres-ha/commit/97f525e9

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-11-22 13:30:26 +01:00
Anton Iakimov
3d0eb07857
bootstrap: provide SSH access to ivansete 2023-10-04 12:41:41 +02:00
Anton Iakimov
592b15b1e3
store-db: forgotten group_vars 2023-09-29 12:29:40 +02:00