최근들어 AWS 에 was 를 설치하게되면서 적용 한 사례가 생기면서 정리.
TCP 기반 그룹 통신을 위한 라우터로
AWS 에서 TCP 사용이 어려울 때, GossipRouter 서버를 따로 두고 서로 그룹 통신 할 때 사용
GossipRouter 를 여러개 띄워서 사용해도 무방하다.
1. 구성환경 리눅스 기반, jboss-eap-7.2, GossipRouter 세션클러스터링
2. AWS기반 2EA 세션클러스터링
3. GossipRouter 프로세스 기동
# java -cp /WAS/EAP7/jboss-eap-7.2/modules/system/layers/base/org/jgroups/main/jgroups-4.0.15.Final-redhat-00001.jar org.jgroups.stack.GossipRouter -bindaddress 10.65.40.64 -port 13001
[jboss@scouter_tom1 bin]$ !ps
ps -ef | grep -i gossiprouter
root 32329 20663 0 21:50 pts/0 00:00:00 java -cp /WAS/EAP7/jboss-eap-7.2/modules/system/layers/base/org/jgroups/main/jgroups-4.0.15.Final-redhat-00001.jar org.jgroups.stack.GossipRouter -bindaddress 10.65.40.64 -port 13001
jboss 32385 24353 0 21:52 pts/1 00:00:00 grep --color=auto -i gossiprouter
4. 환경변수 설정
# jgroups setting
export JAVA_OPTS=" $JAVA_OPTS -Djboss.bind.address.private=$BIND_ADDR"
export JAVA_OPTS=" $JAVA_OPTS -Djboss.default.jgroups.stack=tcp"
export JAVA_OPTS=" $JAVA_OPTS -Djgroups.tcpgossip.hosts=10.65.40.64[13001] "
5. standalone.xml 설정
# standalone-ha.xml
<subsystem xmlns="urn:jboss:domain:jgroups:6.0">
<channels default="ee">
<channel name="ee" stack="tcp" cluster="ejb"/>
</channels>
<stacks>
<!--stack name="tcp">
<transport type="TCP" socket-binding="jgroups-tcp"/>
<socket-protocol type="MPING" socket-binding="jgroups-mping"/>
<protocol type="MERGE3"/>
<protocol type="FD_SOCK"/>
<protocol type="FD_ALL"/>
<protocol type="VERIFY_SUSPECT"/>
<protocol type="pbcast.NAKACK2"/>
<protocol type="UNICAST3"/>
<protocol type="pbcast.STABLE"/>
<protocol type="pbcast.GMS"/>
<protocol type="MFC"/>
<protocol type="FRAG3"/>
</stack-->
<stack name="tcp">
<transport type="TCP" socket-binding="jgroups-tcp"/>
<protocol type="TCPGOSSIP">
<property name="initial_hosts">
10.65.40.64[13001]
</property>
</protocol>
<protocol type="MERGE3"/>
<protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/>
<protocol type="FD"/>
<protocol type="VERIFY_SUSPECT"/>
<protocol type="pbcast.NAKACK2"/>
<protocol type="UNICAST3"/>
<protocol type="pbcast.STABLE"/>
<protocol type="pbcast.GMS"/>
<protocol type="MFC"/>
<protocol type="FRAG2"/>
</stack>
</stacks>
</subsystem>
'WAS' 카테고리의 다른 글
[Tomcat] DB 패스워드 암호화 (0) | 2019.06.27 |
---|---|
Session clustering (udp/tcp), sticky session (0) | 2018.11.01 |
IIS && EAP 연동 (0) | 2018.05.30 |
[Apache] Permission denied: make_sock: could not bind to address [::]:80 (0) | 2018.04.30 |
[limits.conf] 유저 리소스 파라미터 설정 (0) | 2018.04.24 |