Graceful Shutdown

You can shut down SwaggerHub gracefully using the Embedded Kurl Cluster Operator (EKCO).

Recommendations

We recommend the graceful shutdown in two cases:

  • when you put your virtual machine into a suspended state

  • when you perform operating system updates, security patches, or reboots

Tip

Wait up to two minutes for the pods to drain out or start up.

Shut Down

Shut down SwaggerHub and minimize the Kubernetes resource usage using the command:

sudo /opt/ekco/shutdown.sh

SwaggerHub is now offline.

Start Up

When you are ready, restart SwaggerHub using the command:

sudo /opt/ekco/startup.sh

SwaggerHub is now online.

Tip

After the shutdown, the Elasticsearch pod might appear as unavailable in the admin console's resources status. In this case, give it up to two minutes to start up.

If the pod status remains as unavailable, redeploy by using this command:

sudo sysctl -w vm.max_map_count=262144
Publication date: