-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
Support Consul for distributed consensus #85
Comments
any update about supporting consul please |
I do not plan to implement and maintain code to deploy the Consul cluster, instead we can use this playbook https://github.com/ansible-community/ansible-consul I'll do it right away as soon as I can allocate more time. |
Thanks For your update, |
etcd is very reliable, usually there are no problems with it. If you encountered a problem, do not hesitate to open a new issue. |
I’m studying the work of Consul Service Discovery with DNS resolving and I’m starting to like it. It is convenient to search for the master and replicas (without using vip-manager or haproxy) example:
And, we can add any custom checks so that the service is considered healthy and the DNS record for this service is active. I'm thinking of adding a new type of schema: "[Type C] PostgreSQL High-Availability with Consul Service Discovery (DNS)" based on "Patroni" and "Consul". I'm thinking of doing it! |
PR: #238 To test, follow these steps: # 1. clone this repository from branch "consul"
git clone --branch consul --single-branch https://github.com/vitabaks/postgresql_cluster.git
# 2. Go to the playbook directory
cd postgresql_cluster/
# 3. Edit the inventory file
vim inventory
## Specify (non-public) IP addresses and connection settings (`ansible_user`, `ansible_ssh_pass` or `ansible_ssh_private_key_file` for your environment
# 4. Edit the variable file vars/main.yml
vim vars/main.yml
## Specify the variable: "dcs_type: consul"
# 5. install consul role requirements on the control node
ansible-galaxy install -r roles/consul/requirements.yml
# 6. Run playbook:
ansible-playbook deploy_pgcluster.yml Client access point:
|
cc @askurihin |
Done. |
Can you please support Consul as a distributed consensus store?
The text was updated successfully, but these errors were encountered: