aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gvisor
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/gvisor
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/gvisor')
-rw-r--r--vm/gvisor/gvisor.go4
1 files changed, 2 insertions, 2 deletions
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