Monitor for configuration variable changes
Track when configuration variables are modified in your servers.
Read time 1 minuteLast updated 3 days ago
Each game server build must monitor the
server.jsonMonitor allocation ID changes
Each game server instance must detect its allocation ID by monitoring the value of theallocatedIDserver.jsonallocatedIDserver.json- When you allocate a server, the value updates to the current allocation ID.
- When you deallocate a server, the value updates to contain an empty string.
Container builds
If you're using a container build, theserver.jsonserver.json- For Linux containers, it's in the environment variable.
$HOME - For Windows containers, it's in the environment variable.
$HOMEPATH
Best practices
The recommended way monitor changes to theserver.jsonGame engine | Best practice |
|---|---|
| Unity Engine | Game Server SDK for Unity |
| Unreal Engine | Game Server SDK for Unreal |
| Custom engine | |
Unity Engine
If your game is built using Unity, the recommended way to monitor for configuration variable changes is to use the Game Server SDK.Unreal Engine
If your game is built using Unreal Engine, the recommended way to monitor for configuration variable changes is to use the Game Server SDK.Custom engine
If you’re using a custom game engine, the recommended way is to useinotifyCLOSE_WRITECLOSE_WRITEinotifyMODIFY server.jsonOPEN server.jsonOPEN server.jsonCLOSE_NOWRITE,CLOSE server.jsonMODIFY server.jsonCLOSE_WRITE,CLOSE server.jsonOPEN server.jsonACCESS server.jsonCLOSE_NOWRITE,CLOSE server.json