Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containerd MaxContainerLogLineSize misconfig #14

Closed
lingdie opened this issue Jun 11, 2024 · 3 comments
Closed

Containerd MaxContainerLogLineSize misconfig #14

lingdie opened this issue Jun 11, 2024 · 3 comments

Comments

@lingdie
Copy link
Contributor

lingdie commented Jun 11, 2024

max_container_log_line_size = -1

Should set to a positive int.

@muicoder
Copy link
Contributor

@lingdie
Copy link
Contributor Author

lingdie commented Jun 11, 2024

#15

@lingdie
Copy link
Contributor Author

lingdie commented Jun 11, 2024

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)
	}
}

@lingdie lingdie closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants