Can I stop my app?
You want to stop your app to prevent it from receiving traffic.
You can stop your app by setting your app visibility to project
and allowing it to scale to 0
.
To prevent traffic from reaching your app, follow these steps.
- Change the minimum scale of the app to
0
. For more information, see Setting the number of minimum and maximum instances for your app. - Change the visibility of the app to
project
so that your app is not accessible from the public internet and network access is possible only from other Code Engine components that are running in the same project. For more information, see Deploying your app with a project endpoint. - Remove any custom domain mapping from your app. For more information, see Deleting domain mappings.
- Remove any event subscriptions that target the app. For more information, see Getting started with subscriptions. You can find information about your subscriptions by looking
in the console or by running the
sub get
for each subscription. - Check your source code to make sure that traffic between components in the Code Engine project does not target the application.
When you complete these steps, your app does not receive traffic and scales to zero. Your app can be restarted at any time by reverting these steps.