集群环境登陆存在异常
kyne0116 opened this issue · 2 comments
kyne0116 commented
基础组件:
操作系统RedHat6.5
Redis3.2.5
Tomcat7.0.67
Nginx1.11.1
测试应用:shiro-session-redis-web
部署架构:34、35、36同时安装Tomcat,34安装Redis,36安装Nginx
Nginx配置
http {
include mime.types;
default_type application/octet-stream;
upstream app_server_cluster {
server 10.10.1.34:8080 weight=10 max_fails=2 fail_timeout=30s;
server 10.10.1.35:8080 weight=10 max_fails=2 fail_timeout=30s;
#server 10.10.1.36:8080 weight=10 max_fails=2 fail_timeout=30s;
}
server {
listen 8088;
server_name localhost;
root html;
index index.html index.htm;
location / {
proxy_pass http://app_server_cluster;
}
}
}
- 2台集群登陆异常现象,访问地址:http://10.10.1.36:8088/shiro-session-redis-web/login 需要登陆2次,也就是只有Nginx落在35时才能登陆成功,首次落在34时均失败;
- 3台集群登陆异常现象,访问地址:http://10.10.1.36:8088/shiro-session-redis-web/login 无论登陆多少次,一台机都无法登陆。
xiaolongyuan commented
是已选型 shiro 这个框架?
kyne0116 commented
嗯,目前基于shiro做的权限认证