Skip to content

Commit

Permalink
Turned off data integrity check (#633)
Browse files Browse the repository at this point in the history
* Turned off data integrity check when writing and reading logs from the filesystem for FluentBit

* Replaced outdated comment

* Addressed PR comments

* Fixed typo in comment

Co-authored-by: Ling Huang <[email protected]>
  • Loading branch information
avilevy18 and qingling128 authored Jun 13, 2022
1 parent 7d8d128 commit 312285a
Show file tree
Hide file tree
Showing 135 changed files with 137 additions and 136 deletions.
5 changes: 3 additions & 2 deletions confgenerator/fluentbit/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ 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",
// Disable data integrity check to avoid spurious corruption errors due to empty spaces.
// Most users do not enforce checksum.
"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

0 comments on commit 312285a

Please sign in to comment.