You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent/src/main.rs
+5
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,10 @@ struct Opts {
70
70
/// optionally `K8S_POD_IP_FOR_DEEPFLOW` can be set to override ip address.
71
71
#[clap(long)]
72
72
sidecar:bool,
73
+
74
+
/// Disable cgroups, deepflow-agent will default to checking the CPU and memory resource usage in a loop every 10 seconds to prevent resource usage from exceeding limits.
// fixme: Linux after kernel version 2.6.24 can use cgroups
585
588
info!("don't initialize cgroups controller, because kernel version < 3 or agent is in Windows");
589
+
}elseif disable_cgroups {
590
+
info!("don't initialize cgroups controller, disable cgroups, deepflow-agent will default to checking the CPU and memory resource usage in a loop every 10 seconds to prevent resource usage from exceeding limits");
0 commit comments