Terminating and releasing service instances

To manage workload more efficiently when lending resources, you may want to terminate and release service instances of an EGO service, especially those that are idle.

About this task

You can terminate service instances by reconfiguring the maximum number of service instances that can run simultaneously for the service. If the new maximum number is smaller than before, you can optionally specify a list of service instances that you want to be terminated.

Procedure

To reconfigure the maximum number of service instances and (if required) terminate service instances, run the egosh service config command.
For example:
egosh service config -s service_name -M maximum_instances [-i si_seq_no,...] [-f] [-m minimum_instances]
or
service config -s service_name -m minimum_instances [-M maximum_instances [-i si_seq_no,...] [-f]]
For more information, see service.