Window platform to build jboss-5.1.0.ga and TOMCAT7 clusters

Source: Internet
Author: User
Tags jboss jboss server

Build JBoss Cluster
Cluster benefits1. Use the HTTP service server to load balance and reduce the pressure on each server. 2. Program deployment, upgrade for the client will not have an impact, the implementation of one-click Switch. 3. Improve the ability to handle static files.
Connection mode JKJK is communicating with the JBoss server via the AJP protocol, and the port of JBoss default AJP Connector is 8009. JK itself provides a monitoring and management page Jkstatus, through which jkstatus can monitor the current working status of JK and set up a connection to Jboss.

Install Apache HTTP Service Dispatch server:

Http://mirrors.cnnic.cn/apache//httpd/binaries/win32/httpd-2.2.25-win32-x86-no_ssl.msi

http://mirror.bjtu.edu.cn/apache/tomcat/tomcat-connectors/jk/binaries/windows/ Tomcat-connectors-1.2.39-windows-i386-httpd-2.2.x.zip

       installation test: The next step is to install successfully, enter in the browser: http://localhost:8080/If it works, it shows that the installation was successful.


1. The mod_jk.so in the downloaded tomcat-connectors-1.2.39-windows-i386-httpd-2.2.x.zip is copied to the modules subdirectory in the Apache installation directory
2. Then enter the Conf subdirectory under the Apache installation directory, open the httpd.conf configuration file, and insert the following line in the last include conf/mod_jk.conf.
3, in the Conf subdirectory, create a new configuration file: mod_jk.conf, this file is the Apache Load connector configuration file, the file name can be modified, but with the file name of the include in httpd.conf.

4. Restart Apache to take effect.


Files: Http://pan.baidu.com/s/1kTrAVRp (httpd.conf, mod_jk.conf, Uriworkermap.properties, workers.properties)


Configuration file Description1.httpd.conf: Responsible for Apache global configuration, each module loading. 2.mod_jk.conf: Represents the JK module, JK is a way to connect each server, the module is responsible for scheduling, balancing the access of each server, processing requests generally Apache server may access the pressure is too high, it is necessary to set up a ha for the dispatch server, High-performance cluster to ensure that the scheduling server does not go down, if the scheduling server crashes then the entire cluster will be paralyzed. 3.workers.properties: Configure configuration parameters for each work node in the cluster. 4.uriworkermap.properties: The mapping file when the link accesses the dispatch server, you can specify which requests to the a node, which requests to the B node, the role of an allocation request, mapping the requested address. 5. The reference and load order of these files ishttpd.conf--->mod_jk.conf--->workers.propertites--->uriworkermap.properties.Configure each JBoss node1. Open the JBOSS directory under%jboss_home%/server/all/deploy/jboss-web.sar/server.xml and
%jboss_home%/server/default/deploy/jboss-web.sar/server.xml

2. Find <connector port= "8080" address= "${0.0.0.0}" (if there is no external access to JBoss via a Web browser, change to 0.0.0.0)
3. Find <engine name= "jboss.web" defaulthost= "localhost" > added: jvmroute= "Nodex"Build

SummarizeThe tomcat cluster is built like JBoss, which is no longer duplicated, and the cluster adds reliability to our system, even if one server is under too much pressure or an accident does not affect the operation of our program, and provides a powerful support for the user's use. The essence of clustering is to allow multiple computers to work together on a pile of requests, rather than being handled by a single computer, that is, using the means of increasing hardware resources to improve the performance of software, is a divide and conquer strategy. If you do not build a cluster using the hardware to increase a computer need to buy high-performance hardware server, the current type of server is still relatively expensive, this high cost is not a wise choice, the cluster uses a lot of general computer to improve overall performance, is a good choice.

Window platform to build jboss-5.1.0.ga and TOMCAT7 clusters

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.