2 instances

29 views
Skip to first unread message

Julien Auger

unread,
Oct 21, 2019, 8:18:27 AM10/21/19
to Google App Engine
Hi, i try to host a bot on discord.js, it work but i have a problem. I have two instances launched that make my bot reply twice. I tried to delete an instance but when it is deleted, it comeback. I need help.

George (Cloud Platform Support)

unread,
Oct 21, 2019, 10:16:31 AM10/21/19
to Google App Engine
Hello Julien, 

If you want to limit the total number of running instances to one, in Standard Environment, you specify this in your app's app.yaml configuration file, for instance by choosing manual scaling, and setting desired value for the max_instances parameter. Manual scaling uses resident instances that continuously run the specified number of instances irrespective of the load level. More details are to be found on the "How Instances are Managed" page. Some settings in Automatic scaling may get you the same functionality. 
Reply all
Reply to author
Forward
0 new messages