openresty / lua-resty-upstream-healthcheck

Health Checker for Nginx Upstream Servers in Pure Lua
515 stars 134 forks source link

Added the "expected_result" parameter to the options as a response body checker. #61

Open yigitbasalma opened 5 years ago

yigitbasalma commented 5 years ago

Hi All;

I'm developed some lines of code for search some string in response body and decide this upstream member is up or down. I hope to this feature will be useful for everyone. I'm also made some performance tests to see if there is any performance gap. I'm sharing results with you. You will see some error in screen shots. There is no problem. Because, these errors happened during the changing my backend server configuration. (300 concurrent user) lua_results_1 lua_results_2 lua_results_3