Re: Transparent load balancing

2011-07-12 Thread Damien Fleuriot
On 7/11/11 6:49 PM, Unga wrote:
 Hi all
 
 I need to implement a transparent load balancing daemon in C.
 
 That is, the daemon accept a TCP connection, get more info from the client, 
 and forward the communication transparently to another server to handle it.
 
 How this could be implemented on FreeBSD? What basic primitives I should 
 study more?
 
 Many thanks in advance.
 
 Best regards
 Unga



Hey up,



2 questions come to mind:

1/ get more info from the client - what kind of info ?
2/ have you considered HAProxy ? It does offer a TCP mode.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Transparent load balancing

2011-07-12 Thread Unga
--- On Tue, 7/12/11, Damien Fleuriot m...@my.gd wrote:

 From: Damien Fleuriot m...@my.gd
 Subject: Re: Transparent load balancing
 To: Unga unga...@yahoo.com
 Cc: freebsd-questions@freebsd.org
 Date: Tuesday, July 12, 2011, 4:11 PM
 On 7/11/11 6:49 PM, Unga wrote:
  Hi all
  
  I need to implement a transparent load balancing
 daemon in C.
  
  That is, the daemon accept a TCP connection, get more
 info from the client, and forward the communication
 transparently to another server to handle it.
  
  How this could be implemented on FreeBSD? What basic
 primitives I should study more?
  
  Many thanks in advance.
  
  Best regards
  Unga
 
 
 
 Hey up,
 
 
 
 2 questions come to mind:
 
 1/ get more info from the client - what kind of info
 ?
 2/ have you considered HAProxy ? It does offer a TCP mode.

Hi Damien and Chuck

Appreciate for replying on this.

I want to ask from the client, eg. where do you want to go?, If north, I want 
to forward to the north server, if south, to the south server.

I need to get developed something probably similar to the Proto Balance 
(http://www.protonet.co.za/whitepaper.html).

It says connections are transparently forwarded to an instance chosen by Proto 
Balance. I want my daemon to make that choice.

Unga


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Transparent load balancing

2011-07-11 Thread Unga
Hi all

I need to implement a transparent load balancing daemon in C.

That is, the daemon accept a TCP connection, get more info from the client, and 
forward the communication transparently to another server to handle it.

How this could be implemented on FreeBSD? What basic primitives I should study 
more?

Many thanks in advance.

Best regards
Unga


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org