Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Virtual IP manager for LVS DSR based backends

Project description

k-vipset - Virtual IP manager cli and systemd service for LVS DSR based backends

Copyright (C) 2018 Denis V. Shakalo

k-vipset Virtual IP manager for LVS DSR based backends for DSR (Direct Server Response) mode.
Configures VIPs and arp filtering rules.
This script is designed to maintain reliable, error-tolerant DSR systems.
ARP filtering and substitution for DSR VIPs have to be configured and checked very carefully
because only LVS DSR Router have to response to VIP arp requests.
In case of one node misconfiguration this node will serve all cluster traffic.
In case of more than one node misconfiguration the cluster will drop TCP connections.

This script implements complete set of checks for safe DSR VIP configuration

pip3 install kvipset

- edit /etc/sysconfig/kvipset.yaml (default location) to change VIP and interface settings

Config /etc/sysconfig/kvipset.yaml example:

- {ipaddr:, prefix: 24}
- {ipaddr:, prefix: 24}
interface: eth1

If interface is not configured (default), script uses system default route interface

k-vipset [-h] [--config config] action (set/unset)


systemctl enable kvipset - to configure on startup
systemctl start kvipset - to add VIPs
systemctl stop kvipset - to remove VIPS
systemctl restart kvipset - to reconfigure VIPS

- Python 3, pip, python3-devel
- arptables

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
kvipset-0.1.2.tar.gz (9.2 kB) Copy SHA256 hash SHA256 Source None Apr 23, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page