# High GRV proxy latency

**URL:** <https://forums.foundationdb.org/t/high-grv-proxy-latency/4390>\
**Category:** Using FoundationDB\
**Tags:** performance\
**Created:** [March 19, 2024, 10:49am UTC](https://forums.foundationdb.org/t/high-grv-proxy-latency/4390 "2024-03-19T10:49:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yiyuanliu](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/yiyuanliu/32/1593_2.png) [@yiyuanliu](https://forums.foundationdb.org/u/yiyuanliu)\
**Post date:** [March 19, 2024, 10:49am UTC](https://forums.foundationdb.org/t/high-grv-proxy-latency/4390/1 "2024-03-19T10:49:42Z")

</div>

Recently, we have observed high GRV proxy latency in one of our clusters. Average GRV proxy latency is about 300us, and maximum latency reaching 50ms. After checking the logs of the GRV proxy servers, we found the following types of warning messages:

- LargePacketSent/LargePacketReceived approximately once per second
- GrvProxyRateLeaseExpired once every 5 seconds

Our FoundationDB version is `7.1.31`. The code stack corresponding to LargePacketSent is as follows:

 ![20240319-184503](https://global.discourse-cdn.com/foundationdb/original/2X/6/6262ccbea5666488c3d47c706e11ae52fdd1f060.jpeg)

Does this mean that there is an issue with our network, and how could we further troubleshoot this problem? We have encountered high GRV proxy latency before, and at that time, we chose to restart all servers, after which the latency returned to normal. However, after running for a while, the latency of the GRV proxy gradually increased again.

Thanks!

---

<div class="post-metadata">

**Author:** ![yiyuanliu](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/yiyuanliu/32/1593_2.png) [@yiyuanliu](https://forums.foundationdb.org/u/yiyuanliu)\
**Post date:** [March 19, 2024, 11:31am UTC](https://forums.foundationdb.org/t/high-grv-proxy-latency/4390/2 "2024-03-19T11:31:09Z")

</div>

Noticed that there is a bug fix related to GRV proxy latency in version 7.1.34 [(10627)](https://github.com/apple/foundationdb/pull/10627). Maybe this can solve our problem. 🧐

---

<div class="post-metadata">

**Author:** ![jzhou](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/jzhou/32/445_2.png) [@jzhou](https://forums.foundationdb.org/u/jzhou)\
**Post date:** [March 21, 2024, 10:09pm UTC](https://forums.foundationdb.org/t/high-grv-proxy-latency/4390/3 "2024-03-21T22:09:12Z")

</div>

Yes. That almost certainly will fix your problem. The large packet you saw is probably the response from Ratekeeper, which contains too many staled storage servers. As a result, GRV proxy spent more time processing the packet, causing high GRV latency.
