diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-09-19 11:39:51 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-09-20 14:53:40 +0200 |
| commit | a6a09fb2a09beadffc216bb4e1f8070226356ba1 (patch) | |
| tree | 8866e5bb42b503ced64c6c5947d8490aca389d96 /vm/gvisor | |
| parent | 6c662d569b27b446cce09529636f0eee8b4dc02e (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.go | 4 |
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 |
