Creating and customizing catalog servers
Use the server create command to create your catalog servers. Edit the bootstrap.properties and server.xml files to specify port numbers, the cluster endpoints, and define your security (keystore, user registry, and server administration authorization roles).
About this task
You must list all the host names, server names, and client listener ports of the catalog servers in your topology. You must also add details of the SSL keystore, registry users, and server administration authorization roles.
Procedure
- Open a command window and go to the <InstallDir>/runtime/wlp/bin directory.
- Create a catalog server by running the server create command.
For example, on Windows.
server create cisCatalog1 --template=cisCatalogFor example, on Linux.
./server create cisCatalog1 --template=cisCatalogWhere cisCatalog1 is the name of the server that you want to create. cisCatalog is the name of the template.
- Repeat steps 1 and 2 until all of the catalog servers in your topology are created.
- Add an entry in the
<WLP_USER_DIR>/servers/server_name/bootstrap.properties
files to declare the host and server names, and peer connection ports of the catalog servers in your
topology.
The declaration takes the form: insights_server_name:host_name:port_number:port_number,insights_server_name:host_name:port_number:port_number.
Where <WLP_USER_DIR> is the environment variable that points to the location of the Liberty usr directory.
For example:
ia.clusterEndpoints=cisCatalogHost01-cisCatalog:cisCatalogHost01:6600:6601,cisCatalogHost02-cisCatalog:cisCatalogHost02:6600:6601,cisCatalogHost03-cisCatalog:cisCatalogHost03:6600:6601 - Open the <WLP_USER_DIR>/servers/server_name/server.xml file in a suitable editor.
- Add the basic or LDAP user registry configuration.
For example:
<basicRegistry id="basic" realm="SimpleRealm"> <user name="SimpleAdmin" password="abcdefg"/> <group name="SimpleAdministratorsGroup"> <member name="SimpleAdmin"/> </group> </basicRegistry>For more information, see Managing users with LDAP.
- Configure authorization roles for server administration.
For example:
<administrator-role> <group>SimpleAdministratorsGroup</group> </administrator-role> - If you plan to run a non-High Availability (HA) Insight Server on a single host on Windows, you must add -Xnocompressedrefs to the
<WLP_USER_DIR>/servers/server_name/jvm.options
file. For more information about HA, see Development, testing, and production servers.
The Xnocompressedrefs property disables the use of compressed references in the JVM, which prevents segmentation errors.
- If you plan to run a network HA cluster with three catalog servers, you must set the
enableQuorum property in the server.xml files to
true, and the
com.ibm.websphere.objectgrid.server.catalog.majority.quorum property in the
jvm.options file to true.
These properties make sure that multiple catalog servers cannot declare themselves master. In a cluster with two catalog servers, one catalog server is always master. If the master fails, the other catalog server becomes the master. With two catalog servers, you can use the default value for these properties, which is false.
Normal redundancy for HA requires only two catalog servers. If you have a complicated network topology, use three catalog servers in majority quorum. The following network topologies are examples that require three catalog servers:
- The catalog servers use multiple network interfaces.
- The catalog servers are on separate subnets from one another.
- The catalog servers are on separate network hardware, and you want to be HA for network failures.
When you have three catalog servers, edit the <xsServer> properties in all three server.xml files to include enableQuorum.
<xsServer catalogServer="true" catalogClusterEndpoints="${ia.clusterEndpoints}" listenerPort="${ia.listenerPort}" transport="XIO" serverName="${ia.serverName}" enableQuorum="true"/>Edit the jvm.options files in all three catalog servers to read:
-Dcom.ibm.websphere.objectgrid.server.catalog.majority.quorum=true