Page 1 of 1

HA CmapServer

Posted: Wed Apr 04, 2018 11:01 am
by mbaquer6
Hello!
I'm working on the deployment of CmapServer on Kubernetes and everything works great for one instance.
I would like you to give me some tips if I want to deploy the system in HA. I tried this but have some issues when I try to scale for more than one replica. They share the same FS using with all the files (NFS) and share the same serverconfig.txt. All replicas are behind a load balancer, no sticky sessions. The issue I found is when I try to open a map, I got an error saying cannot open resource. If one insists on opening, then it does (just one instance is attending the requests).
Any advice would be appreciated.

Re: HA CmapServer

Posted: Wed Apr 04, 2018 11:07 am
by cmapadmin
Hi,

Sharing a filesystem by several CmapServers won't work. Each CmapServer keeps a table in memory with a list of all resources, locks, etc., so the CmapServers would get out of sync. A future release of the CmapServer will support sharing the file system, but currently it won't. We're working on it. As to the error you are getting, where its one CmapServer accessing the shared filesystem, there shouldn't be any problems. What does the log say? Timeout?

Re: HA CmapServer

Posted: Wed Apr 04, 2018 11:14 am
by mbaquer6
No, for one instance works fine, no problems at all, the problem happens just when using replicas.
I will give more resources for the instance so we don't have any problems for the CMAP Congress!
Thank you!

Re: HA CmapServer

Posted: Wed Apr 04, 2018 11:17 am
by cmapadmin
Increasing the memory size (heap size) will make a huge difference.

Re: HA CmapServer

Posted: Wed Apr 04, 2018 11:33 am
by mbaquer6
Java its so memory hungry, will do, absolutely.
Thanks again.