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

Improve the description of Perflog in default config file #378

Merged
merged 5 commits into from
Oct 22, 2021

Conversation

caipengbo
Copy link
Contributor

I added profiling-sample-commands config item and some comments about PERFLOG in the default config file.

This will help users understand how to use PERFLOG to troubleshoot their performance problems.

I also checked the profiling- samp-commands in code logic, which will returns an error if a command is not supported by Kvrocks. And fixed a small bug about stats_dump_period_sec config item.

@git-hulk
Copy link
Member

@caipengbo really good to make the perflog description more clearly. The unit test failure should be caused by the empty perf command string which we didn't ignore.

@caipengbo
Copy link
Contributor Author

The reason about UT failed is that I forgot to call PopulateCommands before calling Redis::IsCommandExists(), causing original_commands to be empty.

git-hulk
git-hulk previously approved these changes Oct 22, 2021
git-hulk
git-hulk previously approved these changes Oct 22, 2021
kvrocks.conf Outdated Show resolved Hide resolved
@git-hulk git-hulk merged commit d2c0afb into apache:unstable Oct 22, 2021
ShooterIT pushed a commit to ShooterIT/kvrocks that referenced this pull request Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants