Skip to content

Commit 78441cc

Browse files
committed
debugging: note Grace setting in SIGTERM section
Signed-off-by: Wesley Pettit <[email protected]>
1 parent abedbf0 commit 78441cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

troubleshooting/debugging.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ You may see that Fluent Bit exited with one of its last logs as:
161161

162162
This means that Fluent Bit received a SIGTERM. This means that Fluent Bit was requested to stop; SIGTERM is associated with graceful shutdown. Fluent Bit will be sent a SIGTERM when your container orchestrator/runtime wants to stop its container/task/pod.
163163

164+
When Fluent Bit recieves a SIGTERM, it will begin a graceful shutdown and will attempt to send all currently buffered logs. Its inputs will be paused and then it will shutdown once the [configured `Grace` period has elapsed](https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/configuration-file). Please note that the default Grace period for Fluent Bit is only 5 seconds, whereas, in most container orchestrators the default grace period time is 30 seconds.
165+
164166
If you see this in your logs and you are troubleshooting a stopped task/pod, this log indicates that Fluent Bit did not cause the shutdown. If there is another container in your task/pod check if it exited unexpectedly.
165167

166168
If you are an Amazon ECS FireLens user and you see your task status as:

0 commit comments

Comments
 (0)