Is it possible to share data from the instanceDir across multiple servers? I want to share the savedBoxes.dat file between servers.
I have done testing with hardlinking the file and it works but if boxes are saved on 2 separate servers only one written, and a restart is required for any changes to be applied.
is there an official way of doing this?
shared data
Moderators: Moderators, Lobby Developers, SPADS AutoHost
Re: shared data
It would totally make sense to share saved boxes between several autohosts, unfortunately it is not officially supported by SPADS currently. (*)
As explained here, the instanceDir contains instance-specific data which should not be shared. If you share these data by using links as you did, then you will get inconsistent behavior like the one you noticed.
You might get an approaching functionality by implementing a plugin which monitors the shared savedBoxes.dat file and auto-reloads it when it changes, but race conditions could still occur.
(*) This is not true since SPADS 0.12.19, which introduced support for shared dynamic data as explained here
As explained here, the instanceDir contains instance-specific data which should not be shared. If you share these data by using links as you did, then you will get inconsistent behavior like the one you noticed.
You might get an approaching functionality by implementing a plugin which monitors the shared savedBoxes.dat file and auto-reloads it when it changes, but race conditions could still occur.
(*) This is not true since SPADS 0.12.19, which introduced support for shared dynamic data as explained here