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

hot-reload: add config file option #1226

Merged
merged 1 commit into from
Oct 10, 2023
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
16 changes: 7 additions & 9 deletions administration/hot-reload.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ description: Enable hot reload through SIGHUP signal or an HTTP endpoint

# Hot Reload

Fluent Bit supports the hot reloading feature when enabled via the command line with `-Y` or `--enable-hot-reload` option.
Fluent Bit supports the hot reloading feature when enabled via the configuration file or command line with `-Y` or `--enable-hot-reload` option.

## Getting Started

To get started with reloading via HTTP, the first step is to enable the HTTP Server from the configuration file:

```
```toml
[SERVICE]
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_PORT 2020

# Other stuff of plugin configurations
Hot_Reload On
...
```

The above configuration snippet will enable the HTTP endpoint for hot reloading.
Expand All @@ -32,11 +32,10 @@ Hot reloading can be kicked via HTTP endpoints that are:

If users don't enable the hot reloading feature, hot reloading via these endpoints will not work.

For using curl to reload fluent-bit, users must specify an empty request body as:
For using curl to reload Fluent Bit, users must specify an empty request body as:


```text
$ curl -X POST -d {} localhost:2020/api/v2/reload
```shell
curl -X POST -d '{}' localhost:2020/api/v2/reload
```

### Via Signal
Expand All @@ -48,4 +47,3 @@ Hot reloading also can be kicked via `SIGHUP`.
## Limitations

The hot reloading feature is currently working on Linux and macOS. Windows is not supported yet.