User Guide ‐ Main interface ‐ Others ‐ RCON Game Server Connection - MarechJ/hll_rcon_tool GitHub Wiki

🧭 You are here : Wiki home / User Guide / Main interface / Others / RCON Game Server Connection


image

Parameters (CODE view)

{
  "thread_pool_size": 20,
  "performance_statistics_enabled": false,
  "performance_statistics_interval_seconds": 30
}

Thread Pool Size

The number of concurrent connections to the game server CRCON will open for each worker you've set in your .env file (NB_API_WORKERS).

This affects things like the game view that uses multiple connections to pull information faster so it's less likely to be out of date.

Unless you're having issues that would be fixed by a reduced pool size (for instance, connections being refused/timed out by your Game Server Provider, GSP), you should leave this value at default (20).

10-20 is a good range, but if you reduce it below ~4, you should not use Team view, automods, etc, as it will be very delayed.

[!WARNING]
The higher the number, the longer it will take for the CRCON backend to start.
Keep in mind these connections will put a load on the game server,
so setting this too high may, in fact, result in a service degradation,
as the server may refuse to answer, causing connection errors and delays in commands.

Min : 1
Max : 100
Default : 20
Recommended : 20

Performance Statistics Enabled

This feature enables basic performance metrics for the RCON connection of the CRCON.
It is disabled by default, as it does not add any value if no-one actually takes a real look on the data.

It captures the following data for a configurable interval:

  • connection_from_pool: How often a connection could be reused from the connection pool (thread pool), meaning re-using a connection without needing to establish a new one.
  • connection_established: the amount of times CRCON had to establish a new connection, either because the thread in the pool was used the first time to make RCON requests, or a previous connection for the thread was closed.
  • connection_closed: how often CRCON decided to close a connection (e.g. it is terminally broken).
  • send: How many commands where sent by CRCON to the game server. This captures "write" as well as "read" commands.
  • send_size: the length of the content body of all requests sent. This does not include the protocol header and meta information, but the request body itself only.
  • receive_size: the length of the content body of a response. As send_size, this does not include protocol metadata or headers.

This feature requires a restart of the backend and supervisor containers whenever it is changed.

Performance Statistics Interval Seconds

Default : 30
Recommended : 30