-
-
Notifications
You must be signed in to change notification settings - Fork 27
Cluster
MrCakeSlayer edited this page Sep 24, 2022
·
1 revision
Lavalink4NET supports Node clustering. This means that it provides the option for load balancing players on different nodes.
Here is an example for creating a node cluster:
new LavalinkCluster(new LavalinkClusterOptions
{
Nodes = new[] {
new LavalinkNodeOptions {[...]},
[...]
}
}, new DiscordClientWrapper(client));
By default the cluster uses the score load balancing strategy, so it favors the node that has the highest rating.
Lavalink4NET Wiki - Licensed under MIT