diff --git a/cluster.c b/cluster.c index 2ebe4b3..d68918a 100644 --- a/cluster.c +++ b/cluster.c @@ -133,6 +133,9 @@ int cluster_init() opt = 0; // Turn off multicast loopback. setsockopt(cluster_sockfd, IPPROTO_IP, IP_MULTICAST_LOOP, &opt, sizeof(opt)); + opt = 7; // Highest priority to avoid getting hit by high-traffic + setsockopt(cluster_sockfd, SOL_SOCKET, SO_PRIORITY, &opt, sizeof(opt)); + if (config->cluster_mcast_ttl != 1) { uint8_t ttl = 0;