Stopping and Starting Instances in an Instance Pool
Performing operations such as reset or stop on the pool object performs that operation on all instances that are members of the pool. Performing these operations on an individual instance that is a member of the pool does not affect any other member instances.
When instances are stopped, compute resources are released and the instances are disconnected and unassigned from their compute nodes. When instances are started, the Compute service restarts the instances in the same fault domain that they were in when they were stopped.
Instances continue to count toward the pool size while they are stopped, and configuration of stopped pool instances is preserved. Configuration changes such as fault domain changes do not apply to pool instances that are restarted or reset.
Using the Compute Web UI
-
In the navigation menu, click Compute, and then click Instance Pools.
-
If the instance pool that you want to manage is not listed, use the Compartment drop-down menu above the instance pools list to select the correct compartment.
-
For the instance pool that you want to manage, click the Actions menu, and click the Start, Stop, or Reboot option.
By default, clicking Stop selects Soft Stop and clicking Reboot selects Soft Reboot. To stop or reboot all instances in a pool immediately, click the Force option on the confirmation dialog.
All of the instances in the pool are stopped, started, or rebooted. See Stopping, Starting, and Resetting an Instance for how to prepare for an instance to stop. Stopping and starting an instance can take up to five minutes.
-
Click the Start Instance Pool, Stop Instance Pool, or Reboot Instance Pool button on the confirmation dialog.
In the Resources section of the pool details page, click Work Request(s) to check the status of the instance pool stop, start, or reboot. Click Attached Instances to view the status of the instances.
Using the OCI CLI
-
Get the OCID of the instance pool that you want to manage:
oci compute-management instance-pool list
-
Run the instance pool stop, start, or reset command.
Syntax:
oci compute-management instance-pool {start | stop | softstop | reset | softreset} \ --instance-pool-id instance_pool_OCID
For descriptions of these commands, enter:
$ oci compute-management instance-pool -h
Example:
$ oci compute-management instance-pool reset --instance-pool-id ocid1.instancePool.unique_ID
Use the
work-requests work-request get
command to check the status of the instance pool management change.