[Multiplayer] Backup schedule not fitting rules

Bugs that are actually features.
Dergonic
Inserter
Inserter
Posts: 46
Joined: Mon Jun 06, 2016 8:56 am
Contact:

[Multiplayer] Backup schedule not fitting rules

Post 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 ?
Zavian
Smart Inserter
Smart Inserter
Posts: 1655
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: [Multiplayer] Backup schedule not fitting rules

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16102
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Multiplayer] Backup schedule not fitting rules

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Dergonic
Inserter
Inserter
Posts: 46
Joined: Mon Jun 06, 2016 8:56 am
Contact:

Re: [Multiplayer] Backup schedule not fitting rules

Post 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.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [Multiplayer] Backup schedule not fitting rules

Post 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.
Post Reply

Return to “Not a bug”