haproxy-check-mysql-slave

command
v0.0.0-...-50172b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

README

HAProxy 检测后端mysql数据库复制Yes

用于项目中读写分离使用多个slave机器分发压力

仅仅在 Slave_IO_RunningSlave_SQL_RunningYes 时才返回 0 退出状态,否则退出 1 表示

为什么不用脚本?

  1. 小问题:脚本只能使用 #!/bin/bash#!/bin/sh ,不能使用 #!/usr/bin/env bash
  2. 大问题:无法使用脚本执行 mysql 客户端并获取输出
配置文件
下载程序

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL