From f0d4f6060034361bead141fc03d408e1ebb27f12 Mon Sep 17 00:00:00 2001 From: Viacheslav Date: Mon, 27 Dec 2021 07:45:37 +0000 Subject: keepalived: T4109: Add XML for high-availability virtual-server Add XML for required 'virtual-server' configuration commands --- interface-definitions/high-availability.xml.in | 395 +++++++++++++++++++++++++ 1 file changed, 395 insertions(+) create mode 100644 interface-definitions/high-availability.xml.in (limited to 'interface-definitions/high-availability.xml.in') diff --git a/interface-definitions/high-availability.xml.in b/interface-definitions/high-availability.xml.in new file mode 100644 index 000000000..42cdceed1 --- /dev/null +++ b/interface-definitions/high-availability.xml.in @@ -0,0 +1,395 @@ + + + + + 800 + High availability settings + + + + + Virtual Router Redundancy Protocol settings + + + + + VRRP group + + + #include + + + Advertise interval + + u32:1-255 + Advertise interval in seconds (default: 1) + + + + + + 1 + + + + VRRP authentication + + + + + VRRP password + + txt + Password string (up to 8 characters) + + + .{1,8} + + Password must not be longer than 8 characters + + + + + Authentication type + + plaintext-password ah + + + plaintext-password + Simple password string + + + ah + AH - IPSEC (not recommended) + + + ^(plaintext-password|ah)$ + + Authentication type must be plaintext-password or ah + + + + + #include + #include + + + Health check script + + + + + Health check failure count required for transition to fault (default: 3) + + + + + 3 + + + + Health check execution interval in seconds (default: 60) + + + + + 60 + + + + Health check script file + + + + + + + + + + VRRP hello source address + + ipv4 + IPv4 hello source address + + + ipv6 + IPv6 hello source address + + + + + + + + + + Unicast VRRP peer address + + ipv4 + IPv4 unicast peer address + + + ipv6 + IPv6 unicast peer address + + + + + + + + + + + Disable master preemption + + + + + Preempt delay (in seconds) + + u32:0-1000 + preempt delay + + + + + + 0 + + + + Router priority (default: 100) + + u32:1-255 + Router priority + + + + + + 100 + + + + Use VRRP virtual MAC address as per RFC3768 + + + + #include + + + Virtual IP address + + ipv4 + IPv4 virtual address + + + ipv6 + IPv6 virtual address + + + + + + + + + + + Virtual address (If you need additional IPv4 and IPv6 in same group) + + ipv4 + IP address + + + ipv6 + IPv6 address + + + + + + + Virtual address must be a valid IPv4 or IPv6 address with prefix length (e.g. 192.0.2.3/24 or 2001:db8:ff::10/64) + + + + + Virtual router identifier + + u32:1-255 + Virtual router identifier + + + + + + + + + + + VRRP sync group + + + + + + Sync group member + + txt + VRRP group name + + + high-availability vrrp group + + + + #include + + + + + + + Load-balancing virtual server address + + + + + Schedule algorithm (default - least-connection) + + round-robin weighted-round-robin least-connection weighted-least-connection source-hashing destination-hashing locality-based-least-connection + + + round-robin + Round robin + + + weighted-round-robin + Weighted round robin + + + least-connection + Least connection + + + weighted-least-connection + Weighted least connection + + + source-hashing + Source hashing + + + destination-hashing + Destination hashing + + + locality-based-least-connection + Locality-Based least connection + + + ^(round-robin|weighted-round-robin|least-connection|weighted-least-connection|source-hashing|destination-hashing|locality-based-least-connection)$ + + + least-connection + + + + Interval between health-checks (in seconds) + + u32:1-600 + Interval in seconds (default: 10) + + + + + + 10 + + + + Forwarding method (default - NAT) + + direct nat tunnel + + + direct + Direct routing + + + nat + NAT + + + tunnel + Tunneling + + + ^(direct|nat|tunnel)$ + + + nat + + #include + + + Timeout for persistent connections + + u32:1-86400 + Timeout for persistent connections (default 300) + + + + + + 300 + + + + Protocol for port checks (default TCP) + + tcp udp + + + tcp + Protocol TCP + + + udp + Protocol UDP + + + ^(tcp|udp)$ + + + tcp + + + + Real server address + + + #include + + + Connection timeout to remote server + + u32:1-86400 + Connection timeout to remote server + + + + + + + + + + + + + -- cgit v1.2.3