https://github.com/dataman-cloud/omega-haproxyctl
omega-haproxyctl is haproxy configration controller, builtin haproxy
https://github.com/dataman-cloud/omega-haproxyctl
Last synced: about 1 month ago
JSON representation
omega-haproxyctl is haproxy configration controller, builtin haproxy
- Host: GitHub
- URL: https://github.com/dataman-cloud/omega-haproxyctl
- Owner: Dataman-Cloud
- Created: 2016-02-22T05:31:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-17T08:37:54.000Z (almost 9 years ago)
- Last Synced: 2025-04-03T12:52:05.091Z (2 months ago)
- Language: Go
- Homepage:
- Size: 1.27 MB
- Stars: 4
- Watchers: 14
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Omega Haproxy Controller(A.K.A. HAServer) REST API
## Introduction
omega-haproxyctl is haproxy configration controller, it keep sry's service
config can sync update asap.## Build and Run
Currently project use gvt to manage package dependency.
gvt restore to restore the dependency library.
```bash
# bash build.sh
# bash run.sh
```## API List
- [GET http://localhost:5004/api/status](#healthCheck) :healthCheck 检查服务是否正常运行
- [PUT http://localhost:5004/api/haproxy](#get master mertrics) 获取ID 为`clusterID`的集群的集群资源消耗信息#### GET `http://localhost:5004/api/status`
检查服务是否正常运行 (healthCheck)
***Http Code***
`
500 or 200
`
500表示haproxy模板有问题,200表示haproxy模板正常.#### PUT `http://localhost:5004/api/haproxy`
检查并更新haproxy的模板
***Http Code***
`
500 or 200
`
500表示更新haproxy模板失败,200表示更新haproxy模板成功.## Reference list:
1.
http://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html