[MultiDB] : add persistence field for each redis instance (#4254)

- 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"
This commit is contained in:
Dong Zhang 2020-04-07 21:01:39 -07:00 committed by GitHub
parent 11da67bce1
commit de5a04ad18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,8 @@
"redis":{
"hostname" : "127.0.0.1",
"port" : 6379,
"unix_socket_path" : "/var/run/redis/redis.sock"
"unix_socket_path" : "/var/run/redis/redis.sock",
"persistence_for_warm_boot" : "yes"
}
},
"DATABASES" : {