Advertisement

通过 lua-resty-upstream-healthcheck 动态监控后端服务节点的状态

阅读量:

- https://github.com/openresty/lua-resty-upstream-healthcheck

直接上配置示例步骤,配置环境如下:

在一台服务器上部署了两个 Tomcat 服务器作为 upstream 的两个节点配置。

tomcat1: 127.0.0.1:48080

tomcat2: 127.0.0.1:58080

然后分别在两个 Tomcats 的 webapps/ROOT/ 下设置一个简单的文本文件 health.txt,请按照以下格式进行配置:

|1 2 3 4 5 6 7 8 9 10 11 12 13 14|/home/health/test/tomcat1/webapps/ROOT [health@healthvm ROOT]$ ll 总用量 200 -rw-r--r--. 1 health health 17811 12月 16 14:06 asf-logo.png -rw-r--r--. 1 health health 5866 12月 16 14:06 asf-logo-wide.gif -rw-r--r--. 1 health health 713 12月 16 14:06 bg -button.png

全部评论 (0)

还没有任何评论哟~