You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, user would like to restart OSv instance and start fresh, including running a init sequence and reading cloud-init.
Once done, instance will have zero info of its past life.
This can also be done using the HV but this method have disadvantages on the cloud:
in public cloud this may cost a new instance
take more time
may not close all resource gracefully
The text was updated successfully, but these errors were encountered:
I take it from your description that you want this reboot() feature to do a clean shutdown first.
We need to think how the HTTP server can cause a running application to cleanly shutdown (perhaps a UNIX signal?).
Note that the existing osv::reboot() doesn't cleanly shut down anything - it doesn't even flush the disk. This is also the topic of this issue: cloudius-systems/osv#180
Finally, note that osv::reboot() still involves the hypervisor. If we want the hypervisor not to know about the reboot (to make it faster and cheaper (?)) we can try to replace it with some sort of in-place re-initalization of OSv, which rezeros the BSS and reloads the .data and jumps again to the starting point of OSv. Would be a fun exercise, but not an easy one.
I take it from your description that you want this reboot() feature to do a clean shutdown first.
Well, as clean as possible
Can do better than the HV?
We need to think how the HTTP server can cause a running application to cleanly shutdown (perhaps a UNIX signal?).
Note that the existing osv::reboot() doesn't cleanly shut down anything - it doesn't even flush the disk. This is also the topic of this issue: cloudius-systems/osv#180
Finally, note that osv::reboot() still involves the hypervisor. If we want the hypervisor not to know >about the reboot (to make it faster and cheaper (?)) we can try to replace it with some sort of in->place re-initalization of OSv, which rezeros the BSS and reloads the .data and jumps again to the starting point of OSv. Would be a func exercise, but not an easy one.
EC2 actually support reboot[1], so the price motivation does not holds.
If OSv can get the restart signal from HV and gracefully close resources, the first motivation does not holds either. If this is the case, supporting the cloud provider/HV reboot API is good enough.
Is it the case?
In some cases, user would like to restart OSv instance and start fresh, including running a init sequence and reading cloud-init.
Once done, instance will have zero info of its past life.
This can also be done using the HV but this method have disadvantages on the cloud:
The text was updated successfully, but these errors were encountered: