Skip to content

Commit

Permalink
AGW: envoy: delay envoy to let the controller boot up (#4933)
Browse files Browse the repository at this point in the history
In case envoy controller is not ready, envoy gets into
crash loop. So it is safer to delay envoy init.

Signed-off-by: Pravin B Shelar <pbshelar@fb.com>
  • Loading branch information
pshelar committed Feb 12, 2021
1 parent 4286f75 commit 753a40b
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -16,6 +16,8 @@ After=magma@envoy_controller.service
[Service]
Type=simple
EnvironmentFile=/etc/environment
# Add delay to let envoy-controller init
ExecStartPre=/bin/sleep 40
ExecStart=/sbin/ip netns exec envoy_ns1 /usr/bin/envoy --bootstrap-version 2 -c /var/opt/magma/envoy.yaml --log-path /var/log/envoy.log -l debug
MemoryAccounting=yes
StandardOutput=syslog
Expand Down

0 comments on commit 753a40b

Please sign in to comment.