Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Health Check for backend #683

Closed
tamalsaha opened this issue Nov 5, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@tamalsaha
Copy link
Member

commented Nov 5, 2017

HAProxy support: https://www.haproxy.com/documentation/aloha/7-0/haproxy/healthchecks/

Proposal:
Users apply annotations ingress.appscode.com/check: "true" and optionally ingress.appscode.com/check-port: "80" on the backend service

This will enable on the server line:

  • check : enables health checking
  • a TCP port on configured on the server IP or the port parameter

The rest can be activated using backendRule

@tamalsaha

This comment has been minimized.

Copy link
Member Author

commented Nov 6, 2017

Ingress

path 
 / p1
 backend: s
 port: 8080 
 server x.x.x.1:8080 check port 5050


 /p2
 backend: s
 port: 9090
 server x.x.x.1:9090 check port 5050

s:
ingress.appscode.com/check: true
ingress.appscode.com/check-port: 5050

10.10.10.1 :8080, :9090,  H:5050
10.10.10.2 :8080, :9090,  H:5050

http-chk
tcp-chk

tamalsaha added a commit that referenced this issue Nov 12, 2017

Enable server health check using service annotations and backend rules (
#695)

Fixed #683 

Service annotations:
```
ingress.appscode.com/check: "true"
ingress.appscode.com/check-port: "5050"
```
Backend rules: 
https://github.com/appscode/voyager/blob/master/docs/user-guide/ingress/backend-rule.md
```
backendRule:
- 'option httpchk GET /testpath/ok'
- 'http-check expect rstring (testpath/ok)'
```

tamalsaha added a commit that referenced this issue Dec 13, 2017

Enable server health check using service annotations and backend rules (
#695)

Fixed #683 

Service annotations:
```
ingress.appscode.com/check: "true"
ingress.appscode.com/check-port: "5050"
```
Backend rules: 
https://github.com/appscode/voyager/blob/master/docs/user-guide/ingress/backend-rule.md
```
backendRule:
- 'option httpchk GET /testpath/ok'
- 'http-check expect rstring (testpath/ok)'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.