On Sun, Dec 29, 2002 at 03:45:07PM +0800, Han Bing wrote:
> Hi:
> I am developing several game servers using UDP. I want to put my game
> servers behind lvs. As i know, lvs supports UDP "connection"
> persistence. I want to know does lvs PPC( persistence port connection )
> work for UDP too?
> For example, i have 3 games, every games has 3 servers( 9 servers in 3
> groups totally). All game1 servers listen on udp port 10000, game2
> servers listen on 10001 udp port, and game3 servers listen on 10002 udp
> port. when the client send a udp datagram to game1( to VIP:10000 ), can
> the lvs director auto-select one server from the 3 game1 servers and
> forward it to the server, AND keep the persistence of this "UDP
> connection" when she receives the following datagram from the same CIP?
> Thank you very much.
Off the top of my head, having not much experience with LVS and UDP,
yes. It should work the same way as TCP (more or less).
If you are expecing the datagrams from a given CIP to be directed to
different ports, and you want these datagrams directed to the
_same_ real server, then you should use firewall marks. Otherwies,
a normal port/ip service should suffice (though a firewall mark will
work in this case too).
--
Horms r-----------------
_|
/ |_________________\_ \\
| New Year |o|----\\
|_______________________\_--_\\
(O)_O_O_O_O_O_O_O_O_O_O_(O) \\ Old Year
|