Vertical & Horizontal Scale question

Hello. I just need maybe some hints for this. I know you can have Clusters(per core) and inside those there is Shards(2000 guilds/ea) So what if those become full right, then i need to scale computers or more like containers in docker(or whatever you use) Right now i have a container for my website + rest api MongoDB - Store data like guild Redis - Cache() and messaging channel(maybe i want to send something to the website live) So to scale the containers on the docker do i need to have like a master than checks if all my clusters is full and then it should create a new container. But then i basically start another bot which i cant cause the bot is already running right? Also is it possible that when the new container starts it allocating automatically?
4 Replies
d.js toolkit
d.js toolkit15mo 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! - Marked as resolved by OP
rad
rad15mo ago
Kubernetes may be for you Or docker swarm
!𝓩𝓮𝓴𝓱𝓪𝓹
Isn't that only to split the shards into multiple containers? Okay, so I probably need like one machine that starts the bot. And then it has clusters that create shards. And every shard will have its own container in docker?
rad
rad15mo ago
Yes that's what it would do Each shard will be connected to one central redis and mongo
Want results from more Discord servers?
Add your server