From a6a09fb2a09beadffc216bb4e1f8070226356ba1 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 19 Sep 2018 11:39:51 +0200 Subject: vm/vmm: increase maximum number of VMs 8 is way too low. A modern beefy machine can host a hundred of VMs freely. Make the limit consistent for all of qemu/kvm/gvisor/vmm and set it to 128. --- vm/vmm/vmm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm/vmm') diff --git a/vm/vmm/vmm.go b/vm/vmm/vmm.go index 6e562396f..953bdcba4 100644 --- a/vm/vmm/vmm.go +++ b/vm/vmm/vmm.go @@ -69,8 +69,8 @@ func ctor(env *vmimpl.Env) (vmimpl.Pool, error) { if err := config.LoadData(env.Config, cfg); err != nil { return nil, fmt.Errorf("failed to parse vmm vm config: %v", err) } - if cfg.Count < 1 || cfg.Count > 8 { - return nil, fmt.Errorf("invalid config param count: %v, want [1-8]", cfg.Count) + if cfg.Count < 1 || cfg.Count > 128 { + return nil, fmt.Errorf("invalid config param count: %v, want [1-128]", cfg.Count) } if env.Debug { cfg.Count = 1 -- cgit mrf-deployment