Commit Graph

19 Commits

Author SHA1 Message Date
Jakub Sokołowski 0e166b76b4
docker: fix postgres_ha_share_memory variable name
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-10-30 11:36:36 +01:00
Alexis Pentori e48e129d8b
metrics: add postgres-exporter and pg-agent
* postgres-exporter for basic database metrics
  - pg-agent: optional, to identify query performence issues

Signed-off-by: Alexis Pentori <alexis@status.im>
2024-10-11 12:29:27 +02:00
Alexis Pentori aa752f4062
docker: configuring share memory
Signed-off-by: Alexis Pentori <alexis@status.im>
2024-08-20 13:57:09 +02:00
Jakub Sokołowski bf869e93a4
docker: add ability to configure custom network
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-08-19 11:03:00 +02:00
Jakub Sokołowski 04b78168fd
consul: add customizing consul check defaults
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-08-11 15:24:17 +02:00
Jakub Sokołowski aa6b4fe577
init: add support for creating extra users
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-08-08 09:15:09 +02:00
Jakub Sokołowski dfe1e2ccdf
rename postgres_ha_alter_system_settings
To use same prefix as all other variables.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-06-25 16:04:56 +02:00
Anton Iakimov c1d16dce0b
docker: switch compose to v2 2024-05-30 16:29:14 +02:00
Jakub Sokołowski 9fbe3851b9
init: script to modify settings using alter system
Necessary for waku fleets to limnit WAL growth size.
https://github.com/status-im/infra-role-postgres-ha/issues/3

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-01-09 14:04:55 +01:00
Jakub Sokołowski c647a9f57d
backup: add option to disable the backup timer
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-06 11:48:36 +01:00
Jakub Sokołowski 97f525e905
consul: add health.sh to check replica status
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-11-22 13:15:45 +01:00
Jakub Sokołowski bbdb294e3d
databases: use initdb folder to create DBs and users
This way when the database is cleared the user is automatically created
without the need to run Ansible.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-11-21 16:14:28 +01:00
Jakub Sokołowski 8fcbe906fc
defaults: fix variable name for DB UID
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-11-21 15:57:33 +01:00
Alexis Pentori 085e30fd75
backup: adding condition before setting backup
Signed-off-by: Alexis Pentori <alexis@status.im>
2023-11-16 12:40:02 +01:00
Jakub Sokołowski dd12ecd90a
backup: fix location of backup directory
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-06 18:03:55 +01:00
Jakub Sokołowski 0ea85fa043
backup: fix service name variable
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-05 12:52:41 +01:00
Jakub Sokołowski 6ed5ff3780
add db_dump backup timer
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-11-24 20:45:53 +01:00
Jakub Sokołowski bf8662b20f
add consul service definition
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-11-24 20:45:06 +01:00
Jakub Sokołowski 80e572044e
add first working version
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-11-24 16:43:35 +01:00