Current time: 11-12-2019, 10:50 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How is cron actually running?
09-29-2016, 10:03 AM
Post: #1
How is cron actually running?
Hey Patrick -

I just spun up a new private instance with one of the EC2 images - thanks so much for making those available!

I know in order for it to update and do other automated tasks there are scripts in the cron directory that are supposed to be run at specific intervals. I assumed there'd be some crontab entries, but I'm not seeing any. Then I saw a comment you made about how there's no need to hook it up to actual cron, it is triggered automatically as agents poll for work.

Is that still the case? In the context of EC2 autoscaling, how will it ever know to spin up new agents (isn't that managed by the scripts in /cron?) if there's no agents polling to begin with?

Thanks!
Shane
Find all posts by this user
Quote this message in a reply
09-29-2016, 10:18 PM
Post: #2
RE: How is cron actually running?
It should still be the case. When a test is submitted to an autoscale test location, runtest.php should do the scaling up if needed.

If you really want to, you can set up crontab entries to wget/curl to localhost/cron/15min.php (and hourly.php) which will make sure the web UI auto-updates even when no agents are running. That's the only case I can think of where it should need it.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-30-2016, 03:04 AM
Post: #3
RE: How is cron actually running?
Thanks Pat! That helps clear things up. I'll see how things are going before I add in those hard cron entries, but I should tip others that it was nice to force upgrade the code (since the EC2 image was created in 2014) by manually running 'sudo php hourly.php' from that cron directory.
Find all posts by this user
Quote this message in a reply
09-30-2016, 03:33 AM
Post: #4
RE: How is cron actually running?
Oh, good point. I should probably freshen the image at some point and wire up cron just to keep things fresh from startup and when idle.

I'm planning on cutting a 3.0 release pretty soon since it has been a while and there have been a lot of big changes since the last official release so that would be a good time to release a new image.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)