CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Sanity\MultiClusterRemediatorHelper Class Reference

Helper to maintain the association with Remediators and theirs corresponding BufferedRemediator. More...

Public Member Functions

 __construct (array $perClusterRemediators, array $perClusterBufferedRemediator, AllClustersQueueingRemediator $allClusterRemediator)
 
 sendBatch ()
 Evaluate if all BufferedRemediator contain the same elements and replay the recorded actions to the all cluster remediator or to their corresponding remediators otherwize.
 

Detailed Description

Helper to maintain the association with Remediators and theirs corresponding BufferedRemediator.

When calling sendBatch this class evaluates if all action scheduled to the BufferedRemediator are the same and send them to the all cluster remediator. The aim is to minimize the number of generated LinksUpdate jobs in a setup where there are many clusters. If the same elements are to be verified on all the clusters then it is equivalent and more efficient to send these elements to all clusters using the [ "cluster" => null ] job param as some steps (link counting) will be shared accross all the clusters as opposed to sending a LinksUpdate job per cluster.

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Sanity\MultiClusterRemediatorHelper::__construct ( array $perClusterRemediators,
array $perClusterBufferedRemediator,
AllClustersQueueingRemediator $allClusterRemediator )
Parameters
QueueingRemediator[]$perClusterRemediators
BufferedRemediator[]$perClusterBufferedRemediator
AllClustersQueueingRemediator$allClusterRemediator
See also
\CirrusSearch\Job\CirrusGenericJob::decideClusters()

The documentation for this class was generated from the following file: