# Does Nakama have a maintenance mode?

**URL:** <https://forum.heroiclabs.com/t/does-nakama-have-a-maintenance-mode/3448>\
**Category:** Runtime Framework\
**Created:** [January 25, 2023, 8:13pm UTC](https://forum.heroiclabs.com/t/does-nakama-have-a-maintenance-mode/3448 "2023-01-25T20:13:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adbourdages](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/adbourdages/32/944_2.png) [@adbourdages](https://forum.heroiclabs.com/u/adbourdages)\
**Post date:** [January 25, 2023, 8:13pm UTC](https://forum.heroiclabs.com/t/does-nakama-have-a-maintenance-mode/3448/1 "2023-01-25T20:13:51Z")

</div>

I’m trying to find a way to have Nakama fully running but prevent players from connecting to it at all. I’m calling this ‘maintenance mode’ as it would allow us to do a bit of database work/admin while we are sure no records are changing due to player connections.

I haven’t seen a configuration option that would allow for that yet.

---

<div class="post-metadata">

**Author:** ![Eatos](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/eatos/32/1656_2.png) [@Eatos](https://forum.heroiclabs.com/u/Eatos)\
**Post date:** [January 25, 2023, 8:46pm UTC](https://forum.heroiclabs.com/t/does-nakama-have-a-maintenance-mode/3448/2 "2023-01-25T20:46:51Z")

</div>

Not sure if there is one, but you could maybe, do it by using own “config” file to mark if server is in maintenance mode, and then check it in Before hookrs for Authenticate requests?  
At least that is how i would implement it…

---

<div class="post-metadata">

**Author:** ![mharis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mharis/32/969_2.png) [@mharis](https://forum.heroiclabs.com/u/mharis)\
**Post date:** [January 26, 2023, 11:57am UTC](https://forum.heroiclabs.com/t/does-nakama-have-a-maintenance-mode/3448/3 "2023-01-26T11:57:15Z")

</div>

Indeed there is no config to do this but, depending on your deployment method, this is typically done higher up the network stack, e.g. in the Load Balancers.
