Hi,
I have a few questions please about Ultimate Cron (v2). Can you assist?
1. With regards to load balancing; is there anyway to set this dynamically or inside the db, or automatically? I am planning on using multiple AWS instances with auto scaling and would like to scale ultimate cron too, but this means changing the settings.php as far as I can tell. I saw mention of Apache being used to balance based on least idle, but I am using nginx.
2. Also with load balancing, can you specific a job per server? e.g. could I say all queues should be on one server, everything else on other servers?
3. I am currently using elysia cron. How easy is it to move the cron jobs and queues from elysia? I see on v2 it says "Uses hook_cronapi() (Elysia Cron compatible, NOT 2.x, please use hook_cron_alter() for similar functionality)". Is there any more information about this? I can't find anything. Also, is the queue processing any different in UC than EC?
An example of my current set up is:
function custom_cronapi($op, $job = NULL) {
$items['custom_clean_stale_notifications_hourly_queue'] = array(
'description' => 'Clean the stale notifications hourly queue.',
'rule' => '*/2 * * * *',
'callback' => 'custom_clean_stale_notifications_hourly_queue',
'file' => 'custom.cron.inc',
);
}
function custom_cron_queue_info() {
$queues['custom_stale_notifications_weekly_tasks'] = array(
'worker callback' => 'custom_stale_notifications_task',
'time' => 15,
'skip on cron' => TRUE,
);
}
Thanks,
Paul.