Skip to content
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

Merged
merged 5 commits into from
Nov 22, 2018

Conversation

qiluo-msft
Copy link
Collaborator

Depends on sonic-net/sonic-utilities#389

This is a disruptive change.

@qiluo-msft qiluo-msft requested review from yxieca and lguohan November 21, 2018 05:43
# 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
Copy link
Collaborator

@zhenggen-xu zhenggen-xu Nov 21, 2018

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I fixed it.


In reply to: 235278619 [](ancestors = 235278619)

priority=2
autostart=true
autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog

[program:configdb-load.sh]
Copy link
Collaborator

@lguohan lguohan Nov 22, 2018

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

Copy link
Collaborator Author

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)

@lguohan lguohan merged commit c2ae736 into sonic-net:master Nov 22, 2018
@sonic-net sonic-net deleted a comment from lguohan Nov 22, 2018
@qiluo-msft qiluo-msft deleted the qiluo/redisdump branch November 22, 2018 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants