jzelinskie / cobrautil

A collection of utility functions when using Cobra.
https://github.com/jzelinskie/cobrautil
Apache License 2.0
5 stars 10 forks source link

Add memory and CPU GOPROC limits as a RunE #56

Closed tstirrat15 closed 2 months ago

tstirrat15 commented 2 months ago

Description

See authzed/spicedb#2018 historical commits. I started implementing this in SpiceDB, but we decided that it has enough applications that it'd be worth upstreaming into cobrautil and reusing elsewhere.

Notes

Currently this hardcodes the limits. If desired, we could make them configurable in future work.

Changes