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