# How to limit grpc send chunk size?

**URL:** <https://forums.percona.com/t/how-to-limit-grpc-send-chunk-size/37178>\
**Category:** Percona Monitoring and Management (PMM)\
**Tags:** pmm\
**Created:** [March 14, 2025, 5:18am UTC](https://forums.percona.com/t/how-to-limit-grpc-send-chunk-size/37178 "2025-03-14T05:18:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qjarn9](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/qjarn9/32/19833_2.png) [@qjarn9](https://forums.percona.com/u/qjarn9)\
**Post date:** [March 14, 2025, 5:18am UTC](https://forums.percona.com/t/how-to-limit-grpc-send-chunk-size/37178/1 "2025-03-14T05:18:25Z")

</div>

## Description:

I have deployed PMM on kubernetes cluster using helm chart and also using Nginx as an ingress controller.  
I see this kind of error every now and then in Nginx logs

```auto
2025/03/14 02:10:00 [error] 21683#21683: *66801000 client intended to send too large chunked body: 104868960 bytes while sending request to upstream, client: <kubernetes-nginx-pod-ip>, server: mypmm.com, request: "POST /agent.Agent/Connect HTTP/2.0", upstream: "grpcs://<kubernetes-nginx-pod-ip>:443", host: "mypmm.com"

```

at first, I didn’t specified `nginx.kubernetes.io/proxy-body-size` so I thought this could solve this problem, after I increased `nginx.kubernetes.io/proxy-body-size` to `3m`(by that time the bytes in the error log was 1.04mb) then log change to 3.04mb is too large chunked body.  
So I increased it again to 100m then I see current log which is `client intended to send too large chunked body: 104868960 bytes while sending request to upstream`

## Steps to Reproduce:

Deploy PMM helm chart on the kubernetes that using Nginx as an ingress controller

## Version:

helm chart: 1.3.17  
application: 2.43.1

## Logs:

Nginx pod:

```auto
2025/03/14 02:10:00 [error] 21683#21683: *66801000 client intended to send too large chunked body: 104868960 bytes while sending request to upstream, client: <kubernetes-nginx-pod-ip>, server: mypmm.com, request: "POST /agent.Agent/Connect HTTP/2.0", upstream: "grpcs://<kubernetes-nginx-pod-ip>:443", host: "mypmm.com"

```

## Expected Result:

sending request without chunk size error

## Actual Result:

chunk size always exceeds the limit despite increasing `nginx.kuberenetes.io/proxy-body-size`

## Additional Information:
