#Vertical & Horizontal Scale question

7 messages · Page 1 of 1 (latest)

summer drum
#

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?

bold compassBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
strong igloo
#

Or docker swarm

summer drum
summer drum
#

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?

strong igloo