question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Optimize fluentd buffers and guidance

See original GitHub issue

What would you like to be added:

The Fluentd buffers should be optimized and guidance and simple test results should be shared.

https://github.com/splunk/splunk-connect-for-kubernetes/blob/e680eb1d6fe53c0346ad66ddb22b3d8ee0703226/helm-chart/splunk-connect-for-kubernetes/values.yaml#L635-L643

  buffer:
    "@type": memory
    total_limit_size: 600m
    chunk_limit_size: 10m
    chunk_limit_records: 10000
    flush_interval: 3s
    flush_thread_count: 1
    overflow_action: block
    retry_max_times: 5
    retry_type: periodic

Why is this needed:

chunk_limit_size has tested best at 10-20MB in high volume environments when customers have been doing scale/tress tests, plus we want to keep thruput high and chunk size low! We should try never to be sending a payload that big.

retry_type keeps us away from fluentd’s exponential backoff timer, which can cause fun lag issues. We should lean to always firing out data as fast as we can. dont want to be holding buffers. Saw an instance where after failed attempts fluentd would wait 24 hours to send

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vinzentcommented, Feb 18, 2021

having set the retry_max_interval to something reasonable should workaround the silly 1d retry wait intervals seen with default config and also cope with very short issues better than just a periodic 60s wait time.

0reactions
github-actions[bot]commented, Dec 2, 2021

This issue was closed because it has been inactive for 14 days since being marked as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance Tuning - Fluentd
This article describes how to optimize Fluentd performance within a single process. ... Follow the Pre-installation Guide to configure your OS properly.
Read more >
5 Tips to Optimize Fluentd Performance - Treasure Data Blog
5 Tips to Optimize Fluentd Performance · Use td-agent2, not td-agent1. · Use 'num_threads' option. · Avoid extra computations. · Use external 'gzip' ......
Read more >
Performance tweaking for fluentd aggregator (EFK stack)
Buffer. According to the document of fluentd, buffer is essentially a set of chunk. Chunk is filled by incoming events and is written...
Read more >
Fluentd Performance Tuning - 旺阳
We have deployed the log colleges system in the k8s cluster before, but have poor performance. The maximum resource of Fluentd is 800M ......
Read more >
Buffering & Storage - Fluent Bit: Official Manual
How this Filesystem buffering mechanism deals with high memory usage and backpressure ?: Fluent Bit controls the number of Chunks that are up...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found