A Capsule provides the server for hosting an application on Code Capsules. In this reference guide, we'll take a look at the different options you have for managing your Capsule while it's deployed.
Turning off a Capsule
You can turn off your Capsule by toggling the radio button at the top right of the Capsule's page.
The most common reason for turning a Capsule off is if you've changed or added an environment variable, in which case you'll need to toggle the Capsule back on after a few seconds for the new variable to be accessible. Depending on the purpose of your application, you might also want to turn your Capsule off during periods of inactivity to save on the cost of running your application on Code Capsules.
Scale a Capsule
It is possible to allocate more resources to your Capsule depending on how much traffic your application will be getting and its computational needs. To view the different scaling options available for your Capsule, navigate to the "Scale" tab while on your Capsule's page.
Choose the package with the Capsule resources that best suit your needs by clicking on the item.
Monitor Capsule Metrics
Each Capsule tracks its usage data and you can view this information by opening the "Metrics" tab on your Capsule's page.
Delete a Capsule
When you no longer wish to host your application on Code Capsules, delete your Capsule by navigating to the "Configure" tab of the Capsule page and scrolling to the bottom.
Click on the delete icon under the "Delete Capsule" section on the bottom right. A dialog will slide in from the right asking you whether you're sure about deleting the Capsule since this action isn't reversible. If you're sure, enter the Capsule's name to activate the delete button and click "Delete" to confirm your changes.