06-22-2010
You need use mod_jk module (together with Apache2) and in the worker.properties specify something like that:
SERVER 1
worker.mte01a.port=8009 <- port
worker.mte01a.host=server1 <hostname of server 1
worker.mte01a.type=ajp13 < connector
worker.mte01a.lbfactor=1 < level of LB
worker.mte01a.connection_pool_timeout=600 < no explain
worker.mte01a.sticky_session=true < must be true
worker.mte01a.socket_keepalive=true < must be true
worker.mte01a.socket_timeout=360 < default socket timeout
worker.mte01a.socket_connect_timeout=360000 < a good timeout
worker.mte01a.session_cookie=JSESSIONID1 < this parameter need to be the same here and in the line:
<Engine name="jboss.web" jvmRoute="JSESSIONID1" defaultHost="server1">
in the file: (JBOSS AS)
jbossdir/server/mte01/deploy/jboss-web.deployer/server.xml
SERVER 2:
worker.mte01b.port=8009 <- port
worker.mte01b.host=server1 <hostname of server 2
worker.mte01b.type=ajp13 < connector
worker.mte01b.lbfactor=1 < level of LB
worker.mte01b.connection_pool_timeout=600 < no explain
worker.mte01b.sticky_session=true < must be true
worker.mte01b.socket_keepalive=true < must be true
worker.mte01b.socket_timeout=360 < default socket timeout
worker.mte01b.socket_connect_timeout=360000 < a good timeout
worker.mte01b.session_cookie=JSESSIONID1 < this parameter need to be the same here and in the line:
<Engine name="jboss.web" jvmRoute="JSESSIONID1" defaultHost="server2">
in the file: (JBOSS AS)
jbossdir/server/mte01/deploy/jboss-web.deployer/server.xml
I'm using RHEL 5.3, Apache2 and JBoss AS 4.2.2.GA in the example.
9 More Discussions You Might Find Interesting
1. HP-UX
Hi There,
Does anyone knows what could be the problem if my apache server is running but unable to load JK2 module into the server. My HTTPS is running on Apache Server 2.0.49 with ssl enabled and compiled with Mod_ssl on HPUX-11.11i.
In fact we have try out the following parameter,
... (4 Replies)
Discussion started by: e_jeffhang
4 Replies
2. Shell Programming and Scripting
hi all
need your help.
I am wrting a script that will load data into the table.
then on another load will append the data into the existing table.
Regards
Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies
3. UNIX for Advanced & Expert Users
Hello !
I have a problem with an apache process that is causing huge load. It starts from time to time - I'm not sure what is making it start beacause there's nothing in cron, but it appears every few minutes - and when it starts is uses a lot of RAM (up to 1.3GB) and create a huge load on... (1 Reply)
Discussion started by: Sergiu-IT
1 Replies
4. Solaris
Hi
I am trying to set up apache on the only 2 nodes of sun cluster 3.2. nodes are running solaris 10-x86
For some reasons, apache resource on both nodes goes offline in some seconds.
There is a shared address resource which is online
rs, rg list and show below,
clrg online... (11 Replies)
Discussion started by: upengan78
11 Replies
5. UNIX for Advanced & Expert Users
Hi All,
I have a webpage loaded on server1 with authorization enabled by .htaccess, which can be accessed by http://ipofserver1/index.html. Now im planning a high availabilty load balancing in such a way that if the server1 is down due to some reason it should connect to another server. i have... (1 Reply)
Discussion started by: Tuxidow
1 Replies
6. Web Development
Hi All,
I have one webserver which has an application for a set of internal users can be accessed by _http://server1.com
I am planning to load balance this application. For that I have cloned this server and build a new one which can be accessed using _http://server2.com]Server2.com. Also i... (2 Replies)
Discussion started by: Tuxidow
2 Replies
7. Red Hat
Hi Techies,
Setup details -
1. H/W Load Balancer
2. Two Apache Servers with load balancing and rewrite rule
3. Two Application servers
Request will be travel 1 then 2 then 3
Queries -
1. When any session is established I can see that requests of that session is going to both... (0 Replies)
Discussion started by: ganesh_gore
0 Replies
8. Programming
hi,
I am trying to load a sybase table using a file ( unit separator is the delimiter) which is in IQ server.
I Used load statment as below
execute ('LOAD TABLE schemaname.tablename (' || ' name, age, date, Symbols) from ' || ' '' /filepath/file.txt '' ' || ' QUOTES off ' || ' DELIMITED... (0 Replies)
Discussion started by: irudayaraj
0 Replies
9. UNIX for Dummies Questions & Answers
I am trying to upgrade Autosys to r11.3.5 how ever while running the setup i am getting below error , I went through some of the Known errors , found to command the export LD_ASSUME_KERNEL parameter , which i did however didnot work . Could some pleae look into this asap.
Starting all... (1 Reply)
Discussion started by: rakesh_411
1 Replies
LEARN ABOUT DEBIAN
gearman_worker_add_server
GEARMAN_WORKER_ADD_SERVER(3) Gearmand GEARMAN_WORKER_ADD_SERVER(3)
NAME
gearman_worker_add_server - Gearmand Documentation, http://gearman.info/
SYNOPSIS
#include <libgearman/gearman.h>
gearman_return_t gearman_worker_add_server(gearman_worker_st *worker, const char *host, in_port_t port)
gearman_return_t gearman_worker_add_servers(gearman_worker_st *worker, const char *servers)
void gearman_worker_remove_servers(gearman_worker_st *worker)
Link with -lgearman
DESCRIPTION
gearman_worker_add_server() will add an additional gearmand server to the list of servers that the worker will take work from.
gearman_worker_remove_servers() will remove all servers from the gearman_worker_st.
gearman_worker_add_servers() takes a list of gearmand servers that will be parsed to provide servers for the worker. The format for this is
SERVER[:PORT][,SERVER[:PORT]]...
Examples of this are:
10.0.0.1,10.0.0.2,10.0.0.3
localhost234,jobserver2.domain.com:7003,10.0.0.3
RETURN VALUE
gearman_worker_add_server() and gearman_worker_remove_servers() return gearman_return_t.
HOME
To find out more information please check: http://gearman.info/
See also
gearmand ../libgearman gearman_worker_st
AUTHOR
Data Differential http://www.datadifferential.com/
COPYRIGHT
2012, Data Differential, http://www.datadifferential.com/
0.33 May 04, 2012 GEARMAN_WORKER_ADD_SERVER(3)