Page MenuHomePhabricator

Consider enabling max_statement_time on all production DB servers to limit impact of bad queries
Closed, DeclinedPublic

Description

Proposed as partial solution to parent by @daniel; splitting out for specific follow-up.

Event Timeline

Jdforrester-WMF created this task.

(Ahead of the idea in T195792 of managing this from MediaWiki.)

Marostegui subscribed.

There is nothing server-side that needs enablement, this needs implementation on the MW (or any other abstraction layer).

wikiuser@db1089(enwiki)> SET STATEMENT max_statement_time=1 FOR select count(*) from revision;
ERROR 1969 (70100): Query execution was interrupted (max_statement_time exceeded)
wikiuser@db1089(enwiki)>
wikiadmin@10.64.32.115(enwiki)> SET STATEMENT max_statement_time=1 FOR select count(*) from revision;
ERROR 1969 (70100): Query execution was interrupted (max_statement_time exceeded)
wikiadmin@10.64.32.115(enwiki)>