Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

About:
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

Installation:
pip3 install kvipset

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

Config /etc/sysconfig/kvipset.yaml example:

vips:
- {ipaddr: 192.168.2.50, prefix: 24}
- {ipaddr: 192.168.2.100, prefix: 24}
interface: eth1

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

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

systemd:

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

Requirements
- Python 3, pip, python3-devel
- arptables

Project details


Release history Release notifications

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.0.19

History Node

0.0.16

History Node

0.0.8

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 CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page