Last active
December 17, 2015 15:29
-
-
Save oeegee/5631668 to your computer and use it in GitHub Desktop.
JBoss AS7 - mod_cluster 연동 참고중인 자료
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[설정성공] | |
# JBoss AS 7.1 Clustering behind Amazon ELB | |
https://community.jboss.org/thread/195729\ | |
[참고자료] | |
# ModCluster Design | |
https://community.jboss.org/wiki/ModClusterDesign | |
# Chapter 7. List of Protocols | |
http://www.jgroups.org/manual-3.x/html/protlist.html#DiscoveryProtocols | |
# Chapter 5. Advanced Concepts | |
http://www.jgroups.org/manual-3.x/html/user-advanced.html#TCPGOSSIP | |
# Session replication using AS7 clustering, S3 PING, Amazon EC2 | |
https://community.jboss.org/thread/217447 | |
In that case, you'll need to make the following modifications: | |
1. You cannot use mod_advertise, since multicast will not work. Remove the mod_advertise module entirely, and set advertise="false" within the mod_cluster subsystem in AS7. | |
2. Define the location of your httpd instance using the "proxy-list" attribute in the mod_cluster subsystem. | |
3. Change the default-stack of the jgroups subsystem to "tcp" instead of "udp". | |
4. Replace MPING with S3_PING within the "tcp" stack. | |
# mod_cluster cloud support for proxyList | |
https://community.jboss.org/message/779733 | |
# lError in apache mod_cluster | |
http://stackoverflow.com/questions/14356640/clerror-in-apache-mod-cluster | |
<subsystem xmlns="urn:jboss:domain:modcluster:1.1"> | |
<mod-cluster-config advertise-socket="modcluster" connector="ajp" /> | |
</subsystem> | |
# mod_cluster -로드 밸런서의 새로운 모습 | |
http://javavsme.wordpress.com/2008/12/27/mod_cluster-nowe-spojrzenie-na-load-balancery/ | |
# JGroupsGossipRouter | |
https://community.jboss.org/wiki/JGroupsGossipRouter | |
# How to setup mod_cluster with jboss-as-7.1.1.Final and httpd-2.2 | |
http://stackoverflow.com/questions/15151341/how-to-setup-mod-cluster-with-jboss-as-7-1-1-final-and-httpd-2-2 | |
... | |
LoadModule proxy_module modules/mod_proxy.so | |
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so | |
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so | |
LoadModule manager_module modules/mod_manager.so | |
LoadModule slotmem_module modules/mod_slotmem.so | |
LoadModule advertise_module modules/mod_advertise.so | |
# MOD_CLUSTER_ADDS | |
# Adjust to you hostname and subnet. | |
<IfModule manager_module> | |
Listen 127.0.0.1:6666 | |
ManagerBalancerName mycluster | |
<VirtualHost 127.0.0.1:6666> | |
<Location /> | |
Order deny,allow | |
Deny from all | |
Allow from 127.0.0.1 | |
</Location> | |
<Directory "/ClusterWebApp"> | |
Options -Indexes FollowSymLinks | |
AllowOverride AuthConfig FileInfo | |
Order allow,deny | |
Allow from all | |
</Directory> | |
KeepAliveTimeout 300 | |
MaxKeepAliveRequests 0 | |
#ServerAdvertise on http://127.0.0.1:6666 | |
AdvertiseFrequency 5 | |
#AdvertiseSecurityKey secret | |
#AdvertiseGroup 224.0.1.105:23364 | |
EnableMCPMReceive | |
CreateBalancers 1 | |
<Location /mod_cluster_manager> | |
SetHandler mod_cluster-manager | |
Order deny,allow | |
Deny from all | |
Allow from 127.0.0 | |
</Location> | |
<Proxy balancer://mycluster> | |
Order deny,allow | |
Allow f | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment