免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3668 | 回复: 1

急!!!问个关于503错误的问题 [复制链接]

论坛徽章:
0
发表于 2010-08-03 11:24 |显示全部楼层
用五台服务器,做nginx+apache+tomcat的负载均衡

直接访问apache+tomcat是没有问题的

如果通过nginx访问apache,先正常显示网页,再刷新,就会报503错误:

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later

查看apache的mod_jk.log,有如下报错:

[Tue Aug 03 11:11:44.180 2010] [12590:3074266688] [info] get_most_suitable_worker::jk_lb_worker.c (985): all workers are in error state for session C4102318967946B15F63858D09F2022C.worker4
[Tue Aug 03 11:11:44.180 2010] [12590:3074266688] [info] service::jk_lb_worker.c (144: All tomcat instances failed, no more workers left for recovery (attempt=0, retry=0)
[Tue Aug 03 11:11:44.180 2010] [12590:3074266688] [info] get_most_suitable_worker::jk_lb_worker.c (985): all workers are in error state for session C4102318967946B15F63858D09F2022C.worker4
[Tue Aug 03 11:11:44.180 2010] [12590:3074266688] [info] service::jk_lb_worker.c (1457): All tomcat instances failed, no more workers left (attempt=1, retry=0)
[Tue Aug 03 11:11:44.279 2010] [12590:3074266688] [info] get_most_suitable_worker::jk_lb_worker.c (985): all workers are in error state for session C4102318967946B15F63858D09F2022C.worker4
[Tue Aug 03 11:11:44.279 2010] [12590:3074266688] [info] service::jk_lb_worker.c (1457): All tomcat instances failed, no more workers left (attempt=0, retry=1)
[Tue Aug 03 11:11:44.279 2010] [12590:3074266688] [info] get_most_suitable_worker::jk_lb_worker.c (985): all workers are in error state for session C4102318967946B15F63858D09F2022C.worker4
[Tue Aug 03 11:11:44.279 2010] [12590:3074266688] [info] service::jk_lb_worker.c (1457): All tomcat instances failed, no more workers left (attempt=1, retry=1)

问下各位大侠,是不是哪里配置有问题啊?

论坛徽章:
0
发表于 2010-08-03 13:39 |显示全部楼层
贴下我的workers.properties配置:
worker.list=worker1,worker2,loadbalancer,status
#Define a ‘local_worker’ worker using ajp13
worker.worker1.port=8009
worker.worker1.host=192.168.10.160
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=0
worker.worker1.retries=3

#Define another ‘local_worker’ worker using ajp13
worker.worker2.port=8009
worker.worker2.host=192.168.10.161
worker.worker2.type=ajp13
worker.worker2.lbfactor=1
worker.worker2.socket_keepalive=1
worker.worker2.socket_timeout=0
worker.worker2.retries=3

#Define the LB worker
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker1,worker2
worker.loadbalancer.local_worker_only=1
worker.loadbalancer.sticky_session=true
worker.loadbalancer.sticky_session_force=true

# Status worker for managing load balancer
worker.status.type=status
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2019中国系统架构师大会

【数字转型 架构演进】SACC2019中国系统架构师大会,8.5折限时优惠重磅来袭!
2019年10月31日~11月2日第11届中国系统架构师大会(SACC2019)将在北京隆重召开。四大主线并行的演讲模式,1个主会场、20个技术专场、超千人参与的会议规模,100+来自互联网、金融、制造业、电商等领域的嘉宾阵容,将为广大参会者提供一场最具价值的技术交流盛会。

限时8.5折扣期:2019年9月30日前


----------------------------------------

大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP