How i could deploy only 1 app?

When deploying my application (telegrambot), I am receiving a log stating that it has been duplicated to improve scalability. Now all messages received in the application are duplicated because there are 2 instances running simultaneously. Is it possible to avoid this setting and only start up one machine?

image

image

fly scale count 1
3 Likes

hi @agentkyo

You can “turn off” the availability feature on deploy with the --ha flag. For example:
fly deploy [other flags] --ha=false

However, automatic start and stop should be set to true by default for those machines, which means that they should shut down and start up again one by one as needed. Docs for autostart and autostop: Automatically Stop and Start Machines · Fly Docs.

2 Likes

Thank you very much!

Thanks a lot! :pray:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.