crontab and sleep commands ** solved **

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
cbhiii
Gold Boarder
Gold Boarder
Posts: 306
Joined: Fri Feb 15, 2008 2:02 am
Location: Michigan, USA
Contact:

crontab and sleep commands ** solved **

Post by cbhiii »

I noticed that the section where Meteohub writes in the crontab uses many sleep commands which delay the running of these jobs.

I've asked Meteohub to created and upload graphs at certain times throughout the hour and day, but Meteohub is delaying the job by 1-4 minutes from when I schedule them.

The FTP upload command is set to run every 5 minutes, but Meteohub adds another 240 seconds to the job and delay's getting my graphs posted by 4 minutes.

Can these sleep commands be turned off in a future version so the user can better control when jobs take place? I understand this is to protect Meteohub from getting overloaded by jobs at once, but maybe there could be a check box to turn this \"overload protection\" off and on.

It's just frustrating to find that my FTP uploads aren't going out when they should and my graphs aren't being generated when expected.

Thanks.
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7953
Joined: Mon Oct 01, 2007 10:51 pm

Re:crontab and sleep commands

Post by admin »

you are right, the sleeps are intended to cascade the graph generation requests into a sequential mode for protecting system stability.

I am not planning to change this, as starting 10 graph generating jobs at the same time (for example) will bring overall performance onto the knees. Please keep in mind that a NSLU2 has just 32 MB of RAM - so many jobs like gnuplot in parallel will be a big problem.
cbhiii
Gold Boarder
Gold Boarder
Posts: 306
Joined: Fri Feb 15, 2008 2:02 am
Location: Michigan, USA
Contact:

Re:crontab and sleep commands

Post by cbhiii »

After using and understanding it a bit more this makes sense. I agree that it should not be changed. Thanks.
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
Post Reply