Clustering Cache configuration with jgroups
# clustering cache configuration with jgroups
posted by jieum
0.reference under url…
http://opensymphony.com/oscache/wiki/Clustering.html ’s javagroups configuration
1.append iptables rule…
1.1 append your console
[root@localhost]# iptables -t filter -A INPUT -i eth0 -d 224.0.0.0/4 -j ACCEPT
or
1.2 edit file “/etc/sysconfig/iptables”
[root@localhost]# vi /etc/sysconfig/iptables
-A INPUT -i eth0 -d 224.0.0.0/4 -j ACCEPT
2.restart iptables
[root@localhost]# /etc/init.d/iptables restart
3.add a -Djgroups.bind_addr=<your_ip> argument to the jvm command line
in my case
It is declared “/etc/profile” file
……
JAVA_OPTS=”-server -Xms1024m -Xmx1024m ………… -Djgroups.bind_addr=<your_ip> -Djava.net.preferIPv4Stack=true”
………
:wq!
[root@localhost]# . /etc/profile
or
append oscache.properties file
……………………………
cache.cluster.properties=UDP(mcast_addr=224.0.0.1;bind_addr=<your_ip>;mcast_port=45566;
No comments yet.
Leave a comment
-
Recent
-
Links
-
Archives
- December 2008 (1)
- September 2008 (2)
-
Categories
-
RSS
Entries RSS
Comments RSS