I can't seem to wrap my head around how load balancing works in weblogic or how the "Clustering Address" field works in particular. First let me describe my environment.
2 virtual servers (VS1 & VS2) with WL 10.3 installed
2 Machines (M1 & M2)
1 Admin Server (AS) on M1
2 Managed Servers (MS1 & MS2) on M1 and M2 respectively
1 Cluster (C1) - created from the Admin Console having MS1 and MS2 registered with it
2 Node Managers (NM1 & NM2) running on VS1 & VS2 respectively (able to start and stop MS1 & MS2)
1 Ear with a webservice targeted to the cluster (other things installed too...but for simplicity lets just go with that)
AS - listening on 192.168.0.10:7001
MS1 - listening on 192.168.0.11:7002
MS2 - listening on 192.168.0.12:7002
I think that's about all the relevant information, let me know if there's more I left out.
1) The test I've been trying to run is simple, try to access the WSDL by hitting http://192.168.0.11:7002/TestWebservice/TestWebservice?WSDL then bringing down MS1 to hopefully have the cluster balance the request over to MS2. Is that a valid test? I'm still having a hard time wrapping my head around how/why that would work, but from the documentation I've read I feel like it should.
2) What do I put in the "Cluster Address" for C1?
- I've tried putting 192.168.0.11:7002,192.168.0.12:7002 and I've tried leaving it blank - running the above test fails
3) Do I have to have an external load balancer for my test to work?
I feel like I'm just missing something obvious, so any thoughts, no matter how basic are apprciated.
Joined: Jan 06, 2001
you need a proxy. You can test you cluster using a weblogic server instance with ClusterServlet configured to do this load balancing for you. You can also use an Apache plugin or a hardware in production environments if you want.
Take a look at the following docs where you'll find good explanation on cluster architectures: