Page MenuHomePhabricator

Conflict between elk and cirrussearch vagrant roles
Closed, ResolvedPublic

Description

The elk role sets up the logstash-* index template, with number_of_replicas set to 0 (template). The cirrussearchrole's command for building the search index is conditioned on the is-cirrussearch-forceindex-needed succeeding (presumably to ward off some race condition?), which is a wrapper around the cirrusNeedsToBeBuilt.php maintenance script, which just polls the ElasticSearch health check until everything is green. Since the logstash indexes have no replicas, they return yellow, causing the script to hang and eventually time out, and so fail to build the index.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 570768 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/extensions/CirrusSearch@master] cirrusNeedsToBeBuilt.php: filter health check to Cirrus indices

https://gerrit.wikimedia.org/r/570768

Change 570768 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@master] cirrusNeedsToBeBuilt.php: filter health check to Cirrus indices

https://gerrit.wikimedia.org/r/570768

Tgr claimed this task.