Skip to content

Commit 4bb8ab3

Browse files
Add support to start fdbsyncd when orchagent docker starts (#5979)
Add support to start fdbsyncd when swss docker starts. New demon is added to sync MAC from Kernel to DB and vise versa.
1 parent e93330e commit 4bb8ab3

File tree

7 files changed

+38
-0
lines changed

7 files changed

+38
-0
lines changed

dockers/docker-orchagent/base_image_files/monit_swss

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
## orchagent
55
## portsyncd
66
## neighsyncd
7+
## fdbsyncd
78
## vrfmgrd
89
## vlanmgrd
910
## intfmgrd
@@ -22,6 +23,9 @@ check program swss|portsyncd with path "/usr/bin/process_checker swss /usr/bin/p
2223
check program swss|neighsyncd with path "/usr/bin/process_checker swss /usr/bin/neighsyncd"
2324
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles
2425

26+
check program swss|fdbsyncd with path "/usr/bin/process_checker swss /usr/bin/fdbsyncd"
27+
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles
28+
2529
check program swss|vrfmgrd with path "/usr/bin/process_checker swss /usr/bin/vrfmgrd"
2630
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles
2731

dockers/docker-orchagent/critical_processes

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
program:orchagent
22
program:portsyncd
33
program:neighsyncd
4+
program:fdbsyncd
45
program:vlanmgrd
56
program:intfmgrd
67
program:portmgrd

dockers/docker-orchagent/supervisord.conf

+11
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,14 @@ stdout_logfile=syslog
184184
stderr_logfile=syslog
185185
dependent_startup=true
186186
dependent_startup_wait_for=swssconfig:exited
187+
188+
[program:fdbsyncd]
189+
command=/usr/bin/fdbsyncd
190+
priority=17
191+
autostart=false
192+
autorestart=false
193+
stdout_logfile=syslog
194+
stderr_logfile=syslog
195+
dependent_startup=true
196+
dependent_startup_wait_for=swssconfig:exited
197+

platform/p4/docker-sonic-p4/start.sh

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ supervisorctl start portsyncd
5858
echo "Start neighsyncd"
5959
supervisorctl start neighsyncd
6060

61+
echo "Start fdbsyncd"
62+
supervisorctl start fdbsyncd
63+
6164
echo "Start teamsyncd"
6265
supervisorctl start teamsyncd
6366

platform/p4/docker-sonic-p4/supervisord.conf

+8
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,11 @@ autostart=false
131131
autorestart=unexpected
132132
stdout_logfile=syslog
133133
stderr_logfile=syslog
134+
135+
[program:fdbsyncd]
136+
command=/usr/bin/fdbsyncd
137+
priority=16
138+
autostart=false
139+
autorestart=false
140+
stdout_logfile=syslog
141+
stderr_logfile=syslog

platform/vs/docker-sonic-vs/start.sh

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ supervisorctl start coppmgrd
103103

104104
supervisorctl start neighsyncd
105105

106+
supervisorctl start fdbsyncd
107+
106108
supervisorctl start teamsyncd
107109

108110
supervisorctl start fpmsyncd

platform/vs/docker-sonic-vs/supervisord.conf

+9
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,12 @@ autostart=false
220220
autorestart=false
221221
stdout_logfile=syslog
222222
stderr_logfile=syslog
223+
224+
[program:fdbsyncd]
225+
command=/usr/bin/fdbsyncd
226+
priority=25
227+
autostart=false
228+
autorestart=false
229+
stdout_logfile=syslog
230+
stderr_logfile=syslog
231+

0 commit comments

Comments
 (0)