This chapter will demonstrate how to configure failover deployments.
Simple Lock File
To use this feature the following must be set on each system in the master/slave setup:
...
No Format |
---|
servicemix.lock=true servicemix.lock.delay=10 |
Simple Lock File with container level locking.
The Container Level locking mechanism allows bundles to be loaded into the slave kernel instance in order to provide faster failover performance. The Container Level refers to the starting priority assigned to each bundle in the OSGI container. These start levels are specified in $SERVICEMIX_HOME/etc/startup.properties, in the format jar.name=level. The core system bundles have levels below 50, where as user bundles have levels greater than 50.
...
No Format |
---|
DEFAULT_JAVA_OPTS="-server $DEFAULT_JAVA_OPTS -Dcom.sun.management.jmxremote.port=1100 -Dcom.sun.management.jmxremote.authenticate=false" |
JDBC Locking
To use this feature the following must be set on each system in the master/slave setup:
...