(POOLER-123) Implement a max TTL

Before this change, we could checkout a vm and set the lifetime to a
very high number which would esssentially keep the vm running forever.
Now implementing a config setting max_lifetime_upper_limit which enforces
a maximum lifetime in hours both for initial checkout and extending a
running vm
This commit is contained in:
Samuel Beaulieu 2019-12-02 13:38:22 -06:00 committed by Brandon High
parent 86dbc783ef
commit ac17284a61
No known key found for this signature in database
GPG key ID: 270079C784FCAFDE
4 changed files with 63 additions and 1 deletions

View file

@ -498,6 +498,12 @@
# Expects a boolean value
# (optional; default: false)
#
# - max_lifetime_upper_limit
# Sets a lifetime upper limit (in hours) for how long the vm lifetime can be set via the API. Lifetime can be set and extended
# so this configuration is used to enforce an upper limit to both the initial lifetime request and/or the extended
# lifetime (by checking how long it has already been running).
# (optional; default: unlimited)
#
# Example:
:config: