问题 1
How to build clusters in JBoss?
Here is a nutshell summary from the example given for quick start:
Execute from your jboss bin directory:
$ ./run.sh -c all -g DocsPartition -u 239.255.100.100 -b 192.168.0.101 -Djboss.messaging.ServerPeerID=1
Execute from your jboss bin directory:
$ ./run.sh -c all -g DocsPartition -u 239.255.100.100 -b 192.168.0.101 -Djboss.messaging.ServerPeerID=1
- ./run.sh = the executable
- -c all = use server in jboss_home/server/all directory
- -g DocsPartition = this is the partition name, use whatever but should be the same across nodes
- -u 239.255.100.100 = this is the multicast address, ususally just pick anything in the 239.255.x.y range and you should be ok
- -b 192.168.0.101 = this is the ip of the machine the node is on
- -Djboss.messaging.ServerPeerID=1 = this is the peerid, it must be unique for each node.
So the start script that you would run on your second machine for the second node would look like:
$ ./run.sh -c all-node2 -g DocsPartition -u 239.255.100.100 -b 192.168.0.102 -Djboss.messaging.ServerPeerID=2
You can also use nohup to send the process to the background.
Now that both nodes should be running, you have to enable and configure the sticky sessions on the webserver and each server.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗?
添加评论
查看评论