Skip to content

Commit

Permalink
Change TelemetryIngress.UniConn default to false (#14401)
Browse files Browse the repository at this point in the history
* Change TelemetryIngress.UniConn default to false

* Add changeset
  • Loading branch information
george-dorin authored Sep 12, 2024
1 parent 3ad2953 commit f6443a1
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 21 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-nails-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#updated Changed TelemetryIngress.UniConn default to false
2 changes: 1 addition & 1 deletion core/config/docs/core.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ LeaseRefreshInterval = '1s' # Default

[TelemetryIngress]
# UniConn toggles which ws connection style is used.
UniConn = true # Default
UniConn = false # Default
# Logging toggles verbose logging of the raw telemetry messages being sent.
Logging = false # Default
# BufferSize is the number of telemetry messages to buffer before dropping new ones.
Expand Down
2 changes: 1 addition & 1 deletion core/services/chainlink/config_telemetry_ingress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestTelemetryIngressConfig(t *testing.T) {

ticfg := cfg.TelemetryIngress()
assert.True(t, ticfg.Logging())
assert.True(t, ticfg.UniConn())
assert.False(t, ticfg.UniConn())
assert.Equal(t, uint(1234), ticfg.BufferSize())
assert.Equal(t, uint(4321), ticfg.MaxBatchSize())
assert.Equal(t, time.Minute, ticfg.SendInterval())
Expand Down
4 changes: 2 additions & 2 deletions core/services/chainlink/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func TestConfig_Marshal(t *testing.T) {
},
}
full.TelemetryIngress = toml.TelemetryIngress{
UniConn: ptr(true),
UniConn: ptr(false),
Logging: ptr(true),
BufferSize: ptr[uint16](1234),
MaxBatchSize: ptr[uint16](4321),
Expand Down Expand Up @@ -840,7 +840,7 @@ LeaseDuration = '1m0s'
LeaseRefreshInterval = '1s'
`},
{"TelemetryIngress", Config{Core: toml.Core{TelemetryIngress: full.TelemetryIngress}}, `[TelemetryIngress]
UniConn = true
UniConn = false
Logging = true
BufferSize = 1234
MaxBatchSize = 4321
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
2 changes: 1 addition & 1 deletion core/services/chainlink/testdata/config-full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LeaseDuration = '1m0s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = true
BufferSize = 1234
MaxBatchSize = 4321
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
2 changes: 1 addition & 1 deletion core/web/resolver/testdata/config-empty-effective.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
2 changes: 1 addition & 1 deletion core/web/resolver/testdata/config-full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LeaseDuration = '1m0s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = true
BufferSize = 1234
MaxBatchSize = 4321
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
4 changes: 2 additions & 2 deletions docs/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ LeaseRefreshInterval determines how often to refresh the lease lock. Also contro
## TelemetryIngress
```toml
[TelemetryIngress]
UniConn = true # Default
UniConn = false # Default
Logging = false # Default
BufferSize = 100 # Default
MaxBatchSize = 50 # Default
Expand All @@ -268,7 +268,7 @@ UseBatchSend = true # Default

### UniConn
```toml
UniConn = true # Default
UniConn = false # Default
```
UniConn toggles which ws connection style is used.

Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/default.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/defaults-override.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/disk-based-logging.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/invalid-ocr-p2p.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/invalid.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/valid.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down
2 changes: 1 addition & 1 deletion testdata/scripts/node/validate/warnings.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ LeaseDuration = '10s'
LeaseRefreshInterval = '1s'

[TelemetryIngress]
UniConn = true
UniConn = false
Logging = false
BufferSize = 100
MaxBatchSize = 50
Expand Down

0 comments on commit f6443a1

Please sign in to comment.