Support for LVS (Linux Virtual Server)
Add a real server to a virtual service.
The service protocol(only support tcp
, udp
and fwmark
service).
The LVS service address.
The real server address.
The LVS packet forwarding method(dr
for direct routing, tunnel
for tunneling, nat
for network access translation).
The capacity of a server relative to the others in the pool.
CLI Example:
salt '*' lvs.add_server tcp 1.1.1.1:80 192.168.0.11:8080 nat 1
Add a virtual service.
The service protocol(only support tcp, udp and fwmark service).
The LVS service address.
Algorithm for allocating TCP connections and UDP datagrams to real servers.
CLI Example:
salt '*' lvs.add_service tcp 1.1.1.1:80 rr
Check the real server exists in the specified service.
CLI Example:
salt '*' lvs.check_server tcp 1.1.1.1:80 192.168.0.11:8080
Check the virtual service exists.
CLI Example:
salt '*' lvs.check_service tcp 1.1.1.1:80
Clear the virtual server table
CLI Example:
salt '*' lvs.clear
Delete the realserver from the virtual service.
The service protocol(only support tcp
, udp
and fwmark
service).
The LVS service address.
The real server address.
CLI Example:
salt '*' lvs.delete_server tcp 1.1.1.1:80 192.168.0.11:8080
Delete the virtual service.
The service protocol(only support tcp, udp and fwmark service).
The LVS service address.
CLI Example:
salt '*' lvs.delete_service tcp 1.1.1.1:80
Edit a real server to a virtual service.
The service protocol(only support tcp
, udp
and fwmark
service).
The LVS service address.
The real server address.
The LVS packet forwarding method(dr
for direct routing, tunnel
for tunneling, nat
for network access translation).
The capacity of a server relative to the others in the pool.
CLI Example:
salt '*' lvs.edit_server tcp 1.1.1.1:80 192.168.0.11:8080 nat 1
Edit the virtual service.
The service protocol(only support tcp, udp and fwmark service).
The LVS service address.
Algorithm for allocating TCP connections and UDP datagrams to real servers.
CLI Example:
salt '*' lvs.edit_service tcp 1.1.1.1:80 rr
Get the virtual server rules
CLI Example:
salt '*' lvs.get_rules
List the virtual server table if service_address is not specified. If a service_address is selected, list this service only.
CLI Example:
salt '*' lvs.list
Zero the packet, byte and rate counters in a service or all services.
CLI Example:
salt '*' lvs.zero