Skip to content

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

License

Notifications You must be signed in to change notification settings

obissick/GaleraProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GaleraProxy

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

Specific usage

Usage: Run Archive

java -jar GaleraProxy.jar 

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

#Galera node IP's
fip=10.1.10.220,10.1.10.221,10.1.10.222
#Galera port
fport=3306
#Galera DB user
dbuser=
#Galera DB password
dbpassword=
#Port to run proxy
lport=3307
ltype=round-robin

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

[
  {
    "name": "10.1.10.220",
    "totalConnections": 0,
    "currConnections": 6,
    "status": "4"
  },
  {
    "name": "10.1.10.221",
    "totalConnections": 0,
    "currConnections": 4,
    "status": "4"
  },
  {
    "name": "10.1.10.222",
    "totalConnections": 0,
    "currConnections": 4,
    "status": "4"
  }
]

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages