Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Load Balancer Custom Error Page

Is there a way currently to set a custom error page if the load balancer does not have any children to distribute to either because of load or if they are down?

like image 961
keoir Avatar asked Mar 07 '16 16:03

keoir


1 Answers

There is no out of the box solution for that. A load balancer cannot serve content itself, it redirects traffic for instances that can do that.

You can however try to explore the possiblity to serve an error page from Google Cloud Storage :

Load Balancing to Cloud Storage

Content based example

But you'll to figure out a way to redirect to cloud storage only when no other instances are responding. I hope this helps.

like image 81
HakRo Avatar answered Oct 08 '22 14:10

HakRo