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

Add a health check to the NGINX configuration sample #11690

Merged
merged 1 commit into from
Oct 26, 2017
Merged

Add a health check to the NGINX configuration sample #11690

merged 1 commit into from
Oct 26, 2017

Conversation

andrewhowdencom
Copy link
Contributor

With the release of the 2.2 version of Magento Varnish has been configured
to determine the state of the upstream HTTP proxy with a HTTP probe. This
probe polls a script called "health_check.php", located in the pub folder.

Unfortunately in the sample configuration, this script is not whitelisted as a PHP
executable script, and thus fails to get executed as expected. Varnish then marks
the host as down, refusing to serve any traffic.

This commit adds the health_check script to the executable PHP block, allowing
the varnish proxy to correctly determine the health of the application.

Fixes #11157

With the release of the 2.2 version of Magento Varnish has been configured 
to determine the state of the upstream HTTP proxy with a HTTP probe. This
probe polls a script called "health_check.php", located in the pub folder.

Unfortunately in the sample configuration, this script is not whitelisted as a PHP
executable script, and thus fails to get executed as expected. Varnish then marks
the host as down, refusing to serve any traffic.

This commit adds the health_check script to the executable PHP block, allowing
the varnish proxy to correctly determine the health of the application.

Fixes #11157
@andrewhowdencom
Copy link
Contributor Author

Untested in this particular build; just reprod the change in our environment while debugging varnish fuckery

@andrewhowdencom
Copy link
Contributor Author

Also note this doesn't work for things that request pub/health_check.php (i.e. the way varnish is exported by default); it is the authors opinion that this should be handled outside the scope of this change as index.php et. al are

@davidalger davidalger self-assigned this Oct 24, 2017
@davidalger davidalger added this to the October 2017 milestone Oct 24, 2017
@magento-team magento-team merged commit 73178d8 into magento:2.2-develop Oct 26, 2017
magento-team pushed a commit that referenced this pull request Oct 26, 2017
[EngCom] Public Pull Requests - 2.2-develop
 - MAGETWO-82724 Allow coupon code with special charater to be applied to order in checkout #11710
 - MAGETWO-82675 Add a health check to the NGINX configuration sample #11690
 - MAGETWO-82562 Coupon codes not showing in invoice #11635
 - MAGETWO-82535 Fixed ability to set field config from layout xml #11302 [backport 2.2] #11643
 - MAGETWO-81146 Fixing #10275 keyboard submit of adminhtml suggest form. #11250
 - MAGETWO-82761 [Backport 2.2-develop] Dashboard Fix Y Axis for range #11751
 - MAGETWO-82748 Fix Notice: freePackageValue is undefined #11720
 - MAGETWO-82747 [TASK] Updated user.ini according to Magento DevDocs #11734
 - MAGETWO-82537 MAGETWO-81311: Check the length of the array before attempting to sli… #11637
 - MAGETWO-81970 Add missing translations in Magento_UI #11440
 - MAGETWO-81904 FIX #11022 in 2.2-develop: Filter Groups of search criteria parameter have not been included for further processing #11421
 - MAGETWO-82179 Fix Filter Customer Report Review 2.2-develop [Backport] #11522
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants