Repository navigation
Add user-level settings min_free_diskspace_bytes_to_throw_insert and min_free_diskspace_ratio_to_throw_insert - #69755
Conversation
…isk_ratio_to_throw_insert to stop inserts when disk is near full.
|
This is an automated comment for commit b0c1914 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
61db2e0 to
d0677e2
Compare
|
@yariks5s thanks for adding test tag, I think this should be ok now even though one build got cancelled for some reason |
699ef4c to
d91a419
Compare
|
hey @yariks5s thank you very much for the detailed review and for insisting on the CI/CD -- for some reason it keeps cancelling the |
|
Hi! Sorry for the delay, binary_tidy was broken some time ago. I will take a look at the code once more, and if it's OK, we will merge it soon. |
bff395b to
4530957
Compare
yariks5s
left a comment
There was a problem hiding this comment.
LGTM, thank you!🙂 Let's wait for the tests
|
|
||
| Default value: 0.0 | ||
|
|
||
| Note that if both `min_free_disk_ratio_to_perform_insert` and `min_free_disk_bytes_to_perform_insert` are specified, ClickHouse will count on the value that will allow to perform inserts on a bigger amount of free memory. |
There was a problem hiding this comment.
I guess the comment in l. 1095 also makes sense to have for min_free_disk_bytes_to_perform_insert, i.e. l. 1081.
There was a problem hiding this comment.
Yes this makes sense, will make a PR soon.
Resolves #65951
Added two new user-level settings:
min_free_disk_bytes_to_throw_insertmin_free_disk_ratio_to_throw_insertThese prevent inserts from occurring if disk is close to full, but do not affect operations that need to write temporary data to disk. See #65951 discussion to better understand why this is useful.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Added user-level settings
min_free_disk_bytes_to_throw_insertandmin_free_disk_ratio_to_throw_insertto prevent insertions on disks that are almost full.Documentation entry for user-facing changes
CI Settings (Only check the boxes if you know what you are doing):