CirrusSearch
Elasticsearch-powered search for MediaWiki
|
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. | |
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.
CirrusSearch\Sanity\MultiClusterRemediatorHelper::__construct | ( | array | $perClusterRemediators, |
array | $perClusterBufferedRemediator, | ||
AllClustersQueueingRemediator | $allClusterRemediator ) |
QueueingRemediator[] | $perClusterRemediators | |
BufferedRemediator[] | $perClusterBufferedRemediator | |
AllClustersQueueingRemediator | $allClusterRemediator |