Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-10-01 Thread Chew Kok Hoor
Hi all, Just an update for anyone interested. I ditched the idea because there are times the sessions are somehow just not copied correctly, and this is just a 2 node cluster. As I am using AKS load balancer, I am not able to use ip_hash for nginx. Instead I am now using redisson (I am

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-17 Thread Chew Kok Hoor
Hi Chris, Following are my setup. It seems to work but I am not sure if I did things correctly: 1. In my server.xml, I followed the setup in javadoc https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/tribes/membership/cloud/DNSMembershipProvider.html for the cluster tag.

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-17 Thread Christopher Schultz
All, If you are havig issues with the CloudMembershipService, I would highly recommend that you continue to have this discussion. The original author (remm) was mostly targeting OpenShift (he works for RedHat, so it's not a surprise) but it doesn't mean that its support cannot expand to incl

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-15 Thread Thomas Meyer
Am 15. August 2022 03:47:18 MESZ schrieb Chew Kok Hoor : >Hi Thomas, Hi, >Thanks for pointing me to another option which is the >DNSMembershipService. > >Hope you can help to clarify two things in the dns-membership-service.yml: > >1. For spec.port, is port mandatory? Or can it be any

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-14 Thread Chew Kok Hoor
Hi Thomas, Thanks for pointing me to another option which is the DNSMembershipService. Hope you can help to clarify two things in the dns-membership-service.yml: 1. For spec.port, is port mandatory? Or can it be any other number? I checked the source code for DNSMembershipService.java a

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-14 Thread Thomas Meyer
Hi, Two remarks from my side: 1. CloudMembershipService is not so usable, and seems to originally target OpenShift. To make it work you need to create ServiceAccount and give read permission for listing all pods in namespace. This seems to be missing in your case. It also has some assumptions a

Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-14 Thread Chew Kok Hoor
Hi, I am trying to setup Tomcat clustering running in AKS, however the standard settings don't seem to work. As per the documentation I have setup following Cluster configuration in server.xml inside my tag: But I received a 'Failed