-
Notifications
You must be signed in to change notification settings - Fork 22
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
Mark test servers for auto-deletion using "end_at" parameter #75
Comments
looks like it's here that needs to be changed, and @gyohuangxin had the last edit. (actually looks like a pretty simple fix). We'll need to compute a timestamp. .github/workflows/scripts/start-cil-runner.sh What I don't know is, how long are the tests expected to run, at worst case? Can the machines be clobbered in 24, 6, 2 hours? |
@vielmetti Currently, it runs in 30mins, at worst case. But considering that we may add more test cases in the future, I think 2 hours is a appropriate deadline. |
@gyohuangxin The Equinix system bills by the hour, so my recommendation is to set the expiry at say 1 hour 50 minutes from the time it's created, that will catch anything relatively fast but not risk running 2:01 and incurring the extra charge. The example end_at time is in ISO format, e.g
which can be generated with something like |
@vielmetti I create a PR to fix this: https://github.com/layer5io/meshery-smp-action/pull/76/files, but I want to confirm the default time zone used by the Equinix system: |
@vielmetti I confirmed that Equinix system is using UTC/GMT timezone, so please review the PR, thanks. |
Thanks @gyohuangxin - I am checking on the semantics of "termination_time", to see if this is expected to work for ordinary instances or only for "spot instances". Will follow up soonest when I can confirm. |
Confirming two things: one, that our team is working on updated docs for the |
To complete this - We have updated the Equinox Metal "termination_time" docs at https://deploy.equinix.com/developers/api/metal/#tag/Devices/operation/createDevice to reflect better the use case (ephemeral instances) and to document the time zone question described above. Since this change was deployed last month we have not had any of the previous issues described! That's all good news. |
Current Behavior
Of the scheduled tests that run multiple times a day, they have faced a few challenges. Notably, one of those challenges is in the cleanup phase once a test is complete. Currently, it is frequently the case that any number of bare metal servers that are used for testing or orphaned, and not decommissioned at the end of each test. This leaves an inordinate amount of bare metal servers, unnecessarily unavailable for used by other projects.
@vielmetti has been most helpful in identifying ways to mitigate this from happening.
Desired Behavior
All resources provisioned for a scheduled test are subsequently decommissioned at the end of that same test.
Implementation
Recently @vielmetti point this out:
Slack Message
Acceptance Tests
Contributor Guide
The text was updated successfully, but these errors were encountered: