Skip to content

Added YAML examples to scheduling and retries doc. Fixes #1742. #1743

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions administration/scheduling-and-retries.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,22 @@ The upper bound will be 30. The waiting time will be a random number between (3,
The following example configures the `scheduler.base` as `3` seconds and
`scheduler.cap` as `30` seconds.

{% tabs %}
{% tab title="fluent-bit.yaml" %}

```yaml
service:
flush: 5
daemon: off
log_level: debug
scheduler.base: 3
scheduler.cap: 30
```

{% endtab %}

{% tab title="fluent-bit.conf" %}

```text
[SERVICE]
Flush 5
Expand All @@ -74,6 +90,9 @@ The following example configures the `scheduler.base` as `3` seconds and
scheduler.cap 30
```

{% endtab %}
{% endtabs %}

The waiting time will be:

| Nth retry | Waiting time range (seconds) |
Expand All @@ -100,6 +119,31 @@ impose a limit to try N times and then discard the data after reaching that limi
The following example configures two outputs, where the HTTP plugin has an unlimited
number of retries, and the Elasticsearch plugin have a limit of `5` retries:

{% tabs %}
{% tab title="fluent-bit.yaml" %}

```yaml
pipeline:
inputs:
...

outputs:
- name: http
host: 192.168.5.6
port: 8080
retry_limit: false

- name: es
host: 192.168.5.20
port: 9200
logstash_format: on
retry_limit: 5
```

{% endtab %}

{% tab title="fluent-bit.conf" %}

```text
[OUTPUT]
Name http
Expand All @@ -114,3 +158,6 @@ number of retries, and the Elasticsearch plugin have a limit of `5` retries:
Logstash_Format On
Retry_Limit 5
```

{% endtab %}
{% endtabs %}