When using accumulo-service, you can manage groups of services or multiple instances per host using specific configuration patterns.
Service Grouping
You can specify a group using the .group= syntax in your arguments. This value is exported as ACCUMULO_RESOURCE_GROUP. For example, if you provide mygroup.group=test, the service name will be constructed using test.
Cluster Scaling
The number of service instances to start or stop is controlled by the ACCUMULO_CLUSTER_ARG environment variable. If this variable is set, the script will attempt to manage multiple processes (e.g., tserver_group_1, tserver_group_2, etc.) based on that value.
Stopping/Killing All Instances
To stop or kill every running instance of a specific service type (e.g., all tservers), use the --all flag:
accumulo-service tserver stop --all
# Example: Starting a specific service instance
./accumulo-service tserver start tserver_mygroup_1
# Example: Stopping all tserver instances
./accumulo-service tserver stop --all
# Example: Using group parameter
./accumulo-service tserver start mygroup.group=production