/vip-manager

Manages a virtual IP based on state kept in etcd

Primary LanguageGoBSD 2-Clause "Simplified" LicenseBSD-2-Clause

vip-manager

Manages a virtual IP based on state kept in etcd or Consul. Monitors state in etcd

Installing on debian

  • Install the debian package. Currently you will have to build the package yourself. Prebuilt packages are coming soon.
  • Edit /etc/patroni/vip.conf. See the configuration section for details.
  • Start and enable vip-manager service with systemctl.

Installing by hand

  • Build the vip-manager binary using go.
  • Install service file from package/scripts/vip-manager.service to /etc/systemd/system/
  • Install configuration file from package/config/vip-manager.default to /etc/patroni/vip.conf
  • Edit config and start the service.

Configuration

All configuration keys are currently mandatory.

Variable Example Description
VIP_IP 10.1.2.3 Virtual IP that is being managed
VIP_MASK 24 Netmask of the virtual IP
VIP_IFACE eth0 Network interface to configure the IP address on. Usually the primary network interface.
VIP_KEY /service/batman/leader Key to monitor. Must match scope from Patroni postgres.yml
VIP_HOST serverX Value to trigger on. Must match name from Patroni.
VIP_TYPE etcd Type of endpoint (etcd or consul)
VIP_ENDPOINT http://10.1.2.3:2379 Location of endpoint (etcd or consul)

Author

Cybertec Schönig & Schönig GmbH, https://www.cybertec-postgresql.com