aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmm/vmm.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-09-19 11:39:51 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-09-20 14:53:40 +0200
commita6a09fb2a09beadffc216bb4e1f8070226356ba1 (patch)
tree8866e5bb42b503ced64c6c5947d8490aca389d96 /vm/vmm/vmm.go
parent6c662d569b27b446cce09529636f0eee8b4dc02e (diff)
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.
Diffstat (limited to 'vm/vmm/vmm.go')
-rw-r--r--vm/vmm/vmm.go4
1 files changed, 2 insertions, 2 deletions
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