When the team has a vertical cluster setup, by default the logging will write to a single file. This is resolved by performing the following :
To implement a setup which will write logs for each individual node, we need to establish a Java option system property for infogix.uniqueServerName that will be distinct for each running JVM :
-Dinfogix.uniqueServerName=UNIQUE_VALUE_PER_JVM
Wildfly
- Modify application's appserver.properties, and add the following to the WILDFLY_JAVA_OPTIONS parameter.
Windows:
-Dinfogix.uniqueServerName=%WILDFLY_NODEID%
Linux:
-Dinfogix.uniqueServerName=${WILDFLY_NODEID}
- Run a validate, clean and deploy.
WebSphere
- Modify application's appserver.properties
The property file will contain values WEBSPHERE_APP_TARGET.JAVA_OPTIONS.#, where the # is your node number, if multiple nodes exist.
Append the parameter below to each WEBSPHERE_APP_TARGET.JAVA_OPTIONS, which a unique value per node:
-Dinfogix.uniqueServerName=UNIQUE_VALUE_PER_JVM
- Run a validate, clean and deploy.
Comments
0 comments
Please sign in to leave a comment.