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

Update save disable code for new Redis version #18979

Merged
merged 1 commit into from
May 19, 2024

Conversation

saiarcot895
Copy link
Contributor

Why I did it

With the upgrade of docker-database to Bookworm in #18108 and the new Redis version that was brought in, database saves are enabled by default. However, we don't use (and maybe don't want, at this time) those database saves.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Restore the old behavior by modifying /etc/redis/redis.conf to not save at all.

How to verify it

Checked /var/log/syslog to make sure there weren't messages from redis every minute saying the database was being saved, and verified /etc/redis/redis.conf in the database container has a config line with save "".

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

With the upgrade of docker-database to Bookworm and the new Redis
version that was brought in, database saves are enabled by default.
However, we don't use (and maybe don't want, at this time) those
database saves.

Restore the old behavior by modifying `/etc/redis/redis.conf` to not
save at all.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@saiarcot895
Copy link
Contributor Author

/azpw ms_conflict

@abdosi
Copy link
Contributor

abdosi commented May 16, 2024

@saiarcot895 : I assume this should fix this: #18667

@saiarcot895
Copy link
Contributor Author

@abdosi Yes, this will fix that. I didn't realize there was already an impact here.

@abdosi
Copy link
Contributor

abdosi commented May 16, 2024

@abdosi Yes, this will fix that. I didn't realize there was already an impact here.

can we add some UT to catch this as this is major behavior change

@lguohan
Copy link
Collaborator

lguohan commented May 16, 2024

@saiarcot895 , can you check the conflict?

@saiarcot895
Copy link
Contributor Author

@saiarcot895 , can you check the conflict?

It's saying that a conflict already exists in master, and to wait a few hours and rerun the conflict checker.

can we add some UT to catch this as this is major behavior change

Opened sonic-net/sonic-mgmt#12877.

@saiarcot895
Copy link
Contributor Author

/azpw ms_conflict

1 similar comment
@saiarcot895
Copy link
Contributor Author

/azpw ms_conflict

@lguohan lguohan merged commit 11b80b1 into sonic-net:master May 19, 2024
19 checks passed
@saiarcot895 saiarcot895 deleted the redis-dont-save branch May 21, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[master][redis][database-chassis] swss/syncd crashes on the Supervisor card after it is rebooting up
3 participants