Cleaning period
Posted: Tue Feb 05, 2019 8:11 pm
At a moment perhaps memory fragmentation and management in some UT server is not what we need.
In such cases we probably need a controlled restart at a specific time. I've found a so-called older mutator, but which has not always helped, did not do it because of the load which a server can handle at time. When I took a look at what the precious mutator contains, I think I did not have a second of thought, and I decided to love him a little. Such a mutator seems to work much better as ServerActor than as an ordinary mutator that has another networking deal, the logged lines appear to work very well as an actor not as a mutator. If we consider such a ServerActor, it may have defined a configuration read from an INI file as desired. We define the hour, minute and second required, and the server will stop and restart immediately at a clean stage at that scheduled time + 1 second. We leave this second to observe this activity.
INI file has a simple format - sample below:
In this case our actor will stop server at 1:1:10 AM and BAT application will restart it properly saving log accordingly if everything is configured as should. INT file might open preferences options for a configuring it from game or generating a new INI if original is lost.
Setup:
In such cases we probably need a controlled restart at a specific time. I've found a so-called older mutator, but which has not always helped, did not do it because of the load which a server can handle at time. When I took a look at what the precious mutator contains, I think I did not have a second of thought, and I decided to love him a little. Such a mutator seems to work much better as ServerActor than as an ordinary mutator that has another networking deal, the logged lines appear to work very well as an actor not as a mutator. If we consider such a ServerActor, it may have defined a configuration read from an INI file as desired. We define the hour, minute and second required, and the server will stop and restart immediately at a clean stage at that scheduled time + 1 second. We leave this second to observe this activity.
INI file has a simple format - sample below:
Code: Select all
[ServerReset.ServerReset]
ResetHour=1
ResetMinute=1
ResetSecond=10
- ServerActors=ServerReset.ServerReset