|
Page Edited :
FELIX :
6.7 Configuring Failover Deployments (available in 1.1.0)
6.7 Configuring Failover Deployments (available in 1.1.0) has been edited by Chris Custine (Apr 28, 2009). Content:This chapter will demonstrate how to configure failover deployments. Simple Lock FileThe Simple Lock File mechanism is intended for failover configurations where instances reside on one host machine. To use this feature the following must be set on each system in the master/slave setup:
servicemix.lock=true servicemix.lock.delay=10 Simple Lock File with container level locking.
To use this feature the following must be set on each system in the master/slave setup:
servicemix.lock=true servicemix.lock.level=50 servicemix.lock.delay=10 Please note that when using a 'hot' spare on the same host the jmx remote port will need to be configured to a unique port to avoid bind conflicts. The servicemix start script can be edited to include the following: DEFAULT_JAVA_OPTS="-server $DEFAULT_JAVA_OPTS -Dcom.sun.management.jmxremote.port=1100 -Dcom.sun.management.jmxremote.authenticate=false" JDBC LockingThe JDBC locking mechanism is intended for failover configurations where instances exist on separate machines. In this deployment the master instance holds a lock on a servicemix locking table hosted on a database. If the master losses this lock then an awaiting slave process may gain access to the locking table, then fully start its container. The former master upon detection of lock loss will switch run levels as configured by lock level. To use this feature the following must be set on each system in the master/slave setup:
servicemix.lock=true servicemix.lock.class=org.apache.servicemix.kernel.main.DefaultJDBCLock servicemix.lock.level=50 servicemix.lock.delay=10 servicemix.lock.jdbc.url="" servicemix.lock.jdbc.driver=org.apache.derby.jdbc.ClientDriver servicemix.lock.jdbc.user=user servicemix.lock.jdbc.password=password servicemix.lock.jdbc.table=SERVICEMIX_LOCK servicemix.lock.jdbc.clustername=smx4 servicemix.lock.jdbc.timeout=30 Note:
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.
|
Unsubscribe or edit your notifications preferences
