You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Search.wikimedia.org: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Brion
No edit summary
 
imported>Legoktm
(link to grafana)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This currently holds a web service running title prefix searches for Apple's Dictionary application in Mac OS X 10.5.
{{SourceLinks|url=https://gerrit.wikimedia.org/g/mediawiki/services/apple-search|text=mediawiki/services/apple-search.git}}
'''search.wikimedia.org''' holds a web service for running title prefix searches for Apple's Dictionary application in Mac OS X 10.5. It is a simple ~100 line script hosted on [[Kubernetes]].


== Hardware ==
There is a contract with Apple requiring this service to be maintained.


* [[yongle]]
== History ==


== Software ==
Apple requested that we implement this service in October 2007. Mike Godwin negotiated the contract, and Brion Vibber (then CTO) wrote the code and set up the service. It used the TitleKey extension for the first two months, and then Brion migrated it to use the new OpenSearch endpoint. Originally the service ran on separate hardware: first [[yongle]] and then [[ekrem]]. When it came time to decommission ekrem in 2013, there was some talk of discontinuing the service ([[phab:T81982]]). Log analysis showed that it was still actively used. So Tim Starling moved it to the main application cluster, and updated the source, with a view to allowing another 5-10 years of low-maintenance service.


* Apache+PHP+json extension
In 2021, [[User:Majavah|Taavi Väänänen]] moved the service from the main appserver cluster to a separate Kubernetes service in preparation for moving MediaWiki itself into Kubernetes ([[phab:T289224]]). A [https://grafana.wikimedia.org/d/SaQD7Dp7k/apple-search?orgId=1 dashboard showing request rate] is now available.
* [http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/apple-dictionary/index.php?view=log apple-dictionary front-end web service]
** This is a short PHP script which sends requests to our OpenSearch suggest web service and returns HTML-formatted results in the microformat that Apple's tool expects.


== Usage ==
== External link ==
 
* https://search.wikimedia.org
* Production use began October 2007 with release of Mac OS X 10.5 Leopard
* Switched to OpenSearch backend in January 2008 to resolve performance and updating issues
 
== Notes ==
 
* Apple's client sends all queries as lowercase, so this requires a case-insensitive OpenSearch suggest backend. Currently this is provided using the TitleKey extension to MediaWiki.
 
== How to recover in a hurry ==
 
# set up an Apache+PHP box serving search.wikimedia.org
#* PHP's json extension required
# install [http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/apple-dictionary/index.php?view=markup  apple-dictionary/index.php] in the document root


{{lowercase}}
[[Category:Services]]
[[Category:Services]]

Latest revision as of 20:03, 24 November 2021

search.wikimedia.org holds a web service for running title prefix searches for Apple's Dictionary application in Mac OS X 10.5. It is a simple ~100 line script hosted on Kubernetes.

There is a contract with Apple requiring this service to be maintained.

History

Apple requested that we implement this service in October 2007. Mike Godwin negotiated the contract, and Brion Vibber (then CTO) wrote the code and set up the service. It used the TitleKey extension for the first two months, and then Brion migrated it to use the new OpenSearch endpoint. Originally the service ran on separate hardware: first yongle and then ekrem. When it came time to decommission ekrem in 2013, there was some talk of discontinuing the service (phab:T81982). Log analysis showed that it was still actively used. So Tim Starling moved it to the main application cluster, and updated the source, with a view to allowing another 5-10 years of low-maintenance service.

In 2021, Taavi Väänänen moved the service from the main appserver cluster to a separate Kubernetes service in preparation for moving MediaWiki itself into Kubernetes (phab:T289224). A dashboard showing request rate is now available.

External link