Вопрос

I have 2 instances of Jboss servers running on eg: 127.0.0.1 and 127.0.0.2.

I have implemented Jboss load balancing, but am not sure how to achieve server failover. I do not have a webserver to monitor the heartbeat and hence using mod_cluster is out the question. Is there any way I can achieve failover using only the two available servers?

Any help would be appreciated. Thanks.

Это было полезно?

Решение

JBoss clustering automatically provides JNDI and EJB failover and also HTTP session replication.

If your JBoss AS nodes are in a cluster then the failover should just work.

The Documentation refers to an older version of JBoss (5.1) but it has clear descriptions of how JBoss clustering works.

Другие советы

You could spun up another instance to server as your domain controller, and the two instances you already have will be your hosts. Then you could go through the domain controller, and it will do the work for you. However, I haven't seen instances going down to often, it usually servers that do, and it looks like you are using just one server (i might be wrong) for both instances, so i would consider splitting it up.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top