Skip to content

Add bulk_message_request_threshold to ES output plugin#1946

Merged
cw-Guo merged 4 commits into
fluent:masterfrom
madmecodes:feat/es-bulk-message-threshold
May 12, 2026
Merged

Add bulk_message_request_threshold to ES output plugin#1946
cw-Guo merged 4 commits into
fluent:masterfrom
madmecodes:feat/es-bulk-message-threshold

Conversation

@madmecodes
Copy link
Copy Markdown
Contributor

Summary

  • Add bulk_message_request_threshold field to the ElasticsearchCommon struct, making it available for both elasticsearch and elasticsearch_data_stream output plugins
  • This allows users to control the max size of bulk requests sent to Elasticsearch, which is needed when an nginx proxy sits in front of ES with a max request body size limit
  • Regenerated CRDs and updated docs

Fixes #1905

Test plan

  • Verify CRD schema includes bulkMessageRequestThreshold under both elasticsearch and elasticsearchDataStream output specs
  • Deploy a ClusterOutput CR with bulkMessageRequestThreshold set and confirm the generated fluentd config contains bulk_message_request_threshold
  • Confirm existing ES output configs without the new field continue to work unchanged

Copilot AI review requested due to automatic review settings May 6, 2026 10:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR exposes Fluentd Elasticsearch output plugin’s bulk_message_request_threshold setting via the Fluent Operator CRDs (for both elasticsearch and elasticsearch_data_stream) and ensures it’s rendered into the generated Fluentd configuration, alongside regenerated CRDs and updated plugin docs.

Changes:

  • Add bulkMessageRequestThreshold to ElasticsearchCommon so it’s available to both ES output variants.
  • Render bulk_message_request_threshold into Fluentd output config when the field is set.
  • Regenerate CRDs/manifests and update Elasticsearch output plugin documentation.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
manifests/setup/setup.yaml Regenerated install manifest schema to include bulkMessageRequestThreshold for ES outputs.
manifests/setup/fluent-operator-crd.yaml Regenerated CRD bundle with the new ES output field.
docs/plugins/fluentd/output/es.md Documents the newly exposed ES output parameter.
config/crd/bases/fluentd.fluent.io_outputs.yaml Regenerated Output CRD schema including the new field.
config/crd/bases/fluentd.fluent.io_clusteroutputs.yaml Regenerated ClusterOutput CRD schema including the new field.
charts/fluent-operator/crds/fluentd.fluent.io_outputs.yaml Helm CRDs updated to include the new field.
charts/fluent-operator/crds/fluentd.fluent.io_clusteroutputs.yaml Helm CRDs updated to include the new field.
charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_outputs.yaml Helm templated CRDs updated to include the new field.
charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_clusteroutputs.yaml Helm templated CRDs updated to include the new field.
apis/fluentd/v1alpha1/plugins/output/types.go Adds config rendering for bulk_message_request_threshold.
apis/fluentd/v1alpha1/plugins/output/es.go Adds the API field bulkMessageRequestThreshold to ElasticsearchCommon.

IlmPolicyOverwrite *bool `json:"ilmPolicyOverride,omitempty"`
// Optional, Enable logging of 400 reason without enabling debug log level
LogEs400Reason *bool `json:"logEs400Reason,omitempty"`
// Optional, Configure bulk_message request splitting threshold size.
Comment thread apis/fluentd/v1alpha1/plugins/output/types.go
@cw-Guo
Copy link
Copy Markdown
Collaborator

cw-Guo commented May 7, 2026

@madmecodes can you help fix the dco issue?

madmecodes added 2 commits May 8, 2026 13:30
Signed-off-by: madmecodes <ayushguptadev1@gmail.com>
Signed-off-by: madmecodes <ayushguptadev1@gmail.com>
@madmecodes madmecodes force-pushed the feat/es-bulk-message-threshold branch from e77c7ca to b4a9b48 Compare May 8, 2026 08:00
@madmecodes
Copy link
Copy Markdown
Contributor Author

DCO is fixed and passing now!

cw-Guo
cw-Guo previously approved these changes May 12, 2026
Copilot AI review requested due to automatic review settings May 12, 2026 04:31
Signed-off-by: Chengwei Guo <chengweiguo@bytedance.com>
@cw-Guo cw-Guo force-pushed the feat/es-bulk-message-threshold branch from 1093cd0 to 61ec1c8 Compare May 12, 2026 04:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated no new comments.

@cw-Guo cw-Guo merged commit b2a31af into fluent:master May 12, 2026
13 checks passed
@cw-Guo
Copy link
Copy Markdown
Collaborator

cw-Guo commented May 13, 2026

@madmecodes thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for bulk_message_request_size in ES output plugin

3 participants