-
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
lightning: replace precheck KvAvailable/KvCapacity < 10% with KvAvailable/KvUsedSize < 10% #28232
Comments
@IANTHEREAL PTAL |
The worst case is that local import will fail, but you can skip the check. But if we change, what's the worst case? Would it destroy the TiKV cluster? @cyliu0 |
No, I don't think so. Because I believe the current check item is not reasonable since the KvCapacity represents the whole disk/partition which the kv dir located. For example, if we have a 1TB disk, the kv dir is 1GB and the left space is 100GB, we can't import anything even if it's hundreds of KB with lightning based on the current check item. I do believe kv should be working properly in this scenario |
I know your example, but you don't seem to understand my point. I mean, are there cases worse after this modification? what's prechck |
No, it can't. A better version should be |
yes, I think it's better @Little-Wallace what about you? |
We do not want to import data to TiKV until disk is full. It will make tikv can not start again. |
The purpose is the same, can you describe how to do now, such as the example I gave above, how to prevent it? |
The used of TiKV disk can not be be accurately estimated before they are imported to TiKV. |
So this is not estimated size? @Little-Wallace @IANTHEREAL
|
@cyliu0 what we need is just an estimated size. It is not true. |
Feature Request
Is your feature request related to a problem? Please describe:
Currently the lightning precheck "KvAvailable/KvCapacity < 10%" will lead to precheck failure when the tikv disks have some other data.
Describe the feature you'd like:
Replace the lightning precheck item KvAvailable/KvCapacity < 10% with KvAvailable/KvUsedSize < 10%. This seems to be more reasonable.
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: