vip-manager has long been a crucial tool for managing virtual IPs in PostgreSQL HA setups, providing reliable leader routing. With the release of version 2.8.0, we're taking things to the next level by introducing native integration with the Patroni REST API. This new feature adds flexibility and simplifies configuration, making it easier than ever to manage your PostgreSQL HA clusters.
Table of Contents
In this release, vip-manager
can now directly interact with Patroni via its REST API. This integration removes the need for complex custom setups, enabling more dynamic and flexible management of virtual IPs.
vip-manager
now works seamlessly with Patroni clusters without additional configurations for etcd
or consul
.vip-manager
is quicker and easier than ever.Here are a couple of examples to showcase the new feature:
This command configures vip-manager
to set up a virtual IP for the primary node:
1 2 |
vip-manager --ip=10.0.0.42 --interface=eth0 \ --trigger-key="/leader" --trigger-value=200 --dcs-type=patroni |
What does it do?
--ip=10.0.0.42
: The virtual IP to be managed.--interface=eth0
: The network interface where vip-manager will set up the virtual IP.--trigger-key="/leader"
: The endpoint in Patroni's REST API to check if the node is the leader.--trigger-value=200
: The HTTP status code indicating success.--dcs-type=patroni
: Specifies Patroni as the source of truth (the prefix dcs
is still here due to historical reasons).If the current host is the leader, according to Patroni, the virtual IP will be assigned.
This command configures vip-manager
to manage a virtual IP for the replica node:
1 2 |
vip-manager --ip=10.0.0.42 --interface=eth0 \ --trigger-key="/asynchronous" --trigger-value=200 --dcs-type=patroni |
Key Notes:
dcs-endpoints
if Patroni is running on localhost.If you want to contribute to vip-manager and help to make it better:
In conclusion, I wish you all the best! Happy managing! 💙💛
See you soon in person at one of the conferences, meetups, or training sessions!
You need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Facebook. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from X. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information
Leave a Reply