blob: 67e942f16e36472d4c9e4e6c90492daedf319c6d [file] [log] [blame] [view]
Hector Oswaldo Caballero28ed83b2018-08-06 07:40:18 -04001
Hector Oswaldo Caballero74a07ab2015-08-10 17:00:43 -04002@PLUGIN@ Configuration
3=========================
4
Matthias Sohnf707ea92019-05-02 23:21:32 +02005The @PLUGIN@ plugin must be installed as a library module in the
Marcin Czeche7e66d22019-11-23 15:36:03 +01006`$GERRIT_SITE/lib` folder of all the instances. Configuration should
7be specified in the `$site_path/etc/@PLUGIN@.config` file.
Luca Milanesio716282b2018-02-19 15:18:36 -08008
Luca Milanesioe05bedb2019-02-22 10:20:29 +00009## Configuration parameters
Hector Oswaldo Caballero74a07ab2015-08-10 17:00:43 -040010
Luca Milanesio22ffb222018-02-21 10:28:30 -080011```cache.synchronize```
Owen Li66823002017-05-31 15:44:11 -040012: Whether to synchronize cache evictions.
13 Defaults to true.
14
Luca Milanesio22ffb222018-02-21 10:28:30 -080015```cache.threadPoolSize```
Luca Milanesio6b6c5a82019-03-23 19:46:03 -070016: Maximum number of threads used to send cache evictions to the target
17 instance.
18
Hugo Arès02843f62018-04-20 08:57:25 +020019 Defaults to 4.
Hugo Arèsa897ed82017-05-31 11:47:03 -040020
Luca Milanesio22ffb222018-02-21 10:28:30 -080021```cache.pattern```
David Pursehouseaffefd92017-08-03 17:18:30 +020022: 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 Milanesio6b6c5a82019-03-23 19:46:03 -070025
David Pursehouseaffefd92017-08-03 17:18:30 +020026 Defaults to an empty list, meaning only evictions of the core caches are
27 forwarded.
28
Luca Milanesio22ffb222018-02-21 10:28:30 -080029```event.synchronize```
Owen Li66823002017-05-31 15:44:11 -040030: Whether to synchronize stream events.
31 Defaults to true.
32
Luca Milanesiof51d7be2018-12-15 00:54:03 +000033```index.numStripedLocks```
Matthias Sohnf707ea92019-05-02 23:21:32 +020034: Number of striped locks to use during reindexing of secondary indexes.
Luca Milanesiof51d7be2018-12-15 00:54:03 +000035 Defaults to 10
36
Luca Milanesio22ffb222018-02-21 10:28:30 -080037```index.synchronize```
Owen Li66823002017-05-31 15:44:11 -040038: Whether to synchronize secondary indexes.
39 Defaults to true.
40
Luca Milanesio22ffb222018-02-21 10:28:30 -080041```index.threadPoolSize```
Hector Oswaldo Caballero74a07ab2015-08-10 17:00:43 -040042: Maximum number of threads used to send index events to the target instance.
Hugo Arès02843f62018-04-20 08:57:25 +020043 Defaults to 4.
Hugo Arès7eeb21e2017-03-02 22:48:15 -050044
Luca Milanesio768a4ac2018-06-05 23:39:11 +010045```index.maxTries```
46: Maximum number of times the plugin should attempt to reindex changes.
Luca Milanesio6b6c5a82019-03-23 19:46:03 -070047 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 Milanesio768a4ac2018-06-05 23:39:11 +010051 Defaults to 2.
52
53```index.retryInterval```
Matthias Sohnf707ea92019-05-02 23:21:32 +020054: The time interval in milliseconds between subsequent auto-retries.
Luca Milanesio768a4ac2018-06-05 23:39:11 +010055 Defaults to 30000 (30 seconds).
56
Marcin Czech6a0bc682019-11-23 15:26:26 +010057```broker.indexEventTopic```
58: Name of the topic to use for publishing indexing events
Luca Milanesio9cdf46a2019-02-16 00:56:01 +000059 Defaults to GERRIT.EVENT.INDEX
60
Marcin Czech6a0bc682019-11-23 15:26:26 +010061```broker.streamEventTopic```
62: Name of the topic to use for publishing stream events
Luca Milanesio9cdf46a2019-02-16 00:56:01 +000063 Defaults to GERRIT.EVENT.STREAM
64
Marcin Czech6a0bc682019-11-23 15:26:26 +010065```broker.cacheEventTopic```
66: Name of the topic to use for publishing cache eviction events
David Ostrovskyd3baad62019-02-15 14:55:37 +010067 Defaults to GERRIT.EVENT.CACHE
68
Marcin Czech6a0bc682019-11-23 15:26:26 +010069```broker.projectListEventTopic```
70: Name of the topic to use for publishing cache eviction events
David Ostrovskyd3baad62019-02-15 14:55:37 +010071 Defaults to GERRIT.EVENT.PROJECT.LIST
David Ostrovsky4ee59472019-02-14 21:55:48 +010072
Luca Milanesio54a643c2019-04-24 16:43:23 +010073```ref-database.enabled```
74: Enable the use of a shared ref-database
75 Defaults: true
76
Tiago Palma251f2ec2019-04-30 18:46:08 +010077```ref-database.enforcementRules.<policy>```
78: Level of consistency enforcement across sites on a project:refs basis.
Antonio Baroned13c2b72020-10-02 18:54:30 +020079 Supports two values for enforcing the policy on multiple projects or refs.
Tiago Palma251f2ec2019-04-30 18:46:08 +010080 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 Baroned13c2b72020-10-02 18:54:30 +020089 2. IGNORED - Ignore any validation against the shared ref-database.
Tiago Palma251f2ec2019-04-30 18:46:08 +010090
91 *Example:*
92 ```
93 [ref-database "enforcementRules"]
Antonio Baroned13c2b72020-10-02 18:54:30 +020094 IGNORED = AProject:/refs/heads/feature
Tiago Palma251f2ec2019-04-30 18:46:08 +010095 ```
96
Antonio Baroned13c2b72020-10-02 18:54:30 +020097 Ignore the alignment with the shared ref-database for AProject on refs/heads/feature.
Tiago Palma251f2ec2019-04-30 18:46:08 +010098
Marcin Czeche7e66d22019-11-23 15:36:03 +010099 Defaults: No rules = All projects are REQUIRED to be consistent on all refs.