-
I'd like to host an instance of a music bot for a network of ~100 large (10k average users) servers. Do you have an estimate of the minimum specs and connection I should be looking for? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
TL;DR: Amount of members don't matter. It heavily relies on how many servers are playing music at once. The issue is not amount of members, because JMusicBot asks Discord to not send any user-related data (except messages ofc). The most concern of performance would actually be how many audio streams are going on at once: The more servers play music using your bot, the higher your resource usage becomes. Internally, JMusicBot uses LavaPlayer to load & play music. There are 3 resources that JMusicBot/LavaPlayer heavily utilizes: 1. MemoryLavaPlayer claims it only consumes up to 350+ kilobytes per playing YouTube track. The bot itself also stores a few dozen Megabytes of data for settings, servers, channels, messages & more. You can partially limit JMusicBot's ram usage by using the 2. CPUTransmitting audio can use up your CPU a bit. It's hard to be specific, but here are some considerations:
3. NetworkingYou will need a consistent internet connection. If your internet cuts out even by a second, users will notice the stutter. Other than that, audio files are quite small, and you won't need much bandwidth for a few audio streams. Using yt-dlp to download the audio of a 2:48 minute video, i got an |
Beta Was this translation helpful? Give feedback.
TL;DR: Amount of members don't matter. It heavily relies on how many servers are playing music at once.
The issue is not amount of members, because JMusicBot asks Discord to not send any user-related data (except messages ofc). The most concern of performance would actually be how many audio streams are going on at once: The more servers play music using your bot, the higher your resource usage becomes.
Internally, JMusicBot uses LavaPlayer to load & play music. There are 3 resources that JMusicBot/LavaPlayer heavily utilizes:
1. Memory
LavaPlayer claims it only consumes up to 350+ kilobytes per playing YouTube track. The bot itself also stores a few dozen Megabytes of data for settings,…