From 763b327b0c092215005ff917352f51cbdcad2d9c Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Thu, 7 Sep 2023 11:44:44 +0900 Subject: [PATCH] hot_reload: Add a description for hot-reloaded count endpoint Signed-off-by: Hiroshi Hatake --- administration/hot-reload.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/administration/hot-reload.md b/administration/hot-reload.md index 839cfc54d..3ef1a19ab 100644 --- a/administration/hot-reload.md +++ b/administration/hot-reload.md @@ -45,6 +45,22 @@ Hot reloading also can be kicked via `SIGHUP`. `SIGHUP` signal is not supported on Windows. So, users can't enable this feature on Windows. +## How to confirm reloaded or not + +### via HTTP + +The number of hot reloaded count can be obtained via the HTTP endpoint that is: + +* `GET /api/v2/reload` + +The endpoint returns the count of hot-reloaded as follows: + +```json +{"hot_reload_count":3} +``` + +The default value of that number is 0. + ## Limitations The hot reloading feature is currently working on Linux and macOS. Windows is not supported yet.