Define a server farm
We define farm nodes in an XML file. All the member nodes must use the same type of application server. The following application servers are supported:
- WAS full profile
- WAS Liberty profile
- Apache Tomcat
The ibm.worklight.farm.type enables the farm node list to be built from an XML file containing node properties. The ibm.worklight.farm.definition.location defines the full path to the XML file.
Example of server farm nodes for Liberty profile
<?xml version="1.0" encoding="UTF-8"?> <Farm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FarmSchema.xsd"> <LibertyNode Hostname="someLibertyHost1" ServerID ="libertyServerID1" AdminPass="libertyPassword1" AdminUser="libertyAdmin1" JMXPortNumber="12345" /> <LibertyNode Hostname="someLibertyHost2" ServerID ="libertyServerID2" AdminPass="libertyPassword2" AdminUser="libertyAdmin2" JMXPortNumber="12345" /> <LibertyNode Hostname="someLibertyHost3" ServerID ="libertyServerID3" AdminPass="libertyPassword3" AdminUser="libertyAdmin3" JMXPortNumber="12345" /> </Farm>
Example of server farm nodes for WAS full profile
<?xml version="1.0" encoding="UTF-8"?> <Farm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FarmSchema.xsd"> <WasNode Hostname="someWasHost1" ServerID ="wasServerID1" AdminPass="wasPassword1" AdminUser="wasAdmin1" JMXPortNumber="12345" /> <WasNode Hostname="someWasHost2" ServerID ="wasServerID2" AdminPass="wasPassword2" AdminUser="wasAdmin2" JMXPortNumber="12345" /> </Farm>
Example of server farm nodes for Apache Tomcat
<?xml version="1.0" encoding="UTF-8"?> <Farm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FarmSchema.xsd"> <TomcatNode ServerID ="tomcatServerID1" Hostname="someTomcatHost1" JMXPortNumber="12345" TomcatPortNumber="54321" /> <TomcatNode ServerID ="tomcatServerID2" Hostname="someTomcatHost2" JMXPortNumber="12345" TomcatPortNumber="54321" /> </Farm>If an Apache Tomcat server is placed behind a firewall, also define the TomcatPortNumber attribute. Set this attribute to the value of the rmiServerPortPlatform attribute as defined in the
Parent topic: Manually deploy administration services and operations console