mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 03:36:48 +00:00
feat(instances): auto converge is on by default for a live migration
A VM that changes its memory faster than the network carries it does not finish a live migration without auto converge (measured: a guest rewriting about 1.2 GB/s did not finish in 90 s over an 8.5 Gbit/s link, and finished in 16-18 s with it). Auto converge only slows the VM's CPUs while the migration cannot keep up, so a calm VM is not affected. The migrate form ticks it for a running VM. The API already documented it as on by default but read a left-out option as off; the serializer now has the defaults (auto converge on, compress and unsafe off) for JSON and form-encoded requests, and the schema shows them.
This commit is contained in:
parent
043c24a208
commit
98bb6ebdb5
3 changed files with 69 additions and 1 deletions
|
|
@ -91,6 +91,10 @@ class CreateInstanceSerializer(serializers.ModelSerializer):
|
|||
class MigrateSerializer(serializers.ModelSerializer):
|
||||
instance = Instance.objects.all().prefetch_related("userinstance_set")
|
||||
live = serializers.BooleanField(initial=True)
|
||||
# left out, also from a form-encoded request: auto converge on
|
||||
autoconverge = serializers.BooleanField(default=True)
|
||||
compress = serializers.BooleanField(default=False)
|
||||
unsafe = serializers.BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
model = MigrateInstance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue