parmentelat / nbhosting

nginx + django + docker architecture to host notebooks embedded from open-edx hosted MOOCs
Other
77 stars 8 forks source link

define extra setting to allow monitor to kill containers older than n hours, no matter what #113

Closed parmentelat closed 4 years ago

parmentelat commented 4 years ago

it seems that in some use cases - and that seems to become more frequent (linked to widgets maybe ?) - where containers run for much longer than expected
I suspect that some long-haul traffic is happening, that makes the last_activity report unreliable; just a wild guess at this point
but typically there should be a means for operations to state we don't want any container older that 2 days

so in addition to the current settings, monitor should accept a third parameter that would describe in hours a maximal age no matter what else