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!
4 Replies
d.js toolkit
d.js toolkit8mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Dominik
Dominik8mo ago
discord-hybrid-sharding is a different package not sure if you will get support for that here really
Gersti
Gersti8mo ago
Asked there aswell, maybe we get some input in here how others handle their bot restarts even without discord-hybrid-sharding
Dominik
Dominik8mo ago
yea shouldnt hurt