de5a04ad18
- add "persistence" field for each redis instance in database_config.json - we will use this information to decide if saving redis instance data while warm/fast reboot - before multiDB changes, SONiC uses "redis-cli save " to save all the data into rdb file on default instance on port 6379 - with multiDB changes, we plan to implement "sonic-db-cli save" to save all data to corresponding rdb files on all listed redis instances which has "persistence" field set "yes"
59 lines
1.3 KiB
JSON
59 lines
1.3 KiB
JSON
{
|
|
"INSTANCES": {
|
|
"redis":{
|
|
"hostname" : "127.0.0.1",
|
|
"port" : 6379,
|
|
"unix_socket_path" : "/var/run/redis/redis.sock",
|
|
"persistence_for_warm_boot" : "yes"
|
|
}
|
|
},
|
|
"DATABASES" : {
|
|
"APPL_DB" : {
|
|
"id" : 0,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"ASIC_DB" : {
|
|
"id" : 1,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"COUNTERS_DB" : {
|
|
"id" : 2,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"LOGLEVEL_DB" : {
|
|
"id" : 3,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"CONFIG_DB" : {
|
|
"id" : 4,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
},
|
|
"PFC_WD_DB" : {
|
|
"id" : 5,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"FLEX_COUNTER_DB" : {
|
|
"id" : 5,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"STATE_DB" : {
|
|
"id" : 6,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
},
|
|
"SNMP_OVERLAY_DB" : {
|
|
"id" : 7,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
}
|
|
},
|
|
"VERSION" : "1.0"
|
|
}
|