-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove new/assignment-approved from the ReqMgr2/WMStats list of active workflows #11263
base: master
Are you sure you want to change the base?
Conversation
Jenkins results:
|
I have mixed feelings with this development! WMStatsServer actually provides a nice request (and job detail) caching mechanism, meant to reduce traffic going to the backend database (CouchDB). With this development, our cache becomes smaller, which is good and bad at the same time. A better development would be to actually change the data structure within the
|
To reduce processing overhead with large JSON, either single dict or list of dicts, you should consider using
In other words, it is list of dicts without list brackets where every dict is separated by newline. This format allows to reduce RAM utilization on a client side to size of one dict. On contrary, the list of dicts will still required to allocate RAM for all N dicts until JSON parser finishes its job. I already provided support for |
Yes, this mime type would make the system more robust and make it cheaper for clients to retrieve data. Note though that it won't affect the server, because over there we need to cache all the data that can be served to the clients, thus memory footprint would still not be small. |
Alan, it really depends on server architecture and implementation. If server fetches data from back-end (CouchDB or data cache) as a stream and stream it back to the client you may reduce its RAM overhead. The example is DBSReader, it reads data from ORACLE as a stream and pass it to the client, therefore its RAM usage is very low, O(100MB), regardless of amount of data requested by the client. |
test this please |
Jenkins results:
|
Can one of the admins verify this patch? |
Fixes #11246
Status
not-tested
Description
Changes the definition of
ACTIVE
workflows in ReqMgr2, which now excludes workflows in statusnew
orassignment-approved
. This will affect this REST API (with this exact query string):https://cmsweb-testbed.cern.ch/reqmgr2/data/request?status=ACTIVE
The same change now applies to the WMStatsServer DataCache CherryPy thread, which will no longer pull data for workflows in status
new
orassignment-approved
.Lastly, it will also affect WMStatsServer REST APIs like:
requestcache
,filtered_requests
,protectedlfns
,protectedlfns_final
andgloballocks
, which will no longer provide data for requests in the 2 statuses aforementioned.Is it backward compatible (if not, which system it affects?)
NO
Related PRs
None
External dependencies / deployment changes
None