免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3746 | 回复: 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2021中国系统架构师大会

【数字转型 架构重塑】2021年5月20日-22日第十三届中国系统架构师大会将在云端进行网络直播。

大会为期3天的议程,涉及20+专场,近120个主题,完整迁移到线上进行网络直播对会议组织来说绝非易事;但考虑到云端会议的直播形式可以实现全国各地技术爱好者的参与,也使ITPUB作为技术共享交流平台得到更好的普及,我们决定迎难而上。
http://sacc.it168.com/


大会官网>>
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP