Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
Every once in a while,all project use apm-agent-python will report timeout error. but apm-server is normal and dont found related error report。
restart apm-server (i think this because apm-server is not graceful shutdown)
random appear
Can you please clarify: does this issue only occur after restarting apm-server? Is it just for a short time, or does it continue happening indefinitely?
And when you say restarting the server, which exact commands are you using? If you can provide a k8s manifest and list the kubectl commands you're running, that would be ideal.
And agent will report error once in a while( a few hours) , but apm-server is normal and only have forbidden request log
ERROR [request] middleware/log_middleware.go:99 forbidden request {"request_id": "660bcb35-ab3a-4189-ab12-2760358cbcae", "method": "POST", "URL": "/config/v1/agents", "content_length": 61, "remote_address": "10.0.27.12", "user-agent": "elasticapm-python/5.10.0", "event.duration": 119703, "response_code": 403, "error": "forbidden request: Agent remote configuration is disabled. Configure the `apm-server.kibana` section in apm-server.yml to enable it. If you are using a RUM agent, you also need to configure the `apm-server.rum` section. If you are not using remote configuration, you can safely ignore this error."}
I'm not a Kubernetes expert (I'm hoping someone else can chime in on this topic), but if I understand the docs correctly then SIGTERM is sent to the process by default (as I would expect). It's very surprising to me if your change fixes things; APM Server should perform a graceful shutdown on either SIGTERM or SIGHUP. I guess the sleep is somehow helping.
If nobody else responds with an answer, I'll try to reproduce the issue soon.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.