Skip to content

Commit

Permalink
Bump default LLO queue size to 250k; set grpc as default protocol (#1…
Browse files Browse the repository at this point in the history
…6483)

* Bump default LLO queue size to 250k

* Set default protocol to grpc
  • Loading branch information
samsondav authored Feb 20, 2025
1 parent 110da7d commit b7a6083
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions core/config/docs/core.toml
Original file line number Diff line number Diff line change
Expand Up @@ -709,14 +709,14 @@ CertFile = "/path/to/client/certs.pem" # Example
# Options are either:
# - "wsrpc" for the legacy websocket protocol
# - "grpc" for the gRPC protocol
Protocol = "wsrpc" # Default
Protocol = "grpc" # Default
# TransmitQueueMaxSize controls the size of the transmit queue. This is scoped
# per OCR instance. If the queue is full, the transmitter will start dropping
# the oldest messages in order to make space.
#
# This is useful if mercury server goes offline and the nop needs to buffer
# transmissions.
TransmitQueueMaxSize = 100_000 # Default
TransmitQueueMaxSize = 250_000 # Default
# TransmitTimeout controls how long the transmitter will wait for a response
# when sending a message to the mercury server, before aborting and considering
# the transmission to be failed.
Expand Down
4 changes: 2 additions & 2 deletions core/services/chainlink/testdata/config-empty-effective.toml
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions core/web/resolver/testdata/config-empty-effective.toml
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions core/web/resolver/testdata/config-multi-chain-effective.toml
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
8 changes: 4 additions & 4 deletions docs/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1962,8 +1962,8 @@ CertFile is the path to a PEM file of trusted root certificate authority certifi
## Mercury.Transmitter
```toml
[Mercury.Transmitter]
Protocol = "wsrpc" # Default
TransmitQueueMaxSize = 100_000 # Default
Protocol = "grpc" # Default
TransmitQueueMaxSize = 250_000 # Default
TransmitTimeout = "5s" # Default
TransmitConcurrency = 100 # Default
ReaperFrequency = "1h" # Default
Expand All @@ -1973,7 +1973,7 @@ Mercury.Transmitter controls settings for the mercury transmitter

### Protocol
```toml
Protocol = "wsrpc" # Default
Protocol = "grpc" # Default
```
Protocol is the protocol to use for the transmitter.

Expand All @@ -1983,7 +1983,7 @@ Options are either:

### TransmitQueueMaxSize
```toml
TransmitQueueMaxSize = 100_000 # Default
TransmitQueueMaxSize = 250_000 # Default
```
TransmitQueueMaxSize controls the size of the transmit queue. This is scoped
per OCR instance. If the queue is full, the transmitter will start dropping
Expand Down
4 changes: 2 additions & 2 deletions testdata/scripts/config/merge_raw_configs.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions testdata/scripts/node/validate/default.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions testdata/scripts/node/validate/defaults-override.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions testdata/scripts/node/validate/disk-based-logging.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions testdata/scripts/node/validate/fallback-override.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions testdata/scripts/node/validate/invalid-ocr-p2p.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions testdata/scripts/node/validate/invalid.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions testdata/scripts/node/validate/valid.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down
4 changes: 2 additions & 2 deletions testdata/scripts/node/validate/warnings.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ LatestReportDeadline = '5s'
CertFile = ''

[Mercury.Transmitter]
Protocol = 'wsrpc'
TransmitQueueMaxSize = 100000
Protocol = 'grpc'
TransmitQueueMaxSize = 250000
TransmitTimeout = '5s'
TransmitConcurrency = 100
ReaperFrequency = '1h0m0s'
Expand Down

0 comments on commit b7a6083

Please sign in to comment.