-
-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure WAL-G? #692
Comments
Hi @vitabaks ! wal_g_install: true
wal_g_version: "3.0.2"
wal_g_path: "/usr/local/bin/wal-g"
wal_g_json: # config https://github.com/wal-g/wal-g#configuration
- { option: "PGDATA", value: "{{ postgresql_data_dir }}" }
- { option: "PGHOST", value: "{{ postgresql_unix_socket_dir }}" }
- { option: "PGPORT", value: "{{ postgresql_port }}" }
- { option: "PGUSER", value: "{{ patroni_superuser_username }}" }
- { option: "AWS_S3_FORCE_PATH_STYLE", value: "true" } # to use Minio.io S3-compatible storage
- { option: "AWS_ENDPOINT", value: "http://172.20.20.22:9000" } I updated and there is a new error:
|
Fixed here #693 Please check. |
Thanks @vitabaks ! Now it is working but there is a new issue:
Despite patroni is running on leader:
systemctl status patroni
but no 5432 up |
Judging by the logs, the cluster is being restored from a backup
So you specified the variable |
|
Restore. If wal-g is specified for bootstrap, the cluster will be created from a backup.
after you already have a cluster and backup copy, you can change it to "wal-g" to be able to restore the cluster. See details https://github.com/vitabaks/postgresql_cluster#restore-and-cloning |
If I first deploy cluster with bootstrap="initdb", to swith from "initdb" to "wal-g", should I remove cluster firts and then run deploy one more times:
Or it's done by installing "wal-g" on each node? |
No. You don't need to delete the cluster.
See Cluster Scaling
Yes, if you have a backup copy, you can prepare a replica (patroni_create_replica_methods) from it or deploy a new cluster (patroni_cluster_bootstrap_method). |
Thanks @vitabaks !
Manually it's working, but not backing up automatically |
Please attach /etc/cron.d/walg content. |
WAL-Gwal_g_install: true
wal_g_archive_command: "{{ wal_g_path }} wal-push %p" wal_g_backup_command:
wal_g_cron_jobs:
|
perhaps the latest version of wal-g requires we to explicitly specify the config path. Try it this option:
|
Thanks! |
How to configure WAL-G? for restore and backup? I've a minio server on 172.20.20.22.
vars/main.yml
ERROR:
The text was updated successfully, but these errors were encountered: