Product SiteDocumentation Site

9.2. Specificare tempistiche per le azioni ricorrenti

Per default, le operazioni ricorrenti vengono schedulate quando le risorse relative sono avviate. Quindi se una risorsa è stata avviata l'ultima volta alle 14:32 ed è stata dichiarata un'operazione di backup che deve essere eseguita ogni 24 ore, allora tale backup verrà eseguito sempre nel mezzo di un giorno lavorativo, il che non è particolarmente desiderabile...
To specify a date/time that the operation should be relative to, set the operation’s interval-origin. The cluster uses this point to calculate the correct start-delay such that the operation will occur at origin + (interval * N).
So, if the operation’s interval is 24h, it’s interval-origin is set to 02:00 and it is currently 14:32, then the cluster would initiate the operation with a start delay of 11 hours and 28 minutes. If the resource is moved to another node before 2am, then the operation is of course cancelled.
Il valore specificato per interval e interval-origin può essere un qualsiasi date/time conforme allo standard ISO8601. Facendo un esempio, per dichiarare un'operazione che verrà eseguita il primo lunedì del 2009 ed ogni lunedì successivo bisognerà aggiungere:

Esempio 9.1. Specificare una base di partenza per gli intervalli relativi alle azioni ricorrenti

<op id="my-weekly-action" name="custom-action" interval="P7D" interval-origin="2009-W01-1"/>