Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using PD's ScanRegions API to resolve pd cpu spike #2708

Open
shiyuhang0 opened this issue May 24, 2023 · 0 comments
Open

Using PD's ScanRegions API to resolve pd cpu spike #2708

shiyuhang0 opened this issue May 24, 2023 · 0 comments

Comments

@shiyuhang0
Copy link
Member

shiyuhang0 commented May 24, 2023

Enhancement

This enhancement has been proposed in #959. This issue explains why we want to do it and what it can resolve.

One user reported that they found the pd CPU spike with large data in TiSpark v3.2.1.

  1. The metric shows that a large number of getrgion RPC are requested in PD.
  2. The metric shows that the pd CPU is high only at the begin 10 min of spark job.

According to the reports, I think TiSpark may call too much getrgion in the driver when it split the region task. We can use ScanRegions in driver to reduce to number of RPC call.

TODO:Test the effect of this enhancement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant