

Configuring the Elasticsearch service
You can configure some aspects of the Elasticsearch service behavior.
About this task
The server.xml configuration
file on Process Federation Server contains
configuration properties with default values for the Elasticsearch
service. By default, the Elasticsearch service is configured for a
single-server, quick-start environment. To configure the Elasticsearch
service for a production environment with multiple servers, review
the following considerations:
- The cluster.name property must be the same on all servers. The Elasticsearch service uses this property to identify a group of servers as being in the same cluster.
- The node.name property must be unique on all servers in the cluster.
- The Elasticsearch service discovers other clusters members based on the configured TCP ports. By default, multicast discovery is disabled (discovery.zen.ping.multicast.enabled=”false”). Use unicast discovery instead so that you can control the exact composition of your cluster membership, by configuring a list of all cluster members in the discovery.zen.ping.unicast.hosts property. The list is a comma-separated list of other Elasticsearch services in the cluster that is based on the host TCP port.
- The Elasticsearch service requires a quorum of cluster members to be available before it can service requests and perform indexing operations. To provide failover support, a production topology requires three or more process federation servers with Elasticsearch services. With three process federation servers, a server can go offline without impacting the quorum (two or more). Configure the discovery.zen.minimum_master_nodes property to indicate the number of servers that is required to form a quorum. For example, set the value to “2” if you have a total of three process federation servers in your cluster, or “3” if you have a total of five process federation servers in your cluster.
Procedure
- Open the server.xml configuration file for editing. By default, the configuration file is in the pfs_install_root/usr/servers/server_name directory on Process Federation Server.
- Update the ibmPfs_elasticSearch element with configuration properties for your environment. For information about the properties that you can set, see Elasticsearch service configuration properties.
- Save the changes to the server.xml configuration file and restart Process Federation Server.