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

Update lateny report output message #426

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

hwware
Copy link
Member

@hwware hwware commented May 2, 2024

  1. Update "Redis" to "Valkey"
  2. Remove Dave dialog, and update to normal output message

I think this should be not break change.

Signed-off-by: hwware <wen.hui.ware@gmail.com>
Copy link

codecov bot commented May 2, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 68.43%. Comparing base (443d80f) to head (d555d30).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #426      +/-   ##
============================================
- Coverage     68.44%   68.43%   -0.01%     
============================================
  Files           109      109              
  Lines         61671    61671              
============================================
- Hits          42212    42206       -6     
- Misses        19459    19465       +6     
Files Coverage Δ
src/latency.c 81.49% <42.85%> (ø)

... and 13 files with indirect coverage changes

Copy link
Member

@enjoy-binbin enjoy-binbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yean, it look like a minor changes

Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little sad to remove the Dave dialog. It's a reference to the film 2001 A Space Odyssey. Have you watched it? It's a brilliant film from early time, 1969 IIRC. The computer talks to the crewman Dave on a space ship.

The film is producted in 1969 https://en.wikipedia.org/wiki/2001:_A_Space_Odyssey

}

if (advise_slowlog_tuning) {
report = sdscatprintf(report,"- Your current Slow Log configuration only logs events that are slower than your configured latency monitor threshold. Please use 'CONFIG SET slowlog-log-slower-than %llu'.\n", (unsigned long long)server.latency_monitor_threshold*1000);
}

if (advise_slowlog_inspect) {
report = sdscat(report,"- Check your Slow Log to understand what are the commands you are running which are too slow to execute. Please check https://redis.io/commands/slowlog for more information.\n");
report = sdscat(report,"- Check your Slow Log to understand what are the commands you are running which are too slow to execute. Please check https://valkey.io/commands/slowlog/ for more information.\n");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command pages are not dirs so I think a trailing slash makes it a broken link.

Suggested change
report = sdscat(report,"- Check your Slow Log to understand what are the commands you are running which are too slow to execute. Please check https://valkey.io/commands/slowlog/ for more information.\n");
report = sdscat(report,"- Check your Slow Log to understand what are the commands you are running which are too slow to execute. Please check https://valkey.io/commands/slowlog for more information.\n");

@enjoy-binbin
Copy link
Member

I'm a little sad to remove the Dave dialog. It's a reference to the film 2001 A Space Odyssey. Have you watched it? It's a brilliant film from early time, 1969 IIRC. The computer talks to the crewman Dave on a space ship.

wow, i haven't watched it, don't know the history. I did a search and it looks like a very exciting film. Can't imagine a movie this old, i am going to add it to my list and then try to find time to take a look.

If that's the case, I think maybe we can keep it? It seems that the modification is not particularly important, but it seems to be very memorable.

@zuiderkwast
Copy link
Contributor

https://youtu.be/Mme2Aya_6Bc

https://youtu.be/twTESNFc1ww

@zuiderkwast
Copy link
Contributor

@madolson Let's keep the Dave dialog?

@hwware
Copy link
Member Author

hwware commented May 7, 2024

I'm a little sad to remove the Dave dialog. It's a reference to the film 2001 A Space Odyssey. Have you watched it? It's a brilliant film from early time, 1969 IIRC. The computer talks to the crewman Dave on a space ship.

Sorry, I never see this movie. Now i know where Dave comes from, I am just curious why Dave here.
@madolson DO you think we should keep Dave here?

@hwware hwware requested a review from madolson May 7, 2024 14:00
@madolson
Copy link
Member

madolson commented May 8, 2024

I have had more than one conversation with someone asking who "dave" was, and then I had to explain to them how it's a reference to 2001 a space odyssey, and then they told me they have never heard of the movie. Some of them are also weird, like "I honestly think you ought to sit down calmly, take a stress pill, and think things over". I think someone might take that the wrong way.

"I'm sorry, Dave, I can't do that." Is the iconic line, it's also on an error path since latency is disabled. So I guess my vote is let's just keep that one and delete all the other references.

Copy link
Member

@madolson madolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor grammar fixes, and some of these events no longer seem relevant.

} else if (eventnum > 0 && advices == 0) {
report = sdscat(report,"\nWhile there are latency events logged, I'm not able to suggest any easy fix. Please use the Redis community to get some help, providing this report in your help request.\n");
report = sdscat(report,"\nThere are latency events logged, they are not easy fix. Please get some help from Valkey community, providing this report in your help request.\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
report = sdscat(report,"\nThere are latency events logged, they are not easy fix. Please get some help from Valkey community, providing this report in your help request.\n");
report = sdscat(report,"\nThere are latency events logged, they are not easy to fix. Please get some help from Valkey community, providing this report in your help request.\n");

} else {
/* Add all the suggestions accumulated so far. */

/* Better VM. */
report = sdscat(report,"\nI have a few advices for you:\n\n");
report = sdscat(report,"\nHere are a few advices for you:\n\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
report = sdscat(report,"\nHere are a few advices for you:\n\n");
report = sdscat(report,"\nHere is some advice for you:\n\n");

@@ -437,19 +437,19 @@ sds createLatencyReport(void) {
}

if (advise_hz && server.hz < 100) {
report = sdscat(report,"- In order to make the Redis keys expiring process more incremental, try to set the 'hz' configuration parameter to 100 using 'CONFIG SET hz 100'.\n");
report = sdscat(report,"- In order to make the Valkey keys expiring process more incremental, try to set the 'hz' configuration parameter to 100 using 'CONFIG SET hz 100'.\n");
}

if (advise_large_objects) {
report = sdscat(report,"- Deleting, expiring or evicting (because of maxmemory policy) large objects is a blocking operation. If you have very large objects that are often deleted, expired, or evicted, try to fragment those objects into multiple smaller objects.\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe pin for a second issue, we should consider updating this to reference to include lazy deletion.

}

if (advise_large_objects) {
report = sdscat(report,"- Deleting, expiring or evicting (because of maxmemory policy) large objects is a blocking operation. If you have very large objects that are often deleted, expired, or evicted, try to fragment those objects into multiple smaller objects.\n");
}

if (advise_mass_eviction) {
report = sdscat(report,"- Sudden changes to the 'maxmemory' setting via 'CONFIG SET', or allocation of large objects via sets or sorted sets intersections, STORE option of SORT, Redis Cluster large keys migrations (RESTORE command), may create sudden memory pressure forcing the server to block trying to evict keys. \n");
report = sdscat(report,"- Sudden changes to the 'maxmemory' setting via 'CONFIG SET', or allocation of large objects via sets or sorted sets intersections, STORE option of SORT, Valkey Cluster large keys migrations (RESTORE command), may create sudden memory pressure forcing the server to block trying to evict keys. \n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe pin for a second issue. We incrementally do mass evictions now, so I'm not sure this is much of an issue anymore.

@zuiderkwast
Copy link
Contributor

I'm fine with removing most of these, if the rest of you want that.

"I honestly think you ought to sit down calmly, take a stress pill, and think things over"

This one is in the 2nd of the two youtube videos I posted above.

@madolson
Copy link
Member

This one is in the 2nd of the two youtube videos I posted above.

I had seen the movie and had no recollection of that phrase 😓. If other people do think it's popular, I would be fine keeping it, I just do think it's much less more recognizable than the "I can't do that" line.

@zuiderkwast
Copy link
Contributor

Can we agree on keeping only one "i can't do that dave" and delete the others? (👍 = yes)

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.

None yet

4 participants