Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turned off data integrity check #633

Merged
merged 9 commits into from
Jun 13, 2022
4 changes: 2 additions & 2 deletions confgenerator/fluentbit/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func (s Service) Component() Component {
// https://docs.fluentbit.io/manual/administration/buffering-and-storage#service-section-configuration
// storage.path is set by Fluent Bit systemd unit (e.g. /var/lib/google-cloud-ops-agent/fluent-bit/buffers).
"storage.sync": "normal",
// Enable the data integrity check when writing and reading data from the filesystem.
"storage.checksum": "on",
// Turned off due to empty spaces being considered as corrupted. Most users do not enforce checksum. See:b/233109163 for more info
Copy link
Member

Choose a reason for hiding this comment

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

How about:

Suggested change
// Turned off due to empty spaces being considered as corrupted. Most users do not enforce checksum. See:b/233109163 for more info
// Disable data integrity check to avoid spurious corruption errors due to empty spaces.
// Most users do not enforce checksum.

I don't believe there's a need to mention the bug in the code — git blame can trace it to this PR, which already references it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed in: adf27bc

Copy link
Member

Choose a reason for hiding this comment

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

Note: Disable, not Disabled (because it describes what the option does, not what this PR did)…

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback.

Changed in: d177711

"storage.checksum": "off",
// The maximum amount of data to load into the memory when processing old chunks from the backlog that is from previous Fluent Bit processes (e.g. Fluent Bit may have crashed or restarted).
"storage.backlog.mem_limit": "50M",
// Enable storage metrics in the built-in HTTP server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level warn
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Log_Level info
dns.resolver legacy
storage.backlog.mem_limit 50M
storage.checksum on
storage.checksum off
storage.max_chunks_up 128
storage.metrics on
storage.sync normal
Expand Down
Loading