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/gvisor/gvisor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm/gvisor') diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go index 94081052a..1ad6dc154 100644 --- a/vm/gvisor/gvisor.go +++ b/vm/gvisor/gvisor.go @@ -55,8 +55,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 vm config: %v", err) } - if cfg.Count < 1 || cfg.Count > 1000 { - return nil, fmt.Errorf("invalid config param count: %v, want [1, 1000]", 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