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
reduce some memory of log driver #1877
base: main
Are you sure you want to change the base?
Conversation
625f211
to
8ec0626
Compare
nerdctl run -d busybox top
use this commit
the rss of nerdctl will reduce from 22192 to 3884 per container |
I think this should be like The binary path should be determined by |
nerdctl-logging-json-file this name when use auto complete will show two names nerdctl-logging-json-file and nerdctl,wich is not friendly. |
1 similar comment
nerdctl-logging-json-file this name when use auto complete will show two names nerdctl-logging-json-file and nerdctl,wich is not friendly. |
We can consider installing it to |
ok |
args := map[string]string{ | ||
logging.MagicArgv1: dataStore, | ||
} | ||
|
||
return cio.LogURIGenerator("binary", selfExe, args) | ||
nlogDriver, err := exec.LookPath("nlog-driver") | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the log driver in nerdctl can be retained
and it is compatible with containers created by older versions.
if err != nil {
logrus.WithError(err).Warnf("nlog-driver not found")
nlogDriver, err = os.Executable()
if err != nil {
return nil, err
}
}
9ba47c6
to
3e3c674
Compare
log-driver=json-file journald fluentd syslog ,I'm not sure whether to split or merge them together? |
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
Generating multiple binaries seems fine. @fahedouch WDYT? |
I am not sure if this idea is crazy, but wanted to check if it warrants merit. Is it possible to use 3rd party shim logger facility and install these binaries to nerdctl to use them. The run command can have an alias to these loggers. If the memory optimized binary is found use that; else use nerdctl as a logging binary |
No description provided.