Difference between revisions of "Help:CirrusSearch elasticsearch replicas"
307 BYTES ADDED
, 2 YEARS AGO
<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_contentlabswiki_content_<ts>'' and ''labswiki_generallabswiki_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 ===