Example: Configuring catalog service domains
When you are using the catalog service, a minimum of two catalog servers are required to avoid a single point of failure. Depending on the number of nodes in your environment, you can create different configurations to ensure that at least two catalog servers are always running.
Example: Starting four catalog servers on two nodes in a stand-alone environment
The following script starts catalog servers cs0 and cs1 on the host1 node, and starts catalog servers cs2 and cs3 on the host2 node../startOgServer.sh|bat cs0 -listenerPort 2809 -catalogServiceEndPoints
cs0:host1:6601:6602,cs1:host1:6603:6604,cs2:host2:6601:6602,cs3:host2:6603:6604
-quorum true -jvmArgs -Xmx256m
./startOgServer.sh|bat cs1 -listenerPort 2810 -catalogServiceEndPoints
cs0:host1:6601:6602,cs1:host1:6603:6604,cs2:host2:6601:6602,cs3:host2:6603:6604
-quorum true -jvmArgs -Xmx256m
./startOgServer.sh|bat cs2 -listenerPort 2809 -catalogServiceEndPoints
cs0:host1:6601:6602,cs1:host1:6603:6604,cs2:host2:6601:6602,cs3:host2:6603:6604
-quorum true -jvmArgs -Xmx256m
./startOgServer.sh|bat cs3 -listenerPort 2810 -catalogServiceEndPoints
cs0:host1:6601:6602,cs1:host1:6603:6604,cs2:host2:6601:6602,cs3:host2:6603:6604
-quorum true -jvmArgs -Xmx256m
Deprecated: The
startOgServer and stopOgServer commands start servers that use
the Object Request Broker (ORB) transport mechanism. The ORB is deprecated, but you can continue
using these scripts if you were using the ORB in a previous release. The IBM eXtremeIO (XIO)
transport mechanism replaces the ORB. Use the startXsServer and
stopXsServer scripts to start and stop servers that use the XIO transport.
./startXsServer.sh|bat cs0 -listenerPort 2809 -catalogServiceEndPoints
cs0:host1:6601:6602,cs1:host1:6603:6604,cs2:host2:6601:6602,cs3:host2:6603:6604
-quorum true -jvmArgs -Xmx256m
./startXsServer.sh|bat cs1 -listenerPort 2810 -catalogServiceEndPoints
cs0:host1:6601:6602,cs1:host1:6603:6604,cs2:host2:6601:6602,cs3:host2:6603:6604
-quorum true -jvmArgs -Xmx256m
./startXsServer.sh|bat cs2 -listenerPort 2809 -catalogServiceEndPoints
cs0:host1:6601:6602,cs1:host1:6603:6604,cs2:host2:6601:6602,cs3:host2:6603:6604
-quorum true -jvmArgs -Xmx256m
./startXsServer.sh|bat cs3 -listenerPort 2810 -catalogServiceEndPoints
cs0:host1:6601:6602,cs1:host1:6603:6604,cs2:host2:6601:6602,cs3:host2:6603:6604
-quorum true -jvmArgs -Xmx256m
Remember: You must use the -listenerPort option because the
catalog servers that are running on a node each require a unique port number.
Important: To verify which catalog server is running as the
primary catalog server, run the xscmd -c showPrimaryCatalogServer
command.
Example: Starting multiple catalog servers in a WebSphere Application Server environment
Catalog servers start automatically in a WebSphere® Application Server environment. You can define multiple catalog servers to start by creating a catalog service domain. After you specify multiple endpoints in the catalog service domain, restart the included application servers so that the catalog servers start in parallel.- WebSphere Application Server Network Deployment: You can choose multiple existing application servers from the cell to be members of your catalog service domain. Since, you can only start a cluster of catalog servers that are in the same core group, verify that any application servers in a catalog service domain are in the same core group.
- Base WebSphere Application Server: You can only start a single catalog server in a base application server using the startServer command . To start a cluster, use the startXsServer command.
Important: To verify which catalog server is running as the
primary catalog server, run the xscmd -c showPrimaryCatalogServer command.