Commit 33423a4
authored
Prevent
Elasticsearch can only process cluster state changes (e.g. adding new aliases) sequentially on the master node. Running multiple instances of this job (e.g. with the `EnsureElasticSearchAliases` command) can overload the Elasticsearch master node, causing Jobs to fail.
Prevent multiple `ElasticSearchAliasInit` jobs from running at the same time for each Elasticsearch cluster by using the `WithoutOverlapping` middleware [1]
[1]: https://laravel.com/docs/10.x/queues#preventing-job-overlaps
Bug: T416158ElasticSearchAliasInit jobs overlapping (#1056)1 parent 8f25277 commit 33423a4
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
27 | 40 | | |
28 | 41 | | |
29 | 42 | | |
| |||
0 commit comments