weblogic集羣
一、
AdminServer:
監聽地址:網卡IP
重啓控制檯
二、
計算機
node1.uplooking.com
node2.uplooking.com
服務器
web (node1.uplooking.com)
web2(node2.uplooking.com)
測試
能夠在控制檯啓動或關閉服務器
三、
建立“集羣“
集羣名字“cluster-0”
集羣通信方式“組播”
239.190.0.0
7001
添加服務器
web
web2
每個節點上:
ip ro add 239.192.0.0 dev eth0
測試集羣節點開啓關閉
四、
部署(把之前部署的應用刪除)
將session應用部署到集羣
激活
測試:
http://node1.uplooking.com:7008/session/index.jsp
http://node2.uplooking.com:7008/session/index.jsp
五、
配置負載均衡:
/etc/httpd/conf.d/weblogic.conf
LoadModule weblogic_module modules/mod_wl_22.so
#<IfModule mod_weblogic.c>
# WeblogicCluster 192.168.1.254:7008,192.168.1.18:7008
# MatchExpression *.jsp
# Debug ON
# DebugConfigInfo On
# WLLogFile /tmp/global_proxy.log
# WLTempDir /tmp
# KeepAliveEnabled ON
# KeepAliveSecs 15
#</IfModule>
測試:
elinks http://apache-IP/session/index.jsp
tail -f /usr/local/bea/user_projects/domains/uplooking/servers/web/logs/web.out
tail -f /usr/local/bea/user_projects/domains/uplooking/servers/web/logs/web2.out
六、
Session複製
環境-服務器(服務器)-配置-羣集
主要地方
複製組: ReplicationChannel
首選次級組: ReplicationChannel2
接口地址: 192.168.1.220(一定是那臺主機的IP地址,他通
過這個地址找到網卡,然後發送組波消息)
重啓服務器。
測試:
使用firefox訪問
關閉正在處理這個訪問的服務器
然後觀察序列號是否還連續