Jump to content
uniGUI Discussion Forums
ppb

load-balancer application

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.
 
 
 
 

 

 

 

Share this post


Link to post
Share on other sites

Hi ,

 

Has anybody used sticky session mode with Unigui App ?

 

Best regards.

Share this post


Link to post
Share on other sites

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> 

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×