Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Nginx Load balancer mode for JBoss / Icefaces application
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Srinivasan Subramanian  
View profile  
 More options Nov 14 2011, 8:04 am
From: Srinivasan Subramanian <ssrini_va...@hotmail.com>
Date: Mon, 14 Nov 2011 18:34:39 +0530
Local: Mon, Nov 14 2011 8:04 am
Subject: Nginx Load balancer mode for JBoss / Icefaces application

Hello
We have setup nginx as a Loadbalancer on Centos 5.2 x64.  nginx is acting as a LB for a web application developed using Java servlets and Icefaces (1.8.2).  The web application is deployed on JBoss 5.1.   After configuration nginx is able to redirect the queries to the upstream servers properly.  However the session information is not being passed through or is being modified.  So the Icefaces servlet is repeatedly refreshing the login page every few seconds and keeps creating new sessions.
Please advise on any additional settings that need to be made.  The current settings are:
(nginx is running on 192.168.1.137)
upstream int-lb {        server 192.168.1.139:8080;        server 192.168.1.138:8080;}
server {    listen       80;    server_name  int-lb;
    #charset koi8-r;    access_log  /var/log/nginx/host.access.log  main;    error_log  /var/log/nginx/host.error.log  debug;    root /usr/app/jboss5/server/default/deploy/admin-console.war;
    location / {        proxy_set_header X-Forwarded-Host $host;        proxy_set_header X-Forwarded-Server $host;        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;        proxy_pass http://int-lb;    }}
Thanks in advance for all assistance.

Regards
Srini                                    

_______________________________________________
nginx mailing list
ng...@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
姚伟斌  
View profile  
 More options Nov 14 2011, 9:47 pm
From: 姚伟斌 <nbubi...@gmail.com>
Date: Tue, 15 Nov 2011 10:47:53 +0800
Local: Mon, Nov 14 2011 9:47 pm
Subject: Re: Nginx Load balancer mode for JBoss / Icefaces application

“However the session information is not being passed through or is being
modified.”

How do you know that? I think the problem is the session is sent to be the
wrong jboss server.

If the Jboss uses the similar session sticky way as Tomcat/Resin, you can
use my nginx_jvm_route_module:
http://code.google.com/p/nginx-upstream-jvm-route/

2011/11/14 Srinivasan Subramanian <ssrini_va...@hotmail.com>

_______________________________________________
nginx mailing list
ng...@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Srinivasan Subramanian  
View profile  
 More options Nov 14 2011, 10:18 pm
From: Srinivasan Subramanian <ssrini_va...@hotmail.com>
Date: Tue, 15 Nov 2011 08:48:36 +0530
Local: Mon, Nov 14 2011 10:18 pm
Subject: RE: Nginx Load balancer mode for JBoss / Icefaces application

Hi
You were bang on!  Thanks.  That was the issue.  For now i introduced the ip_hask; key for now in the upstream section and that fixed it.  
I will try your module.  We want to actually also implement the HttpUpstreamFairModule to improve the distribution.  Will the sticky session module that you linked to work in conjunction with that?
Thanks for your timely help, greatly appreciated.
Regards

Date: Tue, 15 Nov 2011 10:47:53 +0800
Subject: Re: Nginx Load balancer mode for JBoss / Icefaces application
From: nbubi...@gmail.com
To: ng...@nginx.org

“However the session information is not being passed through or is being modified.”

How do you know that? I think the problem is the session is sent to be the wrong jboss server.
If the Jboss uses the similar session sticky way as Tomcat/Resin, you can use my nginx_jvm_route_module: http://code.google.com/p/nginx-upstream-jvm-route/  

2011/11/14 Srinivasan Subramanian <ssrini_va...@hotmail.com>

Hello
We have setup nginx as a Loadbalancer on Centos 5.2 x64.  nginx is acting as a LB for a web application developed using Java servlets and Icefaces (1.8.2).  The web application is deployed on JBoss 5.1.   After configuration nginx is able to redirect the queries to the upstream servers properly.  However the session information is not being passed through or is being modified.  So the Icefaces servlet is repeatedly refreshing the login page every few seconds and keeps creating new sessions.

Please advise on any additional settings that need to be made.  The current settings are:

(nginx is running on 192.168.1.137)
upstream int-lb {
        server 192.168.1.139:8080;        server 192.168.1.138:8080;

}

server {    listen       80;
    server_name  int-lb;
    #charset koi8-r;    access_log  /var/log/nginx/host.access.log  main;
    error_log  /var/log/nginx/host.error.log  debug;    root /usr/app/jboss5/server/default/deploy/admin-console.war;

    location / {        proxy_set_header X-Forwarded-Host $host;        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;        proxy_pass http://int-lb;
    }}
Thanks in advance for all assistance.

Regards
Srini                                    

_______________________________________________

nginx mailing list

ng...@nginx.org

http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
ng...@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx                                        

_______________________________________________
nginx mailing list
ng...@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »