Instance Mangement
This section describes how to manage the instances of a Virtual Cluster. There are at least two instances (“service” and “frontend”) which need to be operating whenever the Virtual Cluster is used (see Subnets). Depending on the scale of the system services might be spread out to more instances than just the “service” and “frontend” instance. In this case these additional instances need to be up and running as well when the system is used. Ephemeral instances in the “backend” subnet(s) are created on demand based on the scientific workload using so-called instance templates. The current status of such instances can be displayed by issuing:
vc-instance-manager instance list
vc-instance-manager partition list
vc-instance-manager instance start <instance-name>
vc-instance-manager instance stop <instance-name>
vc-instance-manager instance start cpu-compute-1
However, starting dynamic instances is typically not required as the workload
management system of the Virtual Cluster performs these operations automatically.
The creation and termination of instances for scaling the Virtual Cluster is
logged in the system log (/var/log/messages
) on the “service”
(or the “slurm”) instance. All events of this type can be inspected by using
the following command with root permissions:
cat /var/log/messages | egrep "VIRTUAL-CLUSTER-GROW|VIRTUAL-CLUSTER-SHRINK"
Template Instances#
All dynamically created instances are created using so called instance templates. If a setting needs to be changed for the dynamically created and terminated instances, the setting must be changed in a template instance which is then converted into an instance template replacing the previous template as settings in the dynamically created instances are not persistent.
A template instance for a certain partition can be started using the following command:
vc-instance-manager instance-template start <partition-name>
vc-instance-manager instance-template update <partition-name>
If the particular partition is not specified, the Virtual Cluster automation will update the instance templates for all partitions for which template instances exist.
Warning
Changing instance templates requires good knowledge of the Virtual Cluster internals. Contact the Schrödinger support team before applying changes if there are any doubts about the modifications applied to the instance templates.
It is also possible to stop template instances and apply the changes later on by using the command:
vc-instance-manager instance-template stop <partition-name>
Note
Changes in the instance templates will only apply for instances created after the instance template has been changed. Running instances are not affected.