Skip to content

Commit 1baca65

Browse files
PINS Working Groupmint570
PINS Working Group
authored andcommitted
[PINS] Add APPL_STATE_DB and response path log
- Add APPL_STATE_DB to database_config.json - Clear APPL_STATE_DB during SwSS container restarts - Add response path log file to logrotate config: responsepublisher.rec Submission containing materials of a third party: Copyright Google LLC; Licensed under Apache 2.0 Co-authored-by: Mike Attig <[email protected]> Co-authored-by: Runming Wu <[email protected]> Co-authored-by: Akarsh Gupta <[email protected]> Signed-off-by: Brian O'Connor <[email protected]>
1 parent 11a93d2 commit 1baca65

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

dockers/docker-database/database_config.json.j2

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@
8888
"id" : 13,
8989
"separator": "|",
9090
"instance" : "redis_chassis"
91+
},
92+
"APPL_STATE_DB" : {
93+
"id" : 14,
94+
"separator": ":",
95+
"instance" : "redis"
9196
}
9297
},
9398
"VERSION" : "1.0"

files/image_config/logrotate/logrotate.d/rsyslog

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
/var/log/frr/zebra.log
3434
/var/log/swss/sairedis*.rec
3535
/var/log/swss/swss*.rec
36+
/var/log/swss/responsepublisher.rec
3637
{
3738
size 1M
3839
rotate 5000

files/scripts/swss.sh

+1
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ start() {
173173
$SONIC_DB_CLI GB_COUNTERS_DB FLUSHDB
174174
$SONIC_DB_CLI RESTAPI_DB FLUSHDB
175175
clean_up_tables STATE_DB "'PORT_TABLE*', 'MGMT_PORT_TABLE*', 'VLAN_TABLE*', 'VLAN_MEMBER_TABLE*', 'LAG_TABLE*', 'LAG_MEMBER_TABLE*', 'INTERFACE_TABLE*', 'MIRROR_SESSION*', 'VRF_TABLE*', 'FDB_TABLE*', 'FG_ROUTE_TABLE*', 'BUFFER_POOL*', 'BUFFER_PROFILE*', 'MUX_CABLE_TABLE*'"
176+
$SONIC_DB_CLI APPL_STATE_DB FLUSHDB
176177
fi
177178

178179
# On supervisor card, skip starting asic related services here. In wait(),

platform/vs/docker-sonic-vs/database_config.json

+5
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
"id" : 12,
7878
"separator": "|",
7979
"instance" : "redis_chassis"
80+
},
81+
"APPL_STATE_DB" : {
82+
"id" : 14,
83+
"separator": ":",
84+
"instance" : "redis"
8085
}
8186
},
8287
"VERSION" : "1.0"

0 commit comments

Comments
 (0)