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.

Main Feature: Patroni REST API Integration

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.

What does this mean for you?

Example Usage of Patroni REST API

Here are a couple of examples to showcase the new feature:

Managing Virtual IP for the Primary Node

This command configures vip-manager to set up a virtual IP for the primary node:

vip-manager --ip=10.0.0.42 --interface=eth0 \ 
--trigger-key="/leader" --trigger-value=200 --dcs-type=patroni

What does it do?

If the current host is the leader, according to Patroni, the virtual IP will be assigned.

Managing Virtual IP for the Replica

This command configures vip-manager to manage a virtual IP for the replica node:

vip-manager --ip=10.0.0.42 --interface=eth0 \
 --trigger-key="/asynchronous" --trigger-value=200 --dcs-type=patroni

Key Notes:

Try it today!

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!

The post vip-manager v2.8 meets Patroni REST API appeared first on CYBERTEC PostgreSQL | Services & Support.