osrf / cloudsim-widgets

Other
0 stars 1 forks source link

Add countdown timer for how long the machines will stay up #37

Open osrf-migration opened 7 years ago

osrf-migration commented 7 years ago

Original report (archived issue) by Tully Foote (Bitbucket: Tully Foote, GitHub: tfoote).


We have people leaving machines online. I think they're done. But if we had an automatic, resettable countdown timer that if it runs out the machines will automatically clean up we could avoid abandoned machines. If there's a simple way to reup the amount of time left it shouldn't be too onerous.

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


I believe @hugomatic and @sloretz were working on shutting down machines for the Prius Challenge after one hour. If the portal periodically updates the remaining time on the data it sends to the widgets through the websocket, widgets can display it.

For resetting, an idea would be for the portal to offer a PUT /simulators/<simulator_id> route which the widgets can use to update the time in the simulator data.

osrf-migration commented 7 years ago

Original comment by Hugo Boyer (Bitbucket: hugomatic, GitHub: hugomatic).


look here:

https://osrf-migration.github.io/osrf-archived-gh-pages/#!/osrf/cloudsim-portal/pull-requests/44/changed-shutdown-behavior-to-terminate-on/diff

This is not on the "production" portal yet. On "dev", whenever the machine is shutdown sudo shutdown now the instance will terminate.

FYI, if you issue a shutddown on the production instances (sasc), the current behavior on production is that the machine will appear shutdown, but in fact it is only "stopped" in AWS. This is good, since we're only paying for storage and we can "resume" the machine.

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Oh I see, so the portal doesn't keep a timer in any case.

osrf-migration commented 7 years ago

Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).


Yeah, on the prius challenge project the time remaining is tracked by the instance. It shuts itself down when it runs out of time.