Giter Site home page Giter Site logo

Comments (4)

krushik avatar krushik commented on July 24, 2024 1

@vsfomin, there is no need to define location /healthCheck and the separate upstream pool for http. 'check' directive supports the parameter 'port=', overriding the original servers' port for making healthchecks. so it should look like this:

upstream my_https_pool {
  server 1.2.3.4:443;
  server 3.4.5.6:443;
  check interval=3000 rise=2 fall=5 timeout=1000 port=80 type=http;
  check_http_send "GET /healthCheck HTTP/1.0\r\n\r\n";
  check_http_expect_alive http_2xx http_3xx;
}

from nginx_upstream_check_module.

vsfomin avatar vsfomin commented on July 24, 2024

any updates?
@nazmulnaim have you resolved your issue with https configuration? I need some suggestions related to this.

from nginx_upstream_check_module.

krushik avatar krushik commented on July 24, 2024

Our workaround is to serve the actual traffic via https, but make healthchecks on http endpoint (using port=80 type=http parameters of check directive). Your application would need to provide both endpoints for this to work, though

from nginx_upstream_check_module.

vsfomin avatar vsfomin commented on July 24, 2024

Our workaround is to serve the actual traffic via https, but make healthchecks on http endpoint (using port=80 type=http parameters of check directive). Your application would need to provide both endpoints for this to work, though

but how you configure it in case of your backend servers serve HTTPS, but /healthcheck uri server HTTP?
if one of healthCheck return 503, for instance, does it affect my_https_pool?
I mean this:

location /my_https_service {
proxy_pass https://my_https_pool;
}

location /healthCheck {
proxy_pass http://my_http_pool;
}

upstream my_https_pool {
server 1.2.3.4:443;
server 3.4.5.6:443;
}

upstream my_http_pool {
server 1.2.3.4:80;
server 3.4.5.6:80;
check interval=3000 rise=2 fall=5 timeout=1000 type=http;
check_http_send "GET /healthCheck HTTP/1.0\r\n\r\n";
check_http_expect_alive http_2xx http_3xx;
}

from nginx_upstream_check_module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.