项目作者: obissick

项目描述 :
Simple Proxy Server for checking status of galera and routing traffic.
高级语言: Java
项目地址: git://github.com/obissick/GaleraProxy.git
创建时间: 2017-10-06T21:46:35Z
项目社区:https://github.com/obissick/GaleraProxy

开源协议:GNU General Public License v3.0

下载


GaleraProxy

Simple Proxy Server for checking status of galera and routing traffic.

Specific usage

Usage: Run Archive

  1. java -jar GaleraProxy.jar

Example Config: Place config in /etc/galeraproxy/settings.properties

  1. #Galera node IP's
  2. fip=10.1.10.220,10.1.10.221,10.1.10.222
  3. #Galera port
  4. fport=3306
  5. #Galera DB user
  6. dbuser=
  7. #Galera DB password
  8. dbpassword=
  9. #Port to run proxy
  10. lport=3307
  11. ltype=round-robin

Usage: API http://localhost:8080/stats

  1. [
  2. {
  3. "name": "10.1.10.220",
  4. "totalConnections": 0,
  5. "currConnections": 6,
  6. "status": "4"
  7. },
  8. {
  9. "name": "10.1.10.221",
  10. "totalConnections": 0,
  11. "currConnections": 4,
  12. "status": "4"
  13. },
  14. {
  15. "name": "10.1.10.222",
  16. "totalConnections": 0,
  17. "currConnections": 4,
  18. "status": "4"
  19. }
  20. ]