Dear All,
I have two machines, Aquila
and Lupus, and am trying to
keep the session alive on failover. I believe I
have
set them both up in a cluster. When one machine fails,
the requests
are correctly routed by the load balancer
to the other machine, but the
session variables are not
there. I am using the /servlet/SessionServlet to
test
this. Can anyone help? Below is the output from various
command lines
and also attached xml config files. These
are the only ones I have changed.
If any more info is
required please ask
Thanks in advance...
In
this example I started the loadbalancer on Aquila,
and the OC4J instances on
Aquila and Lupus, accessed the
SessionServlet and was routed to Lupus. I then
requested
that page a few times then killed the OC4J instance on
Lupus and
was routed to Aquila automatically but the
counter had
gone.
-----------------------------------------------------------------------
Loadbalancer
service on
Aquila:
H:\oracle\9iASR2\j2ee\home>
H:\oracle\9iASR2\j2ee\home>java
-jar loadbalancer.jar -debug
Balancer initialized...
Discovered server
aquila/164.36.160.169:8888...
Discovered server
lupus/164.36.160.173:8888...
Routing connection from
CORNFLOWER/164.36.160.154 (session cc065779c5a4
4e48b514b36238657349kOCos-4KC) to lupus/164.36.160.173:8888...
Bound session
cc065779c5a44e48b514b36238657349kOCos-4KC to server lupus
/164.36.160.173:8888 in island 1...
Removing server lupus/164.36.160.173:8888
from island 1...
Routing connection from CORNFLOWER/164.36.160.154 (session
cc065779c5a4
4e48b514b36238657349kOCos-4KC) to
lupus/164.36.160.173:8888...
Unable to connect to lupus/164.36.160.173:8888:
Connection refused: con
nect, removing node from list
Routing
connection from CORNFLOWER/164.36.160.154 (session cc065779c5a4
4e48b514b36238657349kOCos-4KC) to aquila/164.36.160.169:8888...
Bound session
cc065779c5a44e48b514b36238657349kOCos-4KC to server aquil
a/164.36.160.169:8888 in island
1...
-----------------------------------------------------------------------
OC4J
instance on
Aquila:
H:\oracle\9iASR2\j2ee\home>
H:\oracle\9iASR2\j2ee\home>java
-Dhttp.cluster.debug=true -Dcluster.deb
ug=true -jar
oc4j.jar
HTTP-clustering service started...
Created cluster-listener for
230.0.0.1/230.0.0.1:9128 as 0...
Adding clustering service
'defaultWebApp'...
HTTP-Clustering service initializing...
HTTP-Clustering
sent "I want sessions" request...
Created cluster-listener for
230.0.0.2/230.0.0.2:27512 as 1...
Adding clustering service
'islands'...
Oracle9iAS (9.0.2.0.0) Containers for J2EE
initialized
Sending HTTP-cluster session creation for session
cc065779c5a44e48b514b
36238657349kOCos-4KC...
Sending HTTP-cluster
session value update for session cc065779c5a44e48b
514b36238657349kOCos-4KC:
sesiontest.counter=1...
-----------------------------------------------------------------------
OC4J
instance on
Lupus:
H:\oracle\9iASR2\j2ee\home>
H:\oracle\9iASR2\j2ee\home>java
-Dhttp.cluster.debug=true -Dcluster.deb
ug=true -jar
oc4j.jar
HTTP-clustering service started...
Created cluster-listener for
230.0.0.1/230.0.0.1:9128 as 0...
Adding clustering service
'defaultWebApp'...
HTTP-Clustering service initializing...
HTTP-Clustering
sent "I want sessions" request...
Created cluster-listener for
230.0.0.2/230.0.0.2:27512 as 1...
Adding clustering service
'islands'...
Oracle9iAS (9.0.2.0.0) Containers for J2EE
initialized
Sending HTTP-cluster session creation for session
cc065779c5a44e48b514b
36238657349kOCos-4KC...
Sending HTTP-cluster
session value update for session cc065779c5a44e48b
514b36238657349kOCos-4KC: sesiontest.counter=1...
Sending HTTP-cluster
session value update for session cc065779c5a44e48b
514b36238657349kOCos-4KC: sesiontest.counter=2...
Sending HTTP-cluster
session value update for session cc065779c5a44e48b
514b36238657349kOCos-4KC: sesiontest.counter=3...
Shutting down
clustering-service...
Shutting down
clustering-service...
=?utf-8?B?QXF1aWxhLWdsb2JhbC13ZWItYXBwbGljYXRpb24u?==?utf-8?B?eG1s?=
Description: Binary data
=?utf-8?B?QXF1aWxhLWh0dHAtd2ViLXNpdGUueG1s?=
Description: Binary data
=?utf-8?B?QXF1aWxhLWxvYWQtYmFsYW5jZXIueG1s?=
Description: Binary data
=?utf-8?B?QXF1aWxhLXdlYi54bWw=?=
Description: Binary data
=?utf-8?B?THVwdXMtZ2xvYmFsLXdlYi1hcHBsaWNhdGlvbi54?==?utf-8?B?bWw=?=
Description: Binary data
=?utf-8?B?THVwdXMtd2ViLnhtbA==?=
Description: Binary data
=?utf-8?B?THVwdXMtaHR0cC13ZWItc2l0ZS54bWw=?=
Description: Binary data