Skip to content

Commit

Permalink
docs: note for GKE deployment
Browse files Browse the repository at this point in the history
This change contains a note for deployment in GKE. If no configuration
is provided the JVM in CoS detects only 1 CPU/Core, which restrain the
number of channels resulting in performance loss.
  • Loading branch information
rahulKQL committed Jan 31, 2020
1 parent 7b896dd commit 78c5b04
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Expand Up @@ -345,6 +345,23 @@ Add the following to your project's pom.xml.
</dependencyManagement>
```

## Container Deployment

While deploying this client in [Google Kubernetes Engine(GKE)](https://cloud.google.com/kubernetes-engine) with [CoS](https://cloud.google.com/container-optimized-os/docs/). Please make sure to provide CPU configuration in your deployment file. If `resources` are not configured than JVM would detect only 1 CPU, which affects the channel creation, resulting in performance degradation.

For example when deploying this client on a cluster with 8 CPU nodes:
```yaml
appVersion: v1
...
spec:
...
container:
resources:
requests:
cpu: "1" # Here 1 represents 100% of single node CPUs(i.e. 8) whereas other than 1 represents the number of CPU it would use from a node.
```
see [Assign CPU Resources to Containers](https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/#specify-a-cpu-request-and-a-cpu-limit) for more information.

## Troubleshooting

To get help, follow the instructions in the [shared Troubleshooting
Expand Down

0 comments on commit 78c5b04

Please sign in to comment.