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

feat: Dynamically set disable_auto_compaction #2233

Closed

Conversation

chenbt-hz
Copy link
Collaborator

@chenbt-hz chenbt-hz commented Dec 22, 2023

这是一个测试的PR,辛苦各位大佬看下 思路是否正确。
目前仅能做到config set 动态配置的值,但实际测试动态修改后,auto_compaction策略没有变化。
只能在pika配置里修改,重启才能真正生效。应该是没执行到 Dynamically changeable through SetOptions() API,这个在哪里执行比较好?

about #2113

(请忽略2206相关的pr记录)

@chenbt-hz chenbt-hz marked this pull request as draft December 22, 2023 10:03
@chenbt-hz chenbt-hz changed the title Dynamically set disable_auto_compaction feat: Dynamically set disable_auto_compaction Dec 22, 2023
@chejinge chejinge marked this pull request as ready for review December 22, 2023 10:06
@AlexStocks AlexStocks added ☢️ Bug Something isn't working 3.5.3 3.5.2 core labels Dec 23, 2023
@chenbt-hz chenbt-hz closed this Dec 26, 2023
@chenbt-hz
Copy link
Collaborator Author

NOTE: Setting disable_auto_compactions to 'false' through SetOptions() API does NOT schedule a flush/compaction afterwards, and only changes the parameter itself within the column family option.

需要EnableAutoCompaction(),修改后重新提交

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

Successfully merging this pull request may close these issues.

2 participants