-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
scheduler pending commands is too much and Tikv server timeout #9283
Comments
There is also one scheduer worker cpu 100% continuously for the tikv . |
@Hanyu2015 thanks for the report, could you please paste the monitor metrics of the busy tikv server? also, please describe the topology layout of your cluster. |
3 pd, 3 tidb and 18 tikv. which monitor metrics do you need? @eurekaka |
@Hanyu2015 Could you please export your grafana board of TiKV to a PDF and attach it here so we can check if it is a problem of hot regions. |
@hicqu please take a look at this problem. |
@hicqu FYI |
I find that sql cannot run on the table sessions who causes this issue, and the error log is 'ERROR 9002 (HY000): TIKV server timeout[try again later]'. The tikv in which scheduler pending commands is too much and growing continuously has one scheduler worker cpu 100% continuously, but other 3 scheduler worker cpu is idle. I think in this tikv much command waits the busy cpu instand of running on the idle cpu. Also In tidb.log, there is error log like 'send tikv request error: rpc error: code = DeadlineExceeded desc = context deadline exceeded'. |
|
@jackysp PTAL |
In the tidb log I upload, conflictTS=18446744073709551615, which is far greater than startTS. |
Thanks for your report, @Hanyu2015 ! |
@Hanyu2015 Could you show me the result of |
v2.1.2-1-g8ba8096 @shenli |
Could you send us the log of all the tidb-servers? We want to see the logs between 2019-02-28 07:00 ~ 08:00. |
Hi @Hanyu2015 ! There is one thing here to confirm, do you only use SQL to read and write data, and do not bypass TiDB? That is, there is no direct use of TiKV's kv api to read and write. |
only SQL used. @jackysp |
Many thanks @Hanyu2015 ! |
Got it! |
@Hanyu2015 hi, current log file seems be generated by |
The issue has not been updated for too long, so I will close it. If there are any updates, you can reopen it. |
Only one tikv's scheduler pending commands is too much and it's growing continuously, and then data cannot be inserted into database. After I kill this tikv process, the same thing happened on another tikv. When I execute 'select ... from ..', for some table, there is error 'Tikv server timeout', but the other table doesn't.
The text was updated successfully, but these errors were encountered: