-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[warmboot] Load database from redis-cli save
#2287
Conversation
# Load loglevelDB from /host/warm-reboot/loglevel_db.json | ||
redisLoadAndDelete 3 $WARM_DIR/loglevel_db.json | ||
# Load redis content from /host/warm-reboot/dump.rdb | ||
test -e $WARM_DIR/dump.rdb && docker cp $WARM_DIR/dump.rdb database:/var/lib/redis/dump.rdb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the configdb-load.sh on database docker will load the config_db.json again, which is redundant to this dump.rdb, it may actually have different config if people forget to do cli save. Should we do something special treatment for warm boot in in configdb-load.sh? #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
priority=2 | ||
autostart=true | ||
autorestart=false | ||
stdout_logfile=syslog | ||
stderr_logfile=syslog | ||
|
||
[program:configdb-load.sh] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configdb-load is also used in virtual switch, can you change that too? #WontFix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like keep behavior unchange on vs side, and visit the warm-reboot feature later.
Also applied to P4 side.
In reply to: 235583086 [](ancestors = 235583086)
Signed-off-by: Qi Luo <[email protected]>
Signed-off-by: Qi Luo <[email protected]>
…se to file Signed-off-by: Qi Luo <[email protected]>
Signed-off-by: Qi Luo <[email protected]>
Signed-off-by: Qi Luo <[email protected]>
c9dc890
to
b9ce074
Compare
Depends on sonic-net/sonic-utilities#389
This is a disruptive change.