labring-actions / runtime

Kubernetes cluster-image for sealos
Apache License 2.0
14 stars 11 forks source link

Containerd `MaxContainerLogLineSize` misconfig #14

Closed lingdie closed 4 months ago

lingdie commented 5 months ago

https://github.com/labring-actions/runtime/blob/443cc6f4625a6a505586dba5e90a71adec275639/containerd/etc/config.toml.tmpl#L28

Should set to a positive int.

muicoder commented 5 months ago

https://github.com/containerd/containerd/blob/release/1.7/docs/cri/config.md?plain=1#L172

lingdie commented 5 months ago

https://github.com/labring-actions/runtime/pull/15

lingdie commented 5 months ago

you can use codes below for test.

package main

import (
    "bytes"
    "flag"
    "fmt"
    "time"
)

var outputBytes int

func main() {
    flag.IntVar(&outputBytes, "n", 1000, "number of bytes to output")
    flag.Parse()
    output := bytes.Buffer{}
    for i := 0; i < outputBytes; i++ {
        output.Write([]byte{'a'})
    }
    for {
        fmt.Printf("%v", output)
        time.Sleep(1 * time.Second)
    }
}