Help:CirrusSearch elasticsearch replicas: Difference between revisions

Content deleted Content added
No edit summary
Line 2:
 
=== Accessing ===
There are actually three clusters, named ''chi'', ''psi'' and ''omega''. ''chi'' contains approximately the 200 largest wikis. ''psi'' and ''omega'' contain equal splits of the remaining smaller wikis. Assignment of wikis to clusters is constant and is not expected to change.
 
{|
|-
Line 22 ⟶ 21:
 
<code>curl -XGET http<nowiki>s</nowiki>://cloudelastic.wikimedia.org:8243/omega:labswiki/_search?q=example</code>
 
A plausible method to programatically connect to the right cluster is to fetch the <code>/_aliases</code> end-point from each cluster. The cluster that contains indices for a wiki will have an alias matching the internal database name of the wiki. This alias will point to all related indices, such as ''labswiki_content'' and ''labswiki_general''.
 
=== Indices Available ===