Skip to content

Commit

Permalink
Re #39: Documented shutdown timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkowalcz committed Jul 30, 2021
1 parent 81e419a commit 51f28da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions log4j2-appender/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,8 @@ in [promtail configuration](https://grafana.com/docs/loki/latest/clients/promtai
Like
in [promtail configuration](https://grafana.com/docs/loki/latest/clients/promtail/configuration/) `maximum amount of time to wait before sending a batch, even if that batch isn't full`
.

#### shutdownTimeoutSeconds (optional, default = 10s)

On logging system shutdown (or config reload) Tjahzi will flush its internal buffers so that no logs are lost. This
property sets limit on how long to wait for this to complete before proceeding with shutdown.
1 change: 1 addition & 0 deletions logback-appender/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,4 @@ or use Tjahzi optimized efficient, low allocation encoder:
| UseOffHeapBuffer | true | Whether Tjahzi should allocate native buffer for `Log buffer` component. We can go into a rabbit hole of divagations what are the implications of this. Most important in our view is that having 10s or 100s of MB of space taken out of heap is not very friendly to garbage collector which might have to occasionally copy it around. |
| BatchSize | 100 KB | Like in [promtail configuration](https://grafana.com/docs/loki/latest/clients/promtail/configuration/) `maximum batch size (in bytes) of logs to accumulate before sending the batch to Loki`.|
| BatchWait | 5s | Like in [promtail configuration](https://grafana.com/docs/loki/latest/clients/promtail/configuration/) `maximum amount of time to wait before sending a batch, even if that batch isn't full`.|
| shutdownTimeoutSeconds | 10s | On logging system shutdown (or config reload) Tjahzi will flush its internal buffers so that no logs are lost. This property sets limit on how long to wait for this to complete before proceeding with shutdown. |

0 comments on commit 51f28da

Please sign in to comment.