Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Category: debug (27)

CS2D Command logmaxflushrate

Categories

Parameters

  • maxrate (0-10000): Maximum flush rate in milliseconds (1000 ms = 1 sec, default 1000)

Info

High Security Relevance
This setting is important for the security of your server!
Use it carefully! Wrong settings may make your server vulnerable or limit its functionality or accessibility!

Controls the MAXIMUM rate at which log lines can be written to the physical drive. Writing data to a physical medium is expensive so CS2D allows to control this behavior. The time is specified in milliseconds.

The default value is 1000 which means that log lines will be written to the drive max. once each second. Keep in mind that this is only the maximum rate so they might also be written less frequently (depending on the logbatch setting). Moreover the operating system can also enforce writing in certain situations (e.g. too many buffered lines and not enough RAM).

The minimum value for this setting is 0 which means that writing will not be limited in any way. The maximum value is 10000 which means max. 1 write operation will be triggered every 10 seconds.

Note: Note that log writing is also affected by the setting logbatch.

Attention: Log lines will get lost when CS2D crashes before writing them. Set this setting to 0 if you want to find the reason for a crash.

Attention: A low value may have a negative impact on the performance of your server and also the entire system it is running on. A known attack used to crash CS2D servers is to cause as much logging output as possible in order to slow down the system. Set this setting to a high value when you experience such problems.

Lua Hook Lua Hooks

Lua Command Lua Commands