Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
56461: util, server: Add GetCgroupCPU, use it to reflect cpu usage r=knz a=itsbilal Enhances the util/cgroups package to also support getting CPU limits from the process' current cgroup. The cpu limit / share for the current cgroup is denoted in two separate variables: the cpu period, and the cpu quota. When (quota / period) = numCPUs, this cgroup has access to all the CPUs on the system. This PR also updates SampleEnvironment to call this method and adjust the cpu usage % accordingly. Release note (bug fix): Improve accuracy of reported CPU usage when running in containers. 56786: build: upgrade to Go 1.15.5 r=jlinder a=otan Pick up a security vulnerability. * [x] Adjust the Pebble tests to run in new version. * [x] Adjust version in Docker image ([source](./builder/Dockerfile#L199-L200)). * [x] Rebuild and push the Docker image (following [Basic Process](#basic-process)) * [x] Bump the version in `builder.sh` accordingly ([source](./builder.sh#L6)). * [x] Bump the version in `go-version-check.sh` ([source](./go-version-check.sh)), unless bumping to a new patch release. * [x] Bump the go version in `go.mod`. You may also need to rerun `make vendor_rebuild` if vendoring has changed. * [x] Bump the default installed version of Go in `bootstrap-debian.sh` ([source](./bootstrap/bootstrap-debian.sh#L40-42)). * [x] Replace other mentions of the older version of go (grep for `golang:<old_version>` and `go<old_version>`). * [ ] Update the `builder.dockerImage` parameter in the TeamCity [`Cockroach`](https://teamcity.cockroachdb.com/admin/editProject.html?projectId=Cockroach&tab=projectParams) and [`Internal`](https://teamcity.cockroachdb.com/admin/editProject.html?projectId=Internal&tab=projectParams) projects. Release note: None Co-authored-by: Bilal Akhtar <[email protected]> Co-authored-by: Oliver Tan <[email protected]>
- Loading branch information