LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Using LVS-DR for my own application

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Using LVS-DR for my own application
From: ong chee chye <ongcheechye@xxxxxxxxxxxx>
Date: Sun, 5 Jan 2003 22:03:12 +0800 (CST)
Hi,
 
I want to use lvs-dr for my own tcp-based
client/server application.
 
So far, most of the documentation I read are talking
about using lvs for standard tcp service like http,
ftp etc. I do not use any of the standard service
because I want to service the client request using my
own program.

A description of my simple tcp-based client/server
application as follow :
 
Server running at real server:

1. Listen to VIP:port (using socket.accept()).

2. Accept connection request from client (return new_
client_socket)

3. Receive request from client
(new_client_socket.receive()).

3. Process request.

4. Send result back to client
(new_client_socket.send() (I suppose this will be via
Direct Routing bypassing the director)

Client :

1. Connect to server port VIP:port (using
socket.connect())

2. Send request to server (using socket.send())

3. Receive result from server (using socket.receive())

Is the above feasible with lvs-dr ? Would lvs in the
real server intercept the client request and my server
program will not be able to receive the client
connection ? 

If possible, pls explain how I can integrate my server
program to work with lvs in real server (i.e my server
program will receive client request and send back the
result to client via direct routing using
new_client_socket).

Thanks
Chee Chye

__________________________________________________
Do You Yahoo!?
Get the latest travel deals in town!
http://sg.travel.yahoo.com


<Prev in Thread] Current Thread [Next in Thread>