-
Notifications
You must be signed in to change notification settings - Fork 39
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
add a delay when retrying to pull crabconfig JSON from gitlab #8274
Comments
configuration files in gitlab are pulled in
but avoiding the DOS attack is not that easy, since the call fails, there's no cached value and a new call is made every time a client contacts the REST. We do not have retry loops in the REST code itself here. So I am not sure if we can (easily) do something. Ismale point to https://docs.gitlab.com/ee/administration/settings/user_and_ip_rate_limits.html#response-headers but it seems a tool for them, not us. |
Maybe we could avoid the "pull every 30min from gitlab in case we changed it" and rather push a config. change via K8s when a change is committed ? If we look carefully at https://gitlab.cern.ch/crab3/CRAB3ServerConfig/-/blob/master/cmsweb-rest-config.json?ref_type=heads we may even conclude that it is very static and could be part of the K8s template. And the only dynamic thing is the list of schedulers. Nor puppet nor K8s existed when the current mechanism was thought of, and pushing changed to the REST required a new CMSWEB deployment which they would only do once a month. Now things are much different. |
I agree. Decommission the crab3/CRAB3ServerConfig entirely.
|
|
let's plan for Vijay to do this. Still falls in "code refactoring". |
Need to close and open a new one about getting rid of crab3/CRAB3ServerConfig |
replaced by #8675 |
The text was updated successfully, but these errors were encountered: