Make the wiki-non-cached check run from localhost #13446

Closed
opened 2026-07-02 08:35:37 +00:00 by gwmngilfen · 2 comments
Member

Description of request

We have some alerts coming from this check - since it's not about the proxies/cache, but rather the state of the service, we should check this on localhost.

### Description of request We have some alerts coming from this check - since it's not about the proxies/cache, but rather the state of the service, we should check this on localhost.
Author
Member

After some discussion with @kevin, I misunderstood this. What we need is for the proxies to check this against localhost, not against the DNS name (which will hit the DNS round-robin). We don't need a new template for the wiki hosts.

The issue here is that we use the builtin web.page.regexp key, which only takes a name or IP address. It can't be told how to resolve a name - but we need that, we want to say "hit fedoraproject.org, but at this IP" and set it to 127.0.0.1

Happily curl can do this:

curl --resolve fedoraproject.org:443:127.0.0.1 https://fedoraproject.org/wiki/Special:Version|grep MediaWiki

We can do this for all the proxy http checks with a config dropin:

UserParameter=httpd.curl[*],curl --resolve $1:443:127.0.0.1 https://$1/$2 | grep $3

Will need some testing, but should let us replace all the proxy http checks that need it with local ones.

After some discussion with @kevin, I misunderstood this. What we need is for the proxies to check this against localhost, not against the DNS name (which will hit the DNS round-robin). We *don't* need a new template for the wiki hosts. The issue here is that we use the builtin `web.page.regexp` key, which only takes a name or IP address. It can't be told how to resolve a name - but we need that, we want to say "hit fedoraproject.org, but at this IP" and set it to 127.0.0.1 Happily curl can do this: ``` curl --resolve fedoraproject.org:443:127.0.0.1 https://fedoraproject.org/wiki/Special:Version|grep MediaWiki ``` We can do this for *all* the proxy http checks with a config dropin: ``` UserParameter=httpd.curl[*],curl --resolve $1:443:127.0.0.1 https://$1/$2 | grep $3 ``` Will need some testing, but should let us replace all the proxy http checks that need it with local ones.
Author
Member

Closing this, I think it's done.

Closing this, I think it's done.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/tickets#13446
No description provided.