Hi all and thanks in advance for your assistance.
I have an Aloha appliance 16.5.16.
We had an issue with a group of webservers behind our HAProxy that lost a connection to their DB this morning and those servers could no longer function and wanted to serve to clients a “500 Server Error” that included useful details on why the servers no longer functioned.
HAProxy served instead to clients a “503 Service Unavailable” (as ALL webservers in the group were providing 500 errors so essentially the whole backend was down).
Does HAProxy have an option for actually passing the server provided 500 error to the clients so that HAProxy doesn’t hide from us what’s happening ?
I understand that I could simply change the http-chk to allow 500 as an acceptable HTTP code, but then the HAProxy interface and SNMP systems wouldn’t get alerted to the fact that anything was wrong as the servers would still show as UP and healthy (even though they weren’t).
I’ve looked extensively in the Config manual and some options like “retry-on 500” look like they might function but they don’t. We still see the same “503 Service Unavailable” when used.
Does an option exist that forwards the backend server error to the client ?