Why is my jboss cluster weight set to, but this is not the case during access?

Source: Internet
Author: User
Why is my jboss cluster weight set to, but this is not the case during access-Linux Enterprise Application-Linux server application information? For more information, see the following. OP: redhat5.3 Enterprise Edition

APACHE 2.2 192.168.1.204
Jdk 1.5
Jboss 4.2.2 jboss1 192.168.1.205
Jboss 4.2.2 jboss2 192.168.1.206

The configuration of workers. properties on apache is as follows:

Worker. list = loadbalancer, node1, node2
# Define the first node...
Worker. node1.port = 8009
Worker. node1.host = 192.168.1.205
Worker. node1.type = ajp13
Worker. node1.lbfactor = 1
Worker. node1.local _ worker = 1
Worker. node1.cachesize = 100
# Define the second node...
Worker. node2.port = 8009
Worker. node2.host = 192.168.1.206
Worker. node2.type = ajp13
Worker. node2.lbfactor = 1
Worker. node2.local _ worker = 0
Worker. node2.cachesize = 100

# Now we define the load-balancing behaviour
Worker. loadbalancer. type = lb
Worker. loadbalancer. balanced_workers = node1, node2
Worker. loadbalancer. sticky_session = 0
==============================================

When I access the http: // 192.168.1.204 page in windows, the page is displayed normally, but the problem occurs during the refresh process. Sometimes the 205 page appears only once for four times, and there is basically no page ~
Where is the problem? I tested that when I refreshed node1 = 1 node2 = 2, the node ratio was basically node1 and node2, but I want to balance two nodes, if you have encountered such a problem once, please help me to answer it. Thank you.
For more information
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.