
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
MySQL Health is a standalone HTTP server that will respond with a 200 status code when MySQL is operating as expected.
This script is intended to be used in conjuction with HAProxy "option httpchk" for a TCP load balancer distributing load across mysql servers.
export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
Add this line to your application's Gemfile:
gem 'mysql_health'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mysql_health
Usage: mysql_health options
--check:master Master health check
--check:slave Slave health check
--check:allow-overlapping Allow overlapping health checks (default: false)
--check:interval INTERVAL Check health every INTERVAL (default: 10s)
--check:delay DELAY Delay health checks for INTERVAL (default: 0s)
--check:dsn DSN MySQL DSN (default: DBI:Mysql:mysql:localhost)
--check:username USERNAME MySQL Username (default: root)
--check:password PASSWORD MySQL Password (default: )
-l, --server:listen ADDR Server listen address (default: 0.0.0.0)
-p, --server:port PORT Server listen port (default: 3305)
-d, --server:daemonize Daemonize the process (default: false)
-P, --server:pid-file PID-FILE Pid-File to save the process id (default: false)
--log:level LEVEL Logging level (default: INFO)
--log:file FILE Write logs to FILE (default: STDERR)
--log:age DAYS Rotate logs after DAYS pass (default: 7)
--log:size SIZE Rotate logs after the grow past SIZE bytes (default: 10485760)
Start the server on port 1234 and check the status of the slave every 30 seconds:
mysql_health --check:slave --check:interval 30 --server:port 1234
Start the server on port 1234 and check the status of the master every 30 seconds:
mysql_health --check:master --check:interval 30 --server:port 1234
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that mysql_health demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.