Skip to content

Commit

Permalink
Updated depricated fluentd buffer parameter (#94)
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Liv <[email protected]>
  • Loading branch information
Xartos authored Oct 27, 2021
1 parent 0354ba5 commit aedd8c0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/fluentd-elasticsearch/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: fluentd-elasticsearch
version: 12.0.0
version: 13.0.0
appVersion: 3.3.0
type: application
home: https://www.fluentd.org/
Expand Down
8 changes: 7 additions & 1 deletion charts/fluentd-elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ The following table lists the configurable parameters of the Fluentd elasticsear
| `elasticsearch.buffer.retryForever` | Elasticsearch Buffer retry forever | `true` |
| `elasticsearch.buffer.retryMaxInterval` | Elasticsearch Buffer retry max interval | `30` |
| `elasticsearch.buffer.chunkLimitSize` | Elasticsearch Buffer chunk limit size | `2M` |
| `elasticsearch.buffer.queueLimitLength` | Elasticsearch Buffer queue limit size | `8` |
| `elasticsearch.buffer.totalLimitSize` | Elasticsearch Buffer queue limit size | `512M` |
| `elasticsearch.buffer.overflowAction` | Elasticsearch Buffer over flow action | `block` |
| `env` | List of env vars that are added to the fluentd pods | `{}` |
| `fluentdArgs` | Fluentd args | `--no-supervisor -q` |
Expand Down Expand Up @@ -352,3 +352,9 @@ The chart requires now Helm >= 3.0.0 and Kubernetes >= 1.16.0
### From a version < 11.0.0 to version => 12.0.0

If you were using `awsSigningSidecar` to set up an AWS signing sidecar proxy, this has now moved to the `extraContainers` property. The example in the `values.yaml` shows the equivalent AWS signing sidecar configuration expressed now as `extraContainers`.

### From a version < 12.0.0 to version => 13.0.0

#### The following fields were changed in the elasticsearch block

- `buffer.queueLimitLength` in favor of `buffer.totalLimitSize` since `queueLimitLength` [is deprecated](https://docs.fluentd.org/configuration/buffer-section#buffering-parameters).
2 changes: 1 addition & 1 deletion charts/fluentd-elasticsearch/templates/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ data:
retry_forever "#{ENV['OUTPUT_BUFFER_RETRY_FOREVER']}"
retry_max_interval "#{ENV['OUTPUT_BUFFER_RETRY_MAX_INTERVAL']}"
chunk_limit_size "#{ENV['OUTPUT_BUFFER_CHUNK_LIMIT']}"
queue_limit_length "#{ENV['OUTPUT_BUFFER_QUEUE_LIMIT']}"
total_limit_size "#{ENV['OUTPUT_BUFFER_TOTAL_LIMIT_SIZE']}"
overflow_action "#{ENV['OUTPUT_BUFFER_OVERFLOW_ACTION']}"
</buffer>
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions charts/fluentd-elasticsearch/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ spec:
value: {{ .Values.elasticsearch.typeName | quote }}
- name: OUTPUT_BUFFER_CHUNK_LIMIT
value: {{ .Values.elasticsearch.buffer.chunkLimitSize | quote }}
- name: OUTPUT_BUFFER_QUEUE_LIMIT
value: {{ .Values.elasticsearch.buffer.queueLimitLength | quote }}
- name: OUTPUT_BUFFER_TOTAL_LIMIT_SIZE
value: {{ .Values.elasticsearch.buffer.totalLimitSize | quote }}
{{- if .Values.elasticsearch.buffer.chunkKeys }}
- name: OUTPUT_BUFFER_CHUNK_KEYS
value: {{ .Values.elasticsearch.buffer.chunkKeys | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/fluentd-elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ elasticsearch:
retryForever: true
retryMaxInterval: 30
chunkLimitSize: "2M"
queueLimitLength: 8
totalLimitSize: "512M"
overflowAction: "block"

# If you want to change args of fluentd process
Expand Down

0 comments on commit aedd8c0

Please sign in to comment.