Jump to content

load-balancer application


ppb

Recommended Posts

Hi everybody,

 

Has anybody used any  load-balancer application with unigui ?

 

 

As Farshad Mohajeri says 

 

Load balancing is another issue. uniGUI apps can be load balanced. To achieve this a specialized load-balancer application is needed. Load balance app will recognize uniGUI web requests and after extracting the session info, request will be redirected to server which is keeping the state for that session. Each request should be redirected to the server which has initiated that particular session. Requests can not wander around different servers as it is possible in a stateless server farm. All these may make load-balancing a bit more complex, but it is achievable.
 
 
Thanks for your help.
 
 
 
 

 

 

 
Link to comment
Share on other sites

  • 3 weeks later...

yes 

we used it with apache.

 

an extract of our vhost conf :

<VirtualHost *:443>
	<Proxy balancer://webbalancer>
		BalancerMember http://192.25.10.165 route=SRVWEB3
		BalancerMember http://192.25.10.167 route=SRVWEB2
	</Proxy>
	ServerName www0.domain.com:443
	ServerAdmin webmaster@domain.com
	Header add Set-Cookie "MYCOOKIE=SOMEVALUE.%{BALANCER_WORKER_ROUTE}e; path=/;" env=BALANCER_ROUTE_CHANGED
	SSLEngine on
	SSLCertificateFile	"c:/Apache24/conf/sub-domain.crt"
	SSLCertificateKeyFile	"c:/Apache24/conf/sub-domain-N.key"
	SSLCertificateChainFile  "c:/Apache24/conf/sub-domain-I-CA.crt"
	ProxyPreserveHost on
    ProxyRequests off
    ProxyPass / balancer://webbalancer/ stickysession=MYCOOKIE
    ProxypassReverse / balancer://webbalancer/
    ErrorLog "|bin/rotatelogs.exe logs/%Y-%m-%d_www0.domain.com-error.log 86400"
    CustomLog "|bin/rotatelogs.exe logs/%Y-%m-%d_www0.domain.com-access.log 86400" common
</VirtualHost> 
Link to comment
Share on other sites

Hi delagoutte,

 

    thanks for your reply and script ,

 

   Did you have any type of programmatic considerations when you developed unigui app ?

   Does it work fine ?

 

 

Best regards.

Link to comment
Share on other sites

 

 

Did you have any type of programmatic considerations when you developed unigui app ?

 

No

 

 

Does it work fine ?

yes

 

 

 

if client 1 is affected to balancer member 1 ->balancer member 1 down->client 1 is redirect to balancer member 2 but his session is lost

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...