Skip to content

Commit ace8f63

Browse files
authored
Merge pull request #1753 from kube-logging/release-4.6
Release 4.6 back to master
2 parents e8d7192 + c4df1e5 commit ace8f63

File tree

11 files changed

+36
-0
lines changed

11 files changed

+36
-0
lines changed

charts/logging-operator/crds/logging.banzaicloud.io_fluentbitagents.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,8 @@ spec:
17391739
keepaliveMaxRecycle:
17401740
format: int32
17411741
type: integer
1742+
maxWorkerConnections:
1743+
type: integer
17421744
sourceAddress:
17431745
type: string
17441746
type: object

charts/logging-operator/crds/logging.banzaicloud.io_loggings.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2784,6 +2784,8 @@ spec:
27842784
keepaliveMaxRecycle:
27852785
format: int32
27862786
type: integer
2787+
maxWorkerConnections:
2788+
type: integer
27872789
sourceAddress:
27882790
type: string
27892791
type: object
@@ -11863,6 +11865,8 @@ spec:
1186311865
keepaliveMaxRecycle:
1186411866
format: int32
1186511867
type: integer
11868+
maxWorkerConnections:
11869+
type: integer
1186611870
sourceAddress:
1186711871
type: string
1186811872
type: object

charts/logging-operator/crds/logging.banzaicloud.io_nodeagents.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4335,6 +4335,8 @@ spec:
43354335
keepaliveMaxRecycle:
43364336
format: int32
43374337
type: integer
4338+
maxWorkerConnections:
4339+
type: integer
43384340
sourceAddress:
43394341
type: string
43404342
type: object

config/crd/bases/logging.banzaicloud.io_fluentbitagents.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,8 @@ spec:
17391739
keepaliveMaxRecycle:
17401740
format: int32
17411741
type: integer
1742+
maxWorkerConnections:
1743+
type: integer
17421744
sourceAddress:
17431745
type: string
17441746
type: object

config/crd/bases/logging.banzaicloud.io_loggings.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2784,6 +2784,8 @@ spec:
27842784
keepaliveMaxRecycle:
27852785
format: int32
27862786
type: integer
2787+
maxWorkerConnections:
2788+
type: integer
27872789
sourceAddress:
27882790
type: string
27892791
type: object
@@ -11863,6 +11865,8 @@ spec:
1186311865
keepaliveMaxRecycle:
1186411866
format: int32
1186511867
type: integer
11868+
maxWorkerConnections:
11869+
type: integer
1186611870
sourceAddress:
1186711871
type: string
1186811872
type: object

config/crd/bases/logging.banzaicloud.io_nodeagents.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4335,6 +4335,8 @@ spec:
43354335
keepaliveMaxRecycle:
43364336
format: int32
43374337
type: integer
4338+
maxWorkerConnections:
4339+
type: integer
43384340
sourceAddress:
43394341
type: string
43404342
type: object

config/samples/syslog-ng-simple.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
spec:
66
controlNamespace: default
77
fluentbit: {}
8+
# network:
9+
# maxWorkerConnections: 2
10+
# syslogng_output:
11+
# Workers: 5
812
syslogNG:
913
globalOptions:
1014
log_level: trace

docs/configuration/crds/v1beta1/fluentbit_types.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ How many times a TCP keepalive connection can be used before being recycled
313313

314314
Default: 0, disabled
315315

316+
### maxWorkerConnections (int, optional) {#fluentbitnetwork-maxworkerconnections}
317+
318+
Set maximum number of TCP connections that can be established per worker.
319+
320+
Default: 0, unlimited
321+
316322
### sourceAddress (string, optional) {#fluentbitnetwork-sourceaddress}
317323

318324
Specify network address (interface) to use for connection and data traffic.

pkg/resources/fluentbit/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ var fluentbitNetworkTemplate = `
185185
{{- if .Network.SourceAddress }}
186186
net.source_address {{ .Network.SourceAddress }}
187187
{{- end }}
188+
{{- if .Network.MaxWorkerConnections }}
189+
net.max_worker_connections {{ .Network.MaxWorkerConnections }}
190+
{{- end }}
188191
{{- end }}
189192
`
190193

pkg/resources/fluentbit/configsecret.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ type FluentbitNetwork struct {
125125
KeepaliveMaxRecycleSet bool
126126
KeepaliveMaxRecycle uint32
127127
SourceAddress string
128+
MaxWorkerConnections int
128129
}
129130

130131
// https://docs.fluentbit.io/manual/pipeline/outputs/tcp-and-tls
@@ -187,6 +188,10 @@ func newFluentbitNetwork(network v1beta1.FluentbitNetwork) (result FluentbitNetw
187188
if network.SourceAddress != "" {
188189
result.SourceAddress = network.SourceAddress
189190
}
191+
192+
if network.MaxWorkerConnections != 0 {
193+
result.MaxWorkerConnections = network.MaxWorkerConnections
194+
}
190195
return
191196
}
192197

0 commit comments

Comments
 (0)