CAS management (with MongoDB as service registry) delay on showing changes 
to configurations

Hello community,


I’m having some problems related with CAS management web app and MongoDB as 
Service Registry.

I'm using CAs server 6.6.14, CAS management 6.6.4 and MongoDB 4.0.5.

I also have other technologies involved, like docker and apache web server.


One of the problems is related with saving configuration changes.

Everytime I make changes to the configurations (eg CAS Services => Basics 
=> Description), those changes are not immediately reflected on CAS 
management screens. After some debugging it seems that those changes take 
some time (some seconds, a minute or more) to be reflected on CAS 
management.

I found no errors on MongoDB log, /var/log/mongod.log and on CAS management 
log, with trace on several packages.

It seems that this problem is related with MongoDB configurations, 
technology which I don't know well.

Initially I’ve tried to change CAS management documented configs 
“cas.service-registry.mongo.read-concern=LINEARIZABLE” and 
“cas.service-registry.mongo.write-concern=MAJORITY”, but it seems they are 
ignored by MongoDB initialization code.

Then I tried to force Read Concern config and Write Concern config on the 
connection string, like this, 
“mongodb://<user>:<password>@mongodb:<port>/<database>?readConcernLevel=linearizable&w=majority&wtimeoutMS=5000”,
 
hoping to prioritize data consistency over performance. This configuration 
seems to be applied, but the delay behaviour keeps happening.


This may be more a MongoDB question than a CAS question, but I ask if 
someone had this problem.


Kind Regards,

Luís Costa

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/be34caf3-2c84-40dd-8842-53d90d44d3e0n%40apereo.org.

Reply via email to