Skip to content

Instantly share code, notes, and snippets.

@jrodriguez-ifuelinteractive
Last active July 16, 2018 12:29
Show Gist options
  • Save jrodriguez-ifuelinteractive/5885603 to your computer and use it in GitHub Desktop.
Save jrodriguez-ifuelinteractive/5885603 to your computer and use it in GitHub Desktop.
Magento load balancer health check script
<?php
include './app/Mage.php';
try {
Mage::app();
echo gethostname();
} Catch (Exception $e) {
header("HTTP/1.0 503 Service Unavailable");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment