change default runtime for containerd-stress app

This fixes following warning message by changing the default runtime
to io.containerd.runc.v2 and does not require user to set the runtime
from command line anymore.

"WARN[2021-03-17T21:11:01.441207858Z] runtime v1 is deprecated since
containerd v1.4, consider using runtime v2"

Signed-off-by: Alakesh Haloi <alakeshh@amazon.com>
This commit is contained in:
Alakesh Haloi 2021-03-17 21:45:01 +00:00
parent 32a08f1a6a
commit 24602e7a98

View File

@ -147,7 +147,7 @@ func main() {
cli.StringFlag{
Name: "runtime",
Usage: "set the runtime to stress test",
Value: plugin.RuntimeLinuxV1,
Value: plugin.RuntimeRuncV2,
},
}
app.Before = func(context *cli.Context) error {