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

237 views
Skip to first unread message

Luís Costa

unread,
May 10, 2024, 5:40:05 AM5/10/24
to CAS Community
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

martin....@springer.com

unread,
May 11, 2024, 5:40:47 AM5/11/24
to CAS Community, Luís Costa
Hi Luis,

This is a known behavior, it seems CAS management is also using the scheduled reloading of all service definitions just like CAS server itself. The effect at CAS management is, that changes are not immediately reflected in the GUI. You may try the reload button to see the changes.

Other than that, feel invited to improve the CAS management GUI any time by creating PRs at https://github.com/apereo/cas-management.

Regards

Martin

Reply all
Reply to author
Forward
0 new messages