简体   繁体   English

CAS与Glassfish群集和负载平衡器

[英]CAS with Glassfish Cluster and load blancer

I'm trying to implement a CAS authentication system in a clustered environment, the problem is that after the user authenticates the load balancer routes the CAS tickets to the wrong instance of the cluster, resulting in a TickedValidationException. 我正在尝试在群集环境中实现CAS身份验证系统,问题是用户进行身份验证之后,负载均衡器会将CAS票证路由到错误的群集实例,从而导致TickedValidationException。

Does anyone know how to make it work properly? 有谁知道如何使其正常工作? I've been searching for it for days, and I can't find to much about it. 我已经搜寻了好几天了,但找不到太多。

I solved this by making use of sticky sessions on the load balancer. 我通过在负载均衡器上使用粘性会话解决了这一问题。 If you are using Apache HTTPD, you may find this useful mod_proxy_balancer , specially the examples section. 如果使用的是Apache HTTPD,则可能会发现此有用的mod_proxy_balancer ,尤其是示例部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM