diff --git a/README.md b/README.md index 2b2ba4e..34a4513 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ cannot use the available CPU time to perform computing operations. The application must be informed that despite several CPUs only a part (limit) of the available computing time is available. As this is a Golang application, this can be implemented using `GOMAXPROCS`. The following example is one way -of defining `GOMAXPROCS` automatically based on the defined CPU limit like `100m`. Please keep in mind, that the CFS +of defining `GOMAXPROCS` automatically based on the defined CPU limit like `1000m`. Please keep in mind, that the CFS rate of `100ms` - default on each kubernetes node, is also very important to avoid CPU throttling. Further information about this topic can be found [here](https://kanishk.io/posts/cpu-throttling-in-containerized-go-apps/). @@ -166,6 +166,8 @@ Further information about this topic can be found [here](https://kanishk.io/post > [!NOTE] > The environment variable `GOMAXPROCS` is set automatically, when a CPU limit is defined. An explicit configuration is > not anymore required. +> +> Please note that a CPU limit < `1000m` can also lead to CPU throttling. Please read the linked documentation carefully. ```yaml deployment: @@ -179,7 +181,7 @@ deployment: resources: limits: - cpu: 100m + cpu: 1000m memory: 512Mi requests: cpu: 100m