New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
envoy: remove unnecessary wait and log message after starting envoy #24455
envoy: remove unnecessary wait and log message after starting envoy #24455
Conversation
86fc994
to
3c730df
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree that since the introduction of the stopCh
the restart loop will be exited after Envoy is intentionally stopped, so this wait is not necessary in that case. However, if there is a crash in Envoy startup this wait is necessary to limit the speed at which Envoy is started again, as in some cases Envoy would just crash again and then be perpetually restarted in a busy loop, hogging CPU resources.
How about moving the wait to be right after the "Envoy: Proxy crashed" log message, where a non-nil error was received, so that there would be some time before restart is tried in the outer goroutine?
thanks for pointing that out! might be really worth to only delete the "irritating" log message and move the actual wait to the point where we should wait after a crash of envoy. |
When the envoy proxy gets started by the Cilium Agent, the message `Envoy: Sleeping for 100ms before restarting proxy` gets logged. With the introduction of supervising the Envoy Proxy in a dedicated go-routine, this message and the corresponding wait is somewhat unnecessary and gets deleted with this commit. Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
3c730df
to
f068f5d
Compare
/test Job 'Cilium-PR-K8s-1.25-kernel-4.19' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
/test-1.25-4.19 |
When the envoy proxy gets started by the Cilium Agent, the message
Envoy: Sleeping for 100ms before restarting proxy
gets logged.With the introduction of supervising the Envoy Proxy in a dedicated go-routine (#2680), this message and the corresponding wait is somewhat unnecessary and gets deleted with this commit.