Skip to content

Adjust the log level of some logs in the cluster#633

Merged
enjoy-binbin merged 6 commits into
valkey-io:unstablefrom
enjoy-binbin:adjust_loglevel
Jun 18, 2024
Merged

Adjust the log level of some logs in the cluster#633
enjoy-binbin merged 6 commits into
valkey-io:unstablefrom
enjoy-binbin:adjust_loglevel

Conversation

@enjoy-binbin

@enjoy-binbin enjoy-binbin commented Jun 12, 2024

Copy link
Copy Markdown
Member

I think the log of pfail status changes will be very useful.
The other parts were scanned and found that it can be modified.

Changes:

  1. Changing pfail status releated logs from VERBOSE to NOTICE.
  2. Changing configEpoch collision log from VERBOSE(warning) to NOTICE.
  3. Changing some logs from DEBUG to NOTICE.

I think the log of pfail status changes will be very useful.
The other parts were scanned and found that it can be modified.

Signed-off-by: Binbin <binloveplay1314@qq.com>
@codecov

codecov Bot commented Jun 12, 2024

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.18%. Comparing base (5d9d418) to head (b045e78).
⚠️ Report is 951 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #633      +/-   ##
============================================
- Coverage     70.19%   70.18%   -0.01%     
============================================
  Files           110      110              
  Lines         60049    60077      +28     
============================================
+ Hits          42149    42168      +19     
- Misses        17900    17909       +9     
Files with missing lines Coverage Δ
src/cluster_legacy.c 85.92% <100.00%> (+0.30%) ⬆️

... and 20 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@PingXie PingXie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @enjoy-binbin! I like these changes. My only question is around when to use NOTICE and when to use WARNING. I would like to see some discussion/clarification on them.

Comment thread src/cluster_legacy.c Outdated
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
@enjoy-binbin

Copy link
Copy Markdown
Member Author

My only question is around when to use NOTICE and when to use WARNING. I would like to see some discussion/clarification on them.

i don't have one, maybe madolson has more insight.
currently I am based on experience

Comment thread src/cluster_legacy.c Outdated
@madolson

madolson commented Jun 14, 2024

Copy link
Copy Markdown
Member

i don't have one, maybe madolson has more insight. currently I am based on experience

The previous Redis decision was that LL_WARNING should be for system failures that operators should be notified about and can take action on but shouldn't halt the system (like a serverPanic). LL_NOTICE should be notifications that the average user might want to know about when looking back at the log to understand why something happened (replication disconnects, failovers, elections, etc).

Comment thread src/cluster_legacy.c Outdated
Signed-off-by: Binbin <binloveplay1314@qq.com>
Comment thread src/cluster_legacy.c Outdated
enjoy-binbin and others added 2 commits June 17, 2024 11:50
Signed-off-by: Binbin <binloveplay1314@qq.com>

Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
@enjoy-binbin enjoy-binbin merged commit 495a121 into valkey-io:unstable Jun 18, 2024
@enjoy-binbin enjoy-binbin deleted the adjust_loglevel branch June 18, 2024 02:46
hpatro added a commit that referenced this pull request Jun 6, 2025
…2010)

After node failure detection/recovery and gossip by each primary, we log
about the failure detection/recovery at NOTICE level which can spam the
server and the behavior is quite expensive on ec2 burstable instance
types. I would prefer us rolling it back to VERBOSE level.

Change was introduced in #633

Signed-off-by: Harkrishn Patro <bunty.hari@gmail.com>
chzhoo pushed a commit to chzhoo/valkey that referenced this pull request Jun 12, 2025
…alkey-io#2010)

After node failure detection/recovery and gossip by each primary, we log
about the failure detection/recovery at NOTICE level which can spam the
server and the behavior is quite expensive on ec2 burstable instance
types. I would prefer us rolling it back to VERBOSE level.

Change was introduced in valkey-io#633

Signed-off-by: Harkrishn Patro <bunty.hari@gmail.com>
Signed-off-by: chzhoo <czawyx@163.com>
shanwan1 pushed a commit to shanwan1/valkey that referenced this pull request Jun 13, 2025
…alkey-io#2010)

After node failure detection/recovery and gossip by each primary, we log
about the failure detection/recovery at NOTICE level which can spam the
server and the behavior is quite expensive on ec2 burstable instance
types. I would prefer us rolling it back to VERBOSE level.

Change was introduced in valkey-io#633

Signed-off-by: Harkrishn Patro <bunty.hari@gmail.com>
Signed-off-by: shanwan1 <shanwan1@intel.com>
enjoy-binbin pushed a commit to enjoy-binbin/redis that referenced this pull request May 25, 2026
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.

4 participants