anza-xyz / agave

Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.
https://www.anza.xyz/
Apache License 2.0
322 stars 144 forks source link

After upgrading to V1.18.15, it takes a long time to respond to requests for data information #1766

Open cielu opened 3 months ago

cielu commented 3 months ago

Problem

I upgraded my rpc node to v1.18.15 today, and the synchronization has been completed. However, when I request: getTransaction, the response is very slow and it takes 5sec ~ 20 seconds to wait.

This problem seems to occur only in non-full nodes, and the signature requested was a long time ago. It should return null, but it has been responding.

Proposed Solution

response null:

{"jsonrpc":"2.0","result": null,"id":1}

cielu commented 3 months ago
image

The first request is for historical data from a long time ago, and the second request is for the most recent signature.

avinashbo commented 3 months ago

@cielu Is there any associated spike in CPU usage noticed? I am looking at a similar problem

cielu commented 2 months ago

@avinashbo There should be some impact, but I'm not sure. My CPU is EPYC 7502, which is only 2.5GHz. I think this is a problem. We are preparing to replace this server, but we don't know what configuration is more suitable. We have already changed and configured multiple servers, and I feel that the read and write speed of Nvme can't keep up.

cielu commented 2 months ago

@avinashbo But I think there must be something wrong with this v1.18.15 version, because I don't have these problems when I use v1.17.34, but the synchronization speed is not that fast