mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-11-03 11:37:51 +00:00
[PINS] Add APPL_STATE_DB and response path log (#9082)
- 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 Co-authored-by: PINS Working Group <sonic-pins-subgroup@googlegroups.com>
This commit is contained in:
@@ -88,6 +88,11 @@
|
|||||||
"id" : 13,
|
"id" : 13,
|
||||||
"separator": "|",
|
"separator": "|",
|
||||||
"instance" : "redis_chassis"
|
"instance" : "redis_chassis"
|
||||||
|
},
|
||||||
|
"APPL_STATE_DB" : {
|
||||||
|
"id" : 14,
|
||||||
|
"separator": ":",
|
||||||
|
"instance" : "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"VERSION" : "1.0"
|
"VERSION" : "1.0"
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
/var/log/frr/zebra.log
|
/var/log/frr/zebra.log
|
||||||
/var/log/swss/sairedis*.rec
|
/var/log/swss/sairedis*.rec
|
||||||
/var/log/swss/swss*.rec
|
/var/log/swss/swss*.rec
|
||||||
|
/var/log/swss/responsepublisher.rec
|
||||||
{
|
{
|
||||||
size 1M
|
size 1M
|
||||||
rotate 5000
|
rotate 5000
|
||||||
|
|||||||
@@ -173,6 +173,7 @@ start() {
|
|||||||
$SONIC_DB_CLI GB_COUNTERS_DB FLUSHDB
|
$SONIC_DB_CLI GB_COUNTERS_DB FLUSHDB
|
||||||
$SONIC_DB_CLI RESTAPI_DB FLUSHDB
|
$SONIC_DB_CLI RESTAPI_DB FLUSHDB
|
||||||
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*'"
|
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*'"
|
||||||
|
$SONIC_DB_CLI APPL_STATE_DB FLUSHDB
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# On supervisor card, skip starting asic related services here. In wait(),
|
# On supervisor card, skip starting asic related services here. In wait(),
|
||||||
|
|||||||
@@ -77,6 +77,11 @@
|
|||||||
"id" : 12,
|
"id" : 12,
|
||||||
"separator": "|",
|
"separator": "|",
|
||||||
"instance" : "redis_chassis"
|
"instance" : "redis_chassis"
|
||||||
|
},
|
||||||
|
"APPL_STATE_DB" : {
|
||||||
|
"id" : 14,
|
||||||
|
"separator": ":",
|
||||||
|
"instance" : "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"VERSION" : "1.0"
|
"VERSION" : "1.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user