shared data

shared data

SpringRTS Perl Autohost for Dedicated Server

Moderators: Moderators, Lobby Developers, SPADS AutoHost, Moderators, Lobby Developers, SPADS AutoHost

Post Reply
Posts: 28
Joined: 26 May 2016, 19:11

shared data

Post by Teabag »

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?
0 x

User avatar
Lobby Developer
Posts: 913
Joined: 06 Dec 2007, 11:12

Re: shared data

Post by bibim »

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.
0 x

Post Reply

Return to “SPADS AutoHost”