Skip to content

Graceful Shutdown #14022

Closed
Closed

Description

@geekerzhou

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Apache Dubbo Component

Java SDK (apache/dubbo)

Descriptions

2024-03-29 13:41:07.854 [DubboShutdownHook] INFO , o.a.dubbo.config.DubboShutdownHook - [DUBBO] Dubbo shutdown hooks execute now. Dubbo Application1.1, dubbo version: 3.2.9, current host: 10.10.1.33

2024-03-29 13:41:08.155 {"status":"UP","components":{"db":{"status":"UP","details":{"database":"PostgreSQL","validationQuery":"isValid()"}},"discoveryComposite":{"description":"Discovery Client not initialized","status":"UNKNOWN","components":{"discoveryClient":{"description":"Discovery Client not initialized","status":"UNKNOWN"}}},"diskSpace":{"status":"UP","details":{"total":250685575168,"free":15884992512,"threshold":10485760,"path":"","exists":true}},"dubbo":{"status":"UP","details":{"memory":{"source":"management.health.dubbo.status.defaults","status":{"level":"OK","message":"max:4096M,total:224M,used:188M,free:36M"}},"load":{"source":"management.health.dubbo.status.defaults","status":{"level":"OK","message":"load:2.67822265625,cpu:12"}},"registry":{"source":"management.health.dubbo.status.defaults","status":{"level":"OK","message":"10.0.2.251:8848(connected),10.0.2.251:8848(connected)"}},"spring":{"source":"management.health.dubbo.status.defaults","status":{"level":"OK","message":""}},"server":{"source":"management.health.dubbo.status.defaults","status":{"level":"OK","message":"/10.10.1.33:20880(clients:0)"}}}},"nacosConfig":{"status":"UP"},"ping":{"status":"UP"},"redis":{"status":"UP","details":{"version":"6.0.9"}},"refreshScope":{"status":"UP"}}}

2024-03-29 13:41:12.098 {"status":"UP","components":{"db":{"status":"UP","details":{"database":"PostgreSQL","validationQuery":"isValid()"}},"discoveryComposite":{"description":"Discovery Client not initialized","status":"UNKNOWN","components":{"discoveryClient":{"description":"Discovery Client not initialized","status":"UNKNOWN"}}},"diskSpace":{"status":"UP","details":{"total":250685575168,"free":15878217728,"threshold":10485760,"path":"","exists":true}},"dubbo":{"status":"UNKNOWN","details":{"memory":{"source":"management.health.dubbo.status.defaults","status":{"level":"OK","message":"max:4096M,total:238M,used:155M,free:83M"}},"load":{"source":"management.health.dubbo.status.defaults","status":{"level":"OK","message":"load:2.67822265625,cpu:12"}},"registry":{"source":"management.health.dubbo.status.defaults","status":{"level":"OK","message":"10.0.2.251:8848(connected),10.0.2.251:8848(connected)"}},"spring":{"source":"management.health.dubbo.status.defaults","status":{"level":"OK","message":""}},"server":{"source":"management.health.dubbo.status.defaults","status":{"level":"UNKNOWN"}}}},"nacosConfig":{"status":"UP"},"ping":{"status":"UP"},"redis":{"status":"UP","details":{"version":"6.0.9"}},"refreshScope":{"status":"UP"}}}

Dubbo has been taken offline, but the actuator health check information still shows Dubbo status as UP. It takes about 5 seconds for the server check item to change to UNKNOWN, yet the overall healthcheck remains UP. Using Nginx to request /actuator/health for determining whether to take the upstream offline is not feasible anymore. Since Dubbo has been taken offline, if the requested HTTP interface involves Dubbo-related logic, it throws an exception.

Related issues

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

Activity

  1. locked and limited conversation to collaborators on Apr 2, 2024
  2. converted this issue into a discussion #14024 on Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions