Hector Oswaldo Caballero | 28ed83b | 2018-08-06 07:40:18 -0400 | [diff] [blame] | 1 | |
Hector Oswaldo Caballero | 74a07ab | 2015-08-10 17:00:43 -0400 | [diff] [blame] | 2 | @PLUGIN@ Configuration |
| 3 | ========================= |
| 4 | |
Matthias Sohn | f707ea9 | 2019-05-02 23:21:32 +0200 | [diff] [blame] | 5 | The @PLUGIN@ plugin must be installed as a library module in the |
Marcin Czech | e7e66d2 | 2019-11-23 15:36:03 +0100 | [diff] [blame] | 6 | `$GERRIT_SITE/lib` folder of all the instances. Configuration should |
| 7 | be specified in the `$site_path/etc/@PLUGIN@.config` file. |
Luca Milanesio | 716282b | 2018-02-19 15:18:36 -0800 | [diff] [blame] | 8 | |
Luca Milanesio | e05bedb | 2019-02-22 10:20:29 +0000 | [diff] [blame] | 9 | ## Configuration parameters |
Hector Oswaldo Caballero | 74a07ab | 2015-08-10 17:00:43 -0400 | [diff] [blame] | 10 | |
Luca Milanesio | 22ffb22 | 2018-02-21 10:28:30 -0800 | [diff] [blame] | 11 | ```cache.synchronize``` |
Owen Li | 6682300 | 2017-05-31 15:44:11 -0400 | [diff] [blame] | 12 | : Whether to synchronize cache evictions. |
| 13 | Defaults to true. |
| 14 | |
Luca Milanesio | 22ffb22 | 2018-02-21 10:28:30 -0800 | [diff] [blame] | 15 | ```cache.threadPoolSize``` |
Luca Milanesio | 6b6c5a8 | 2019-03-23 19:46:03 -0700 | [diff] [blame] | 16 | : Maximum number of threads used to send cache evictions to the target |
| 17 | instance. |
| 18 | |
Hugo Arès | 02843f6 | 2018-04-20 08:57:25 +0200 | [diff] [blame] | 19 | Defaults to 4. |
Hugo Arès | a897ed8 | 2017-05-31 11:47:03 -0400 | [diff] [blame] | 20 | |
Luca Milanesio | 22ffb22 | 2018-02-21 10:28:30 -0800 | [diff] [blame] | 21 | ```cache.pattern``` |
David Pursehouse | affefd9 | 2017-08-03 17:18:30 +0200 | [diff] [blame] | 22 | : Pattern to match names of custom caches for which evictions should be |
| 23 | forwarded (in addition to the core caches that are always forwarded). May be |
| 24 | specified more than once to add multiple patterns. |
Luca Milanesio | 6b6c5a8 | 2019-03-23 19:46:03 -0700 | [diff] [blame] | 25 | |
David Pursehouse | affefd9 | 2017-08-03 17:18:30 +0200 | [diff] [blame] | 26 | Defaults to an empty list, meaning only evictions of the core caches are |
| 27 | forwarded. |
| 28 | |
Luca Milanesio | 22ffb22 | 2018-02-21 10:28:30 -0800 | [diff] [blame] | 29 | ```event.synchronize``` |
Owen Li | 6682300 | 2017-05-31 15:44:11 -0400 | [diff] [blame] | 30 | : Whether to synchronize stream events. |
| 31 | Defaults to true. |
| 32 | |
Luca Milanesio | f51d7be | 2018-12-15 00:54:03 +0000 | [diff] [blame] | 33 | ```index.numStripedLocks``` |
Matthias Sohn | f707ea9 | 2019-05-02 23:21:32 +0200 | [diff] [blame] | 34 | : Number of striped locks to use during reindexing of secondary indexes. |
Luca Milanesio | f51d7be | 2018-12-15 00:54:03 +0000 | [diff] [blame] | 35 | Defaults to 10 |
| 36 | |
Luca Milanesio | 22ffb22 | 2018-02-21 10:28:30 -0800 | [diff] [blame] | 37 | ```index.synchronize``` |
Owen Li | 6682300 | 2017-05-31 15:44:11 -0400 | [diff] [blame] | 38 | : Whether to synchronize secondary indexes. |
| 39 | Defaults to true. |
| 40 | |
Luca Milanesio | 22ffb22 | 2018-02-21 10:28:30 -0800 | [diff] [blame] | 41 | ```index.threadPoolSize``` |
Hector Oswaldo Caballero | 74a07ab | 2015-08-10 17:00:43 -0400 | [diff] [blame] | 42 | : Maximum number of threads used to send index events to the target instance. |
Hugo Arès | 02843f6 | 2018-04-20 08:57:25 +0200 | [diff] [blame] | 43 | Defaults to 4. |
Hugo Arès | 7eeb21e | 2017-03-02 22:48:15 -0500 | [diff] [blame] | 44 | |
Luca Milanesio | 768a4ac | 2018-06-05 23:39:11 +0100 | [diff] [blame] | 45 | ```index.maxTries``` |
| 46 | : Maximum number of times the plugin should attempt to reindex changes. |
Luca Milanesio | 6b6c5a8 | 2019-03-23 19:46:03 -0700 | [diff] [blame] | 47 | Setting this value to 0 will disable retries. After this number of failed |
| 48 | tries, an error is logged and the local index should be considered stale and |
| 49 | needs to be investigated and manually reindexed. |
| 50 | |
Luca Milanesio | 768a4ac | 2018-06-05 23:39:11 +0100 | [diff] [blame] | 51 | Defaults to 2. |
| 52 | |
| 53 | ```index.retryInterval``` |
Matthias Sohn | f707ea9 | 2019-05-02 23:21:32 +0200 | [diff] [blame] | 54 | : The time interval in milliseconds between subsequent auto-retries. |
Luca Milanesio | 768a4ac | 2018-06-05 23:39:11 +0100 | [diff] [blame] | 55 | Defaults to 30000 (30 seconds). |
| 56 | |
Marcin Czech | 6a0bc68 | 2019-11-23 15:26:26 +0100 | [diff] [blame] | 57 | ```broker.indexEventTopic``` |
| 58 | : Name of the topic to use for publishing indexing events |
Luca Milanesio | 9cdf46a | 2019-02-16 00:56:01 +0000 | [diff] [blame] | 59 | Defaults to GERRIT.EVENT.INDEX |
| 60 | |
Marcin Czech | 6a0bc68 | 2019-11-23 15:26:26 +0100 | [diff] [blame] | 61 | ```broker.streamEventTopic``` |
| 62 | : Name of the topic to use for publishing stream events |
Luca Milanesio | 9cdf46a | 2019-02-16 00:56:01 +0000 | [diff] [blame] | 63 | Defaults to GERRIT.EVENT.STREAM |
| 64 | |
Marcin Czech | 6a0bc68 | 2019-11-23 15:26:26 +0100 | [diff] [blame] | 65 | ```broker.cacheEventTopic``` |
| 66 | : Name of the topic to use for publishing cache eviction events |
David Ostrovsky | d3baad6 | 2019-02-15 14:55:37 +0100 | [diff] [blame] | 67 | Defaults to GERRIT.EVENT.CACHE |
| 68 | |
Marcin Czech | 6a0bc68 | 2019-11-23 15:26:26 +0100 | [diff] [blame] | 69 | ```broker.projectListEventTopic``` |
| 70 | : Name of the topic to use for publishing cache eviction events |
David Ostrovsky | d3baad6 | 2019-02-15 14:55:37 +0100 | [diff] [blame] | 71 | Defaults to GERRIT.EVENT.PROJECT.LIST |
David Ostrovsky | 4ee5947 | 2019-02-14 21:55:48 +0100 | [diff] [blame] | 72 | |
Luca Milanesio | 54a643c | 2019-04-24 16:43:23 +0100 | [diff] [blame] | 73 | ```ref-database.enabled``` |
| 74 | : Enable the use of a shared ref-database |
| 75 | Defaults: true |
| 76 | |
Tiago Palma | 251f2ec | 2019-04-30 18:46:08 +0100 | [diff] [blame] | 77 | ```ref-database.enforcementRules.<policy>``` |
| 78 | : Level of consistency enforcement across sites on a project:refs basis. |
Antonio Barone | d13c2b7 | 2020-10-02 18:54:30 +0200 | [diff] [blame^] | 79 | Supports two values for enforcing the policy on multiple projects or refs. |
Tiago Palma | 251f2ec | 2019-04-30 18:46:08 +0100 | [diff] [blame] | 80 | If the project or ref is omitted, apply the policy to all projects or all refs. |
| 81 | |
| 82 | The <policy> can be one of the following values: |
| 83 | |
| 84 | 1. REQUIRED - Throw an exception if a git ref-update is processed again |
| 85 | a local ref not yet in sync with the shared ref-database. |
| 86 | The user transaction is cancelled. The Gerrit GUI (or the Git client) |
| 87 | receives an HTTP 500 - Internal Server Error. |
| 88 | |
Antonio Barone | d13c2b7 | 2020-10-02 18:54:30 +0200 | [diff] [blame^] | 89 | 2. IGNORED - Ignore any validation against the shared ref-database. |
Tiago Palma | 251f2ec | 2019-04-30 18:46:08 +0100 | [diff] [blame] | 90 | |
| 91 | *Example:* |
| 92 | ``` |
| 93 | [ref-database "enforcementRules"] |
Antonio Barone | d13c2b7 | 2020-10-02 18:54:30 +0200 | [diff] [blame^] | 94 | IGNORED = AProject:/refs/heads/feature |
Tiago Palma | 251f2ec | 2019-04-30 18:46:08 +0100 | [diff] [blame] | 95 | ``` |
| 96 | |
Antonio Barone | d13c2b7 | 2020-10-02 18:54:30 +0200 | [diff] [blame^] | 97 | Ignore the alignment with the shared ref-database for AProject on refs/heads/feature. |
Tiago Palma | 251f2ec | 2019-04-30 18:46:08 +0100 | [diff] [blame] | 98 | |
Marcin Czech | e7e66d2 | 2019-11-23 15:36:03 +0100 | [diff] [blame] | 99 | Defaults: No rules = All projects are REQUIRED to be consistent on all refs. |