Difference between revisions of "Help:CirrusSearch elasticsearch replicas"
← Older edit
Newer edit →
Help:CirrusSearch elasticsearch replicas(view source)
Revision as of 17:11, 3 September 2019
307 BYTES ADDED
,  2 YEARS AGO
→‎Accessing
<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​labswiki_content_<ts>​'' and ''​labswiki_general​labswiki_general_<ts>​''​. There are additional single-index aliases that map from a generic name, like ''labswiki_content'' to the exact index used such as ''labswiki_content_123456789''. Applications should always access indices through aliases to ensure clean switchover when indices are rebuilt for operational reasons.
 
=== Indices Available ===
Ebernhardson
AUTOPATROLLERS
248
EDITS
Wikitech
Privacy policy
Terms of Use
Desktop
HomeRandomLog in Settings DonateAbout WikitechDisclaimers