mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-11 01:36:37 +08:00
[优化] 更新 openresty_observability_port 描述,增强健康检查逻辑,使用 stub_status 代替 openresty -t
This commit is contained in:
@@ -788,6 +788,7 @@ func (m *Manager) checkStubStatus(ctx context.Context) error {
|
|||||||
if resp.StatusCode != http.StatusOK {
|
if resp.StatusCode != http.StatusOK {
|
||||||
return fmt.Errorf("openresty health endpoint returned %s", resp.Status)
|
return fmt.Errorf("openresty health endpoint returned %s", resp.Status)
|
||||||
}
|
}
|
||||||
|
slog.Debug("openresty health endpoint is healthy", "url", openrestyStubUrl)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user