Retrieve CCU and Number of Rooms Per Server Process By Server Type

You may retrieve CCU and number of rooms per server process by server type.

Diarkis server allows you to read CCU and number of rooms from each server process in the Diarkis server cluster.

The example below shows the case for UDP servers

// import

// All UDP pods in the cluster
pods := mesh.GetNodeAddressesByType(udp.Type)

// Retrieve CCU and number of rooms from all pods
for _, podAddress := range pods {
  ccu := mesh.GetNodeValue(podAddress, metrics.UserVaultName)
  numOfRooms := mesh.GetNodeValue(podAddress, metrics.RoomVaultName)

Here are the list of default server types:

// UDP server type


// TCP server type


// WebSocket server type


Last updated