[REBOL] rugby load-balancing
From: koopmans::itr::ing::nl at: 13-Aug-2001 14:54
This one is for Pekr ;-)
A general load-balancing scheme would be:
1) Create a rugby server that is the load balancer.
2) All servers register there
3) clients register/unregister there and ask for a server
rexec [ add-client me]
serv: rexec [ get-server]
rexec/with [ my-func ] serv
I currently use rugby client from a FastCGI app to a dedicated rugby server,
nothing fancy there in terms of load balancing. We rununder Linux / Solaris
with MySQL and Oracle links, no problems there.
Your ODBC crash may result from state you keep overthe requests? Unsetting al
request based words may help to prevent this. I have had a similar problem
when I accidentally created self-modifying code, resulting in a crash in
stead of unpredictable behaviour.
BTW: Rugby 4 (Rugby 4 U) is almost finished with automated stub generation
and oneway and deferred sexec and finally! documentation