-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design review for scheduled snapshot #186
Comments
I think the field names would be more readable after That makes more grammatical sense to me e.g. "I would like to create a snapshot schedule" or "What is the snapshot schedule for this VM?" Thoughts? |
Datapath Design section
Xapi Changes section
APIs will need changing to reflect the above.
|
Thanks @jonludlam and @johnelse for the review. I have created a PR #190 to reflect the new changes required.
|
Thanks @sharady. I'm still unsure about the type of schedule. It's a bit of a shame we're not using cron syntax directly. In any case, if we really want to be specifying day-of-week using day names, we should use an enum, and perhaps have 3 namespaced fields rather than a string->* map. |
Also, I still don't see the need to have a second place to specify email configuration. We already have a mechanism for emailing - messages. We should just be using that. |
@jonludlam Thanks for the further comments :) |
OK. Let's have the schedule be a string -> string map. valid keys are 'minute', 'hour', 'day-of-week'. In a future (simplified) version, we can maybe add a new enum to the frequency: 'cron'. We can then interpret the fields from the schedule be the relevant fields from a crontab entry: the fieldnames I've suggested come from the crontab man page: http://www.freebsd.org/cgi/man.cgi?crontab(5) I suggest we stick with numbers for minute, hour, day-of-week for now for simplicity. |
Thanks @jonludlam for the review, I have updated the same on PR: #191 |
See http://xapi-project.github.io/xapi/design/schedule-snapshot.html
The text was updated successfully, but these errors were encountered: