Falven commented on issue #12662: URL: https://github.com/apache/apisix/issues/12662#issuecomment-3417709719
Hi @Baoyuantop, I confirmed that workers stay unhealthy if the YAML config is present before they start. The master loads the file first, records its mtime, then each worker's timer runs `read_apisix_config()`, sees the same mtime, exits before `update_config()` runs, and never calls `sync_status_to_shdict(true)`, so `/status/ready` keeps returning 503. Repro: place `config.yaml` and `apisix.yaml` (any route) in `conf/`, start APISIX, `curl 127.0.0.1:7085/status/ready` → 503; touch `apisix.yaml`; curl again → 200. Fix would be to let workers call `update_config()` once during init when the master already loaded the config. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
