ClusterLabs / ClusterLabs/resource-agents
Galera reduce log spamminess (err -> info)
- Dominant language
- Shell
- Stars
- 519
- Forks
- 608
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 7
Description
When the galera resource agent calls galera_monitor() in galera_start() line 721 and galera_promote() line 617, mysql is usually down, which sends a "ERROR: MySQL is not running" to the log, line 758.
Propose to add
if [ ! -z "$1" ]; then
status_loglevel=$1
fi
to galera_monitor(), and add "info" to these two calls from _start and _promote
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the Galera resource-agent script containing galera_monitor(), galera_start(), and galera_promote(), then inspect the calls around lines 617, 721, and 758. Verify how the monitor status log level is selected, make the requested distinction for start and promote checks, and confirm the resulting logs no longer report the expected stopped-MySQL condition at error level.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, shell
- Domain
- databases, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100