Skip to content

Commit 3a2dd9b

Browse files
committed
Extract the process group data
The process group leader and id are used to throttle a group of processes. This change will allow `spokes-receive-pack` to be part of a process group, and be handled accordingly.
1 parent a33b61c commit 3a2dd9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/governor/conn.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ func readSockstat(environ []string) updateData {
205205
res.GitmonDelay = sockstat.Uint32Value(parts[1])
206206
case "command_id":
207207
res.CommandID = sockstat.StringValue(parts[1])
208+
case "group_id":
209+
res.GroupID = sockstat.StringValue(parts[1])
210+
case "group_leader":
211+
res.GroupLeader = sockstat.GetBool(parts[1])
208212
}
209213
}
210214

0 commit comments

Comments
 (0)