Page 1 of 1

[Multiplayer] Backup schedule not fitting rules

Posted: Thu Jun 28, 2018 11:46 am
by Dergonic
Hello

I'm now running a multiplayer server for some times.
I've spend some times testing it and I've discover something which might not be a "bug" but more a not accurate system with the backups/autosaves.

I configured my server-settings.json that way :

Code: Select all

"autosave_interval": 30,
"autosave_slots": 50,
Meaning a backup every 30 minutes and keep last 50 (So I have about 1 day of backup).

When I inspect my save files I can see I got a backup every 50-60 minutes. Number of backup kept is ok.
-rw-r--r-- 1 factorio factorio 32M Jun 28 11:49 _autosave34.zip
-rw-r--r-- 1 factorio factorio 32M Jun 28 10:54 _autosave33.zip
-rw-r--r-- 1 factorio factorio 32M Jun 28 09:59 _autosave32.zip
-rw-r--r-- 1 factorio factorio 32M Jun 28 09:03 _autosave31.zip
-rw-r--r-- 1 factorio factorio 32M Jun 28 08:08 _autosave30.zip
-rw-r--r-- 1 factorio factorio 32M Jun 28 07:13 _autosave29.zip
-rw-r--r-- 1 factorio factorio 32M Jun 28 06:17 _autosave28.zip
-rw-r--r-- 1 factorio factorio 32M Jun 28 05:22 _autosave27.zip
-rw-r--r-- 1 factorio factorio 32M Jun 28 04:26 _autosave26.zip

What could be the issue ?
Could it be linked to the fact the server is always running 100% CPU ?
Does it eventually means my factorio is running half speed ?

Re: [Multiplayer] Backup schedule not fitting rules

Posted: Thu Jun 28, 2018 11:56 am
by Zavian
I think that the autosave interval is calculated in number of ticks. So if the server isn't running at 60 update per second then the saves will be further apart in real world time than you had specified. You can check how many updates per second the server is running by pressing f4, and turning on show-fps.

Re: [Multiplayer] Backup schedule not fitting rules

Posted: Thu Jun 28, 2018 12:44 pm
by Rseding91
Zavian wrote:I think that the autosave interval is calculated in number of ticks. So if the server isn't running at 60 update per second then the saves will be further apart in real world time than you had specified. You can check how many updates per second the server is running by pressing f4, and turning on show-fps.
Correct. Auto-save is based off the tick speed.

Re: [Multiplayer] Backup schedule not fitting rules

Posted: Thu Jun 28, 2018 12:51 pm
by Dergonic
Rseding91 wrote:Correct. Auto-save is based off the tick speed.
Thanks for the confirmation

I'll investigate that way and change my schedules accordingly.

Re: [Multiplayer] Backup schedule not fitting rules

Posted: Thu Jun 28, 2018 5:27 pm
by eradicator
Rseding91 wrote:Correct. Auto-save is based off the tick speed.
How difficult would it be to change to a more expected real-time value? Sub-60-UPS factories are pretty common after all.
I kinda have the opposite problem that i sometimes need to disable autosave when i want to test a new mod feature on game.speed=100+ because otherwise it'll save every second (edgiest of edge cases, yea i know) :D.