Install the Events Service on Windows
You can install and administer the Events Service on Microsoft Windows systems as a single node or a cluster. Common use cases include:
- Single-node Events Service— Good for demonstration purposes and other scenarios where data redundancy and high availability are not required.
- Three-node cluster— The minimum size for a production Events Service cluster.
- Cluster of four nodes or more— For deployments where increased load or expected sizing exceeds the capacity of a three-node cluster.
Contact Splunk AppDynamics customer support if you anticipate deploying a cluster of 10 or more nodes.
Decide Which Node(s) to Make Master Nodes
Every Events Service node is either a master node or a data node. In an Events Service cluster, the master node both acts as a storage node, and manages the state of the data across the cluster, including the state of the replica. In a single-node deployment, there's not much for the master to do.
The master node is the first node to start up. If the master node becomes unavailable, the worker nodes attempt to elect a new master.
As you install Events Service, you specify the configuration for each node, which consists of two pieces of information:
- Whether to enable the node to serve as a master, and
- How many nodes (minimum) must be available in the cluster for a new master to be elected.
This table describes what values to specify as you install:
| Order of Node in the Deployment | Master-enabled? | Minimum available nodes required to elect a new master |
|---|---|---|
| First (only) node in a single-node installation | true | 1 |
| First, second, and third nodes of a three-node cluster | true | 2 |
| Fourth (or higher) node of a cluster | false | 2 |
Installation Quick Start
Before you can install the Events Service on Windows, you must use Enterprise Console to install the Controller. The EUM Server must be installed separately as it cannot be installed using the Enterprise Console.
- Install the Enterprise Console.
- Use the Enterprise Console to create the platform and add hosts.
- To install the Controller and Events Service on the same host, use the Express Install option.Use the Custom Install to install a scaled-out Events Service that runs on a host that is separate from the Controller. Custom installations provide more flexibility on where and how to install Controller and Events Service.
- (Optional) Install the EUM Server.
- Complete the post-install tasks for the Controller, Events Service, and EUM Server.
Deploy a Single-Node Events Service
Ensure that you have met all of the current Events Service Requirements, including:
- Have Java Runtime Environment (JRE) version = 1.8
- Defined Java in the Windows environment variable path, or a JRE folder that is accessible by
events-service.exein the relative path..\..\jre
To manually install the Events Service on a single node:
Deploy an Events Service Cluster (Three Nodes)
The following steps describe how to deploy an Events Service cluster made up of three nodes, the minimum size of the Events Service cluster. These steps apply whether you are performing a new installation of a cluster or expanding a single node deployment into a three-node cluster. For information on expanding beyond a three-node cluster, see Adding Nodes to a Cluster.
Before starting, review the topology notes in Events Service Deployment and make sure that all machines in the cluster meet the system requirements.
When ready, perform these steps on each of the three nodes.
Expand an Events Service Cluster
The Events Service cluster is horizontally scalable. You can add nodes to an existing cluster without affecting or having to restart the existing nodes.
Before starting, prepare the new cluster machine. Verify system requirements and prepare the environment as described above.
For each node beyond the original three master nodes, download and configure the nodes as previously described. The configuration steps for any nodes added to the cluster after the initial three master nodes are as follows:
Start and Stop the Events Service
At installation, the Events Service is installed as a service and is left running upon completion of the installation. You can stop and stop it as a service or as a foreground process, as described here or by using the GUI.
Start and Stop as a Foreground Process
To start the Events Service as a foreground process, however, use the following command:
bin\events-service.exe start -p conf\events-service-api-store.properties
To stop the Events Service as a foreground process, use this command:
bin\events-service.exe stop
Stop and Start as a Windows Service
You can stop and start the Events Service as a Windows service from the Services Manager. You can also stop and start it using the events-service.exe tool, as here:
-
Enter the following command to find the service name for the Events Service:
CODEbin\events-service.exe service-list -
Pass the service name returned by the
service-listcommand as the-sparameter argument to the following command. Enclose the service name in double-quotes.PYTHONbin\events-service.exe service-start -s "<Name from service-list>"
To stop the service, run this command:
bin\events-service.exe service-stop -s "<Name from service-list>"
Remove a Node
To remove a node that is not enabled for operation as a master node from the cluster, simply stop the Events Services on the node or remove the machine it runs on from the network.
Note the following guidelines:
- You cannot remove nodes such that the resulting cluster size is two.
- A cluster that consists of three or more nodes can't be reduced in size to a single node Events Service.
After you remove a node, be sure to adjust your load balancer rules to remove the old cluster member. See Load Balance Events Service Traffic for more information.
If you are not using a load balancer with a cluster deployment, keep in mind that the connection settings for the first master node that reports to the Controller at installation time are written to the Controller setting that identifies the Events Service to the Controller. If you remove a master node in that case, check whether the removed master node is node identified as the Events Service destination URL in the Controller connection settings; adjust the setting if so. See Connect to the Events Service for more information.
To reconfigure an existing node to enable operation as a master node, or add a new node with the master option enabled:
ad.es.node.master=true
If reconfiguring a node, restart the node after changing the configuration.