Page MenuHomePhabricator

tools.weather gadget causing high load on tool labs
Closed, ResolvedPublic

Description

e.g. https://fa.m.wikinews.org/wiki/%D8%B5%D9%81%D8%AD%D9%87%D9%94_%D8%A7%D8%B5%D9%84%DB%8C

tries to load https://tools.wmflabs.org/weather/api/v1

which fails because, well, that tool doesn't exist. To make matters worse, the page retries multiple times per second (!).

This was hammering tools.admin, causing tools.wmflabs.org itself to become slow. I've re-started the weather webservice, so the load is not gone, but at least less visible.

Event Timeline

valhallasw raised the priority of this task from to High.
valhallasw updated the task description. (Show Details)
valhallasw added projects: Toolforge, Tools.
valhallasw added subscribers: valhallasw, Mjbmr.
Restricted Application edited subscribers, added: Aklapper; removed: Mjbmr. · View Herald Transcript

Sinkholed with

.lighttd.conf

url.rewrite-once = (
    "^/[^?]*(\?(.*))?$" => "/index.php?$1&full_request=$0"
)

and

<?php
header("Access-Control-Allow-Origin: *");
echo 'No content';

The script (https://fa.wikinews.org/wiki/%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-Weather.js, found by @faidon) also did not back off after 404s...

chasemp claimed this task.
chasemp added subscribers: Krinkle, chasemp.

@Krinkle disabled the gadget after discussions on IRC and @valhallasw is posting a message to the village pump

https://fa.wikinews.org/w/index.php?title=%D9%85%D8%AF%DB%8C%D8%A7%D9%88%DB%8C%DA%A9%DB%8C:Gadget-Weather.js&action=edit

url: '//tools.wmflabs.org/weather/api/v1',