Gersti
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by Gersti on 10/25/2023 in #djs-questions
How to handle bot restarts with sharding
So basically we are running into the following issue:
We have an discord bot, built with typescript which is clusterd and sharded with
discord-hybrid-sharding
. Also the bot runs in docker.
If we implement a bugfix or some new features, we would need to build a new image and restart the docker container completely which leads into a huge downtime since every shard needs to start up again.
I read/saw that `discord-hybrid-sharding' has a zero downtime restart/rollout option but i don't have a clue how this should work in our situation.
Maybe anyone knows how this can be handled or could share their solution.
Any help is greatly appreciated!5 replies