Last modified: 2014-05-13 12:57:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44425, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42425 - wikimedia [[Special:Search]] randomly slow
wikimedia [[Special:Search]] randomly slow
Status: NEW
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: ops, performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-25 05:55 UTC by MZMcBride
Modified: 2014-05-13 12:57 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2012-11-25 05:55:08 UTC
Accessing <https://www.wikidata.org/wiki/Special:Search> while logged out (anonymously), I'm occasionally getting 10-second-plus render times. This is a blank search input form. It should load much faster.

Examples:

$ curl -s "https://www.wikidata.org/wiki/Special:Search" | grep "Served by"
<!-- Served by srv261 in 0.110 secs. -->

$ curl -s "https://www.wikidata.org/wiki/Special:Search" | grep "Served by"
<!-- Served by mw33 in 0.116 secs. -->

$ curl -s "https://www.wikidata.org/wiki/Special:Search" | grep "Served by"
<!-- Served by srv210 in 0.121 secs. -->

$ curl -s "https://www.wikidata.org/wiki/Special:Search" | grep "Served by"
<!-- Served by srv210 in 9.637 secs. -->

$ curl -s "https://www.wikidata.org/wiki/Special:Search" | grep "Served by"
<!-- Served by srv207 in 10.127 secs. -->

$ curl -s "https://www.wikidata.org/wiki/Special:Search" | grep "Served by"
<!-- Served by srv237 in 3.108 secs. -->

$ curl -s "https://www.wikidata.org/wiki/Special:Search" | grep "Served by"
<!-- Served by mw38 in 0.147 secs. -->

$ curl -s "https://www.wikidata.org/wiki/Special:Search" | grep "Served by"
<!-- Served by mw38 in 10.154 secs. -->
Comment 1 MZMcBride 2012-11-25 15:40:28 UTC
I'm starting to suspect this might be related to bug 42423, not wikidata.org. I'm getting intermittent slow responses from other sites as well.

Example:

$ curl -s "https://hi.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7:%E0%A4%96%E0%A5%8B%E0%A4%9C" | grep "Served by"
<!-- Served by srv212 in 10.141 secs. -->

This is hi.wikipedia.org's version of Special:Search, accessed anonymously via curl.
Comment 2 MZMcBride 2012-11-25 15:42:55 UTC
Hmm, and another. This really needs to be investigated.

$ curl -s "https://hi.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7:%E0%A4%96%E0%A5%8B%E0%A4%9C" | grep "Served by"
<!-- Served by mw59 in 10.130 secs. -->

As far as I'm aware, a server taking over ten seconds to serve an anonymous page view is always wrong.
Comment 3 Antoine "hashar" Musso (WMF) 2013-02-01 14:45:32 UTC
The application servers for [[Special:Search]] are randomly slow (like more than 5 seconds on some requests).   Maybe due to some backend server slowness ?
Comment 4 Antoine "hashar" Musso (WMF) 2013-02-01 14:46:52 UTC
gdash show up some latency spikes http://gdash.wikimedia.org/dashboards/searchlatency/
Comment 5 Chad H. 2014-05-12 22:08:58 UTC
Are the same queries slow with Cirrus? If not I'm inclined to say this is cirrus-fixed and not worry about it.

(In reply to Antoine "hashar" Musso from comment #4)
> gdash show up some latency spikes
> http://gdash.wikimedia.org/dashboards/searchlatency/

Getting those metrics updated for Elasticsearch is a good idea imho.
Comment 6 Antoine "hashar" Musso (WMF) 2014-05-13 12:57:03 UTC
With Lucene, I guess we did a simple round robin load balancing. The high latency queries were probably hitting a single overloaded search server.

I have no idea how ElasticSearch handles load balancing of requests across search servers. It might be using a smarter load balancing algorithm.


The dashboard at http://gdash.wikimedia.org/dashboards/searchlatency/ is defined by operations/puppet.git in files/gdash/dashboards/searchlatency/ files.

The graphs are based on the statsd metric MediaWiki.LuceneSearchSet.newFromQuery.  It should be fairly easy to add similar graphs if the ElasticSearch extension provides a similar wfProfileIn() call.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links