storj/pkg/process
Jessica Grebenschikov e19e3c1101 pkg/process:
Now that we are trying to identify the root cause of the satellite load limitations (i.e. currently the satellite has a max ability of 400 rps for uploads and we need this to be higher), we are using the golang diagnostic tools to collect insight into what the bottlenecks are.  We currently have a debug endpoint to gather some cpu and mem data, but it could be useful to have continuous profiling. GCP stackdriver has support for continuous profiling so lets set that up and see if it is helpful to gather more data.

This PR adds support for [GCP continuous profiler](https://cloud.google.com/profiler) which allows enabling continuous cpu/mem profiling and the stats are sent to stackdriver in google cloud console.

To enable the continuous profiling for a storj component, do the following:
- prereq: the workload must be running in GKE and have Stackdriver Profiling IAM role permissions
- provide the config flag `debug.profilename` in the config.yaml file for the workload (i.e. satellite api process, etc). The profilename should be the workload name, for example "satellite-api".
- once the above config flag is provided, the profiler will be initialized and profiling stats will automatically be sent to GCP project where the workload is running and viewable in the Stackdriver Profile page in the console

The current implementation assumes the workload is running in GKE, however if we find if useful we can add support to enable this from anywhere. But for simplicity, its configured this way assuming the main goal is to enable in production systems.

Change-Id: Ibf8ebe2df7bf06fdd4951ee6a1e48854dd36ad47
2020-02-25 09:04:23 -08:00
..
config.go common: separate repository 2019-12-27 14:11:15 +02:00
debug.go all: use monkit v3 2020-02-05 23:53:17 +00:00
exec_conf_test.go common: separate repository 2019-12-27 14:11:15 +02:00
exec_conf.go pkg/process: 2020-02-25 09:04:23 -08:00
exec.go private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
logging.go cmd/storagenode-updater, pkg/process: Fix logging timestamp 2019-12-11 10:05:48 +00:00
metrics.go satellite/api;repair: Have monkit pick the hostname as it's unique identifier 2020-02-19 17:11:09 +00:00
profiler.go pkg/process: 2020-02-25 09:04:23 -08:00
rand.go Initialize math/rand default source (#3552) 2019-11-12 10:03:41 -07:00