From 071b8d3eccb2fa474dd4e59e2973d120a9dabc0b Mon Sep 17 00:00:00 2001 From: Samuel Karp Date: Thu, 21 Mar 2019 16:14:47 -0700 Subject: [PATCH] runtime: default CPU count is 1 Related: https://github.com/firecracker-microvm/firecracker-containerd/issues/59 Signed-off-by: Samuel Karp --- docs/getting-started.md | 3 ++- docs/quickstart.md | 1 - runtime/README.md | 3 ++- runtime/config.go | 2 ++ runtime/config_test.go | 8 ++++++-- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 546506a38..c00abc046 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -222,7 +222,8 @@ configuration file has the following fields: * `root_drive` (optional) - A path where the root drive image file is located. A fully-qualified path is recommended. If left undefined, the runtime looks for a file named `/var/lib/firecracker-containerd/runtime/default-rootfs.img`. -* `cpu_count` (required) - The number of vCPUs to make available to a microVM. +* `cpu_count` (optional) - The number of vCPUs to make available to a microVM. + If left undefined, the default is 1. * `cpu_template` (required) - The Firecracker CPU emulation template. Supported values are "C3" and "T2". * `additional_drives` (unused) diff --git a/docs/quickstart.md b/docs/quickstart.md index 2107e2809..5853b3b6b 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -139,7 +139,6 @@ sudo mkdir -p /etc/containerd sudo tee -a /etc/containerd/firecracker-runtime.json <