Skip to content

Commit

Permalink
[MultiDB] : add persistence field for each redis instance (#4254)
Browse files Browse the repository at this point in the history
- 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"
  • Loading branch information
dzhangalibaba authored Apr 8, 2020
1 parent 11da67b commit de5a04a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dockers/docker-database/database_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" : {
Expand Down

0 comments on commit de5a04a

Please sign in to comment.