question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for HTTP/1.0 Healthchecks by Loadbalancers

See original GitHub issue

Please describe your use case / problem. Some loadbalancer vendors are using http/1.0 healthchecks (haproxy default, digitalocean exclusively) When deploying ambassador behind such a loadbalancer, Ambassador/envoy is replying with 426 UPGRADE REQUIRED answers:

ACCESS [2018-11-21T10:12:10.359Z] "GET /ambassador/v0/check_alive HTTP/1.0" 426 - 0 0 0 - "-" "curl/7.58.0" "-" "localhost:8080" "-"
ACCESS [2018-11-21T10:12:18.139Z] "GET /ambassador/v0/check_ready HTTP/1.0" 426 - 0 0 0 - "-" "curl/7.58.0" "-" "localhost:8080" "-"

Therefore, the upstream Loadbalancers are marking the service as DOWN (they expect a 200 OK answer).

Describe the solution you’d like I think we should be able to answer simple http/1.0 calls. envoy does support it accept_http_10 https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/core/protocol.proto

Describe alternatives you’ve considered I have now resolved it by manually setting the upstream loadbalancer to TCP only check. So the Loadbalancer only checks if the port ist open. Thats not optimal, but better than no service

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
phenoximcommented, Feb 20, 2019

Same issue with me. Could anyone give a hint to resolve this propblem?

FYI

Update http_config here: https://github.com/datawire/ambassador/blob/7ccc4945f7b50af35c77ffddca2cc7f22979882a/ambassador/ambassador/envoy/v2/v2listener.py#L353

http_config['http_protocol_options'] = {
        'accept_http_10': True
}

and build a private ambassador image.

Solved this issue.

1reaction
richarddlicommented, May 9, 2019

Fixed in 0.61.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for HTTP/1.0 Healthchecks by Loadbalancers #988
Please describe your use case / problem. Some loadbalancer vendors are using http/1.0 healthchecks (haproxy default, digitalocean exclusively)
Read more >
Troubleshoot your Application Load Balancers
A registered target is not in service. If a target is taking longer than expected to enter the InService state, it might be...
Read more >
HTTP Health Monitor - Avi Networks
Enter Successful Checks. This is the number of consecutive health checks that must succeed before NSX Advanced Load Balancer marks a down server...
Read more >
How to Enable Health Checks in HAProxy? (Guide)
HAProxy provides three types of health checks: active, ... HAProxy also supports other protocol-specific health checks for LDAP, MySQL, ...
Read more >
Server Load Balancer:Health check management
0 and HTTP1.1. Note This parameter takes effect only when the health check protocol is set to HTTP.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found