-
Notifications
You must be signed in to change notification settings - Fork 108
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
MSUnmerged: Create a REST API for all RSEs' state #10995
Comments
FYI @amaltaro |
@amaltaro already made a really good suggestion regarding micro services REST APIs consistency. In order to stay in line with the similar interface already implemented for https://github.com/dmwm/WMCore/wiki/ReqMgr2-apis#retrieve-a-workflow-transfer-document
|
While working on the issue I realized that the above method and class suggested by @amaltaro are not part of any of the micro services' APIs but they are part of the Reqmgr ones. And also this whole piece of code actually relates to the CouchDB interface. And we have no MongoDB interface developed and plugged into Reqmgr. So I would not create a new API to Reqmgr2 of the sort: only to be able to use this As stated into the issue description. And in case we decide we'd want an API from Reqmgr linked to the information stored in MongoDB, then we should create a separate issue, which should not be related to MSUnmerged only. |
That's the way to go, Todor. I didn't mean to use the same implementation of ReqMgr Aux module, but only the same convention to retrieve all the documents (from the user point of view). |
Got it. Thanks Alan! A PR is on its way already. |
Impact of the new feature
MSUnmerged
Is your feature request related to a problem? Please describe.
While monitoring the overall work performed by the service tracked in the following issue [1], we've found that the single database query used for extracting the error counters for all the RSEs is quite useful. Provided this is a single call, It is quite logical to have it implemented as a REST API to the service, so that the information is easily exposed.
Describe the solution you'd like
Implement the following REST API:
https://cmsweb.cern.ch/ms-unmerged/data/info?rse=ALL_DOCS
Which should provide the output from the following query to MongoDB:
Describe alternatives you've considered
Using the query only from python for debugging.
Additional context
None
The text was updated successfully, but these errors were encountered: