Installation → Installing Servers and Agents → Installing for a High Availability Implementation → Installing the First Server
Install the first server for a high availability (active-active) implementation as follows:
C:\Users\username\.microfocus\da
This profile will be shared with subsequent server installations. Ensure that the installation folder can be accessed by all the machines on the active-active cluster.
See Server Installation.
C:\Users\username\.microfocus\da/conf/server/installed.properties
hibernate.cache.use_query_cache=false
hibernate.cache.use_second_level_cache=true
net.sf.ehcache.configurationResourceName=ehcache-active-active.xml
<ehcache updateCheck="false"> <diskStore path="java.io.tmpdir" /> <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" properties="peerDiscovery=manual, rmiUrls=//<ip_server1>:<port>/deployServerCache| //<ip_server1>:<port>/securityServerCache| //<ip_server1>:<port>/vcCache| //<ip_server1>:<port>/org.hibernate.cache.internal.StandardQueryCache| //<ip_server1>:<port>/org.hibernate.cache.spi.UpdateTimestampsCache| //<ip_server1>:<port>/defaultCache| //<ip_server2>:<port>/deployServerCache| //<ip_server2>:<port>/securityServerCache| //<ip_server2>:<port>/vcCache| //<ip_server2>:<port>/org.hibernate.cache.internal.StandardQueryCache| //<ip_server2>:<port>/org.hibernate.cache.spi.UpdateTimestampsCache| //<ip_server2>:<port>/defaultCache" /> <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" properties="port=<port>, socketTimeoutMillis=200000"/> <cache name="deployServerCache" maxElementsInMemory="10000" eternal="false" timeToLiveSeconds="86400" overflowToDisk="true" maxElementsOnDisk="100000" diskPersistent="true" diskExpiryThreadIntervalSeconds="86400" > <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/> </cache> <cache name="securityServerCache" maxElementsInMemory="10000" eternal="false" timeToLiveSeconds="86400" overflowToDisk="true" maxElementsOnDisk="100000" diskPersistent="true" diskExpiryThreadIntervalSeconds="86400" > <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/> </cache> <cache name="vcCache" maxElementsInMemory="10000" eternal="false" timeToLiveSeconds="86400" overflowToDisk="true" maxElementsOnDisk="100000" diskPersistent="true" diskExpiryThreadIntervalSeconds="86400" > <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/> </cache> <cache name="org.hibernate.cache.internal.StandardQueryCache" maxElementsInMemory="10000" eternal="false" timeToLiveSeconds="86400" overflowToDisk="true" maxElementsOnDisk="100000" diskPersistent="true" diskExpiryThreadIntervalSeconds="86400" > <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/> </cache> <cache name="org.hibernate.cache.spi.UpdateTimestampsCache" maxEntriesLocalHeap="10000" eternal="true"> <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/> </cache> <defaultCache maxElementsInMemory="10000" eternal="false" timeToLiveSeconds="86400" overflowToDisk="true" maxElementsOnDisk="100000" diskPersistent="true" diskExpiryThreadIntervalSeconds="120" > <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/> </defaultCache> </ehcache>
C:\Users\username\.microfocus\da/conf/server/ehcache-active-active.xml
In the following example, the first server is 10.136.40.114 and the second server is 10.136.40.250. The port is 40001.
<cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" properties="peerDiscovery=manual, rmiUrls=//10.136.40.114:40001/deployServerCache| //10.136.40.114:40001/securityServerCache| //10.136.40.114:40001/vcCache| //10.136.40.114:40001/org.hibernate.cache.internal.StandardQueryCache| //10.136.40.114:40001/org.hibernate.cache.spi.UpdateTimestampsCache| //10.136.40.114:40001/defaultCache| //10.136.40.250:40001/deployServerCache| //10.136.40.250:40001/securityServerCache| //10.136.40.250:40001/vcCache| //10.136.40.250:40001/org.hibernate.cache.internal.StandardQueryCache| //10.136.40.250:40001/org.hibernate.cache.spi.UpdateTimestampsCache| //10.136.40.250:40001/defaultCache" />
C:\Program Files\Micro Focus\common\tomcat\8.5\bin
-Djava.rmi.server.hostname=<ip_server1>
where <ip_server1> is the IP address of this first server
The shared network storage should not reside on any of the Deployment Automation servers; otherwise it introduces a dependency on one node always being available and invalidates High Availability principles.
Shared storage should be accessed using a symbolic directory link or mapped drive created on each of the Deployment Automation servers.
The Common Tomcat service on each of the Deployment Automation servers needs to be configured to run using a domain service account. That account must be given full access to the following:
Copyright © 2011–2019 Micro Focus or one of its affiliates. All rights reserved.