As noted in {T276769}:
>>! In T276769#6893448, @Tgr wrote:
> So to be clear there are two distinct issues:
> * requests time out (fail with 504) after about 15 seconds (the service can be quite slow so requests taking longer than that is not uncommon). On the MediaWiki side this is a cronjob so long requests are fine; it would be nice to relax the timeout.
> * there is some sort of throttling, which kills most of the requests with an 503. This seems to be a per-minute thing (the 503s stop roughly at the end of every minute, from starting the script) but the trigger does not seem regular: sometimes 3 requests succeed in a row, sometimes 6.
For the 504, this can sometimes be reproduced by issuing a GET to https://api.wikimedia.org/service/linkrecommendation/v0/linkrecommendations/cswiki/Lipsko
The 503 is reproducible by executing `php extensions/GrowthExperiments/maintenance/refreshLinkRecommendations.php` (can do this on deployment-prep with cswiki if you don't have a local setup)