mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 14:10:25 +03:00
Remove Connections from SysProcess struct (#11373)
The connections info of the processes takes up a huge amount of space, and is not important for adding any useful health checks. Removing it will significantly reduce the size of the subnet health report.
This commit is contained in:
+1
-1
@@ -202,7 +202,7 @@ func getLocalProcInfo(ctx context.Context, r *http.Request) madmin.ServerProcInf
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errProcInfo("conns", err)
|
return errProcInfo("conns", err)
|
||||||
}
|
}
|
||||||
sysProc.Connections = conns
|
sysProc.ConnectionCount = len(conns)
|
||||||
|
|
||||||
createTime, err := proc.CreateTimeWithContext(ctx)
|
createTime, err := proc.CreateTimeWithContext(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ type SysProcess struct {
|
|||||||
CPUPercent float64 `json:"cpupercent,omitempty"`
|
CPUPercent float64 `json:"cpupercent,omitempty"`
|
||||||
Children []int32 `json:"children,omitempty"`
|
Children []int32 `json:"children,omitempty"`
|
||||||
CmdLine string `json:"cmd,omitempty"`
|
CmdLine string `json:"cmd,omitempty"`
|
||||||
Connections []nethw.ConnectionStat `json:"connections,omitempty"`
|
ConnectionCount int `json:"connection_count,omitempty"`
|
||||||
CreateTime int64 `json:"createtime,omitempty"`
|
CreateTime int64 `json:"createtime,omitempty"`
|
||||||
Cwd string `json:"cwd,omitempty"`
|
Cwd string `json:"cwd,omitempty"`
|
||||||
Exe string `json:"exe,omitempty"`
|
Exe string `json:"exe,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user