Skip to content

Commit c77efb2

Browse files
authored
hot_reload: Add a description for hot-reloaded count endpoint (#1192)
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent a3f6f87 commit c77efb2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

administration/hot-reload.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ Hot reloading also can be kicked via `SIGHUP`.
4444

4545
`SIGHUP` signal is not supported on Windows. So, users can't enable this feature on Windows.
4646

47+
## How to confirm reloaded or not
48+
49+
### via HTTP
50+
51+
The number of hot reloaded count can be obtained via the HTTP endpoint that is:
52+
53+
* `GET /api/v2/reload`
54+
55+
The endpoint returns the count of hot-reloaded as follows:
56+
57+
```json
58+
{"hot_reload_count":3}
59+
```
60+
61+
The default value of that number is 0.
62+
4763
## Limitations
4864

4965
The hot reloading feature is currently working on Linux, macOS and Windows.

0 commit comments

Comments
 (0)