When you first start Fuse ESB a lock file is created at the root of the installation directory. You can set up a master/slave system whereby if the master instance fails, the lock is passed to a slave instance.
![]() | Note |
---|---|
The simple lock file mechanism is intended for failover configurations where instances reside on the same host machine. |
To configure a lock file failover deployment, edit the
etc/system.properties
file as follows on each system in the
master/slave setup:
Example 6.1. Lock File Failover Configuration
karaf.lock=true
karaf.lock.class=org.apache.karaf.main.SimpleFileLock
karaf.lock.dir=PathToLockFileDirectory
karaf.lock.delay=10
![]() | Note |
---|---|
Ensure that the karaf.lock.dir property points to the same directory for both the master and slave instance, so that the slave can only acquire the lock when the master releases it. |