moosefs icon indicating copy to clipboard operation
moosefs copied to clipboard

Questions about METADATA_SAVE_FREQ

Open Initarts opened this issue 4 years ago • 2 comments

how often master will store metadata (hours - default is 1)

METADATA_SAVE_FREQ = 1

The default is to save data to the hard disk once an hour,but I want to save it once a day and execute it at 3am! How to set it 。

how often master will store metadata (hours - default is 1)

METADATA_SAVE_FREQ = 24

I tried to start the program at 3 a.m., but it was saved at 11 a.m. the next day, eight hours apart。

Can't read the local time zone of the server ?

What should I do ?

Initarts avatar Jun 12 '20 13:06 Initarts

Currently there is no possibility of setting an offset to saving metadata and the server starts counting at midnight GMT, so if you set freq to 24 hours, it will save at midnight. If you set every 6 hours, it will be midnight, 6am, noon and 6 pm, GMT times. The possibility of adding an offset is on our roadmap as a planned feature.

chogata avatar Jun 16 '20 09:06 chogata

Currently there is no possibility of setting an offset to saving metadata and the server starts counting at midnight GMT, so if you set freq to 24 hours, it will save at midnight. If you set every 6 hours, it will be midnight, 6am, noon and 6 pm, GMT times. The possibility of adding an offset is on our roadmap as a planned feature.

Hello, this function of storing data at a specified time. now, Can I use it?

Initarts avatar Oct 09 '21 01:10 Initarts