# How to only have one machine running at once?

**URL:** <https://community.fly.io/t/how-to-only-have-one-machine-running-at-once/13914>\
**Category:** Questions / Help\
**Tags:** machines, temporal, login-only\
**Created:** [July 2, 2023, 12:54pm UTC](https://community.fly.io/t/how-to-only-have-one-machine-running-at-once/13914 "2023-07-02T12:54:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ignoramous](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ignoramous](https://community.fly.io/u/ignoramous)\
**Post date:** [July 2, 2023, 3:26pm UTC](https://community.fly.io/t/how-to-only-have-one-machine-running-at-once/13914/2 "2023-07-02T15:26:19Z")

</div>

> [@vicontiveros00](#):
>
> though the idea behind V2 is that only one is running and the other is on stand-by

_Stand-by machines_ are only implemented for processes in AppsV2 that _do not_ have a `[[services]]` section defined: [Increasing Apps V2 availability](https://community.fly.io/t/increasing-apps-v2-availability/12357)

> [@vicontiveros00](#):
>
> they’re both running all the time.

This is a known problem (?) for non-HTTP apps (?). In our case, multiple machines (same region) serve TCP connections despite the aggregate connection count being within `soft_limit`.

> [@vicontiveros00](#):
>
> This is causing problems in my app (a Discord bot, where it responds twice to the same command because he’s running in 2 machines)

Sounds like you need a queue, or an orchestrator like [temporal.io](http://temporal.io) / apache airflow?

> [@vicontiveros00](#):
>
> how can I have only a single machine running or have one on stand-by?

The crudest way is to provision just a single machine per app.

---

_[View the full topic](https://community.fly.io/t/how-to-only-have-one-machine-running-at-once/13914)._
