Description
As part of addressing MB-47591 in 7.1.1, the services need to respect the value of the GOMAXPROCS env var if specified. FTS does this in a simple way here, though it seems a bit unnecessary as according to https://pkg.go.dev/runtime#GOMAXPROCS, the GOMAXPROCS default is runtime.NumCPU anyway. Query does it in a slightly more complicated fashion here, but it looks like it also works.
On first look at the code, it appears eventing-producer process already honors whatever is set in GOMAXPROCS. The part that's not very clear is how CPU utilisation of eventing-consumer processes (as many as number of deployed functions) can be controlled. It appears, linux cgroup itself should take care of it. But we should analyse if there are any implications. Finally, eventing memory quota should be set as MIN(eventing-quota, cgroup_mem_limit)