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

add redis repo re #13478 #13479

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ITJamie
Copy link

@ITJamie ITJamie commented Jan 23, 2023

Why I did it

resolves #13478
Adding the redis repo to the docker-database image, this allows usage of redis memory defrag feature

How I did it

Added repo config to database docker template

How to verify it

build and verify that redis works as expected

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

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

Description for the changelog

move to using redis official builds instead of debian builds

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

one of my cats bobby

adding the redis repo to the docker-database image

remove sudo

add gpupg for apt redis repo key

add gpupg for apt redis repo key

Update Dockerfile.j2
@ITJamie ITJamie marked this pull request as ready for review January 23, 2023 20:20
@ITJamie ITJamie requested a review from lguohan as a code owner January 23, 2023 20:20
@gechiang
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 13479 in repo sonic-net/sonic-buildimage

@prgeor
Copy link
Contributor

prgeor commented Feb 16, 2023

@ITJamie I am not sure how much of performance penalty will be there if we enable Active defragmentation?

@prgeor
Copy link
Contributor

prgeor commented Feb 16, 2023

@ITJamie did you investigate why redis DB is using so much memory in your case? 4.75GB (without accounting fragmentation) of REDIS DB memory usage seems too high...

@Blueve
Copy link
Contributor

Blueve commented Feb 16, 2023

@ITJamie currently, Debian Redis use jemalloc for all archs including arm. I remember that the official Redis use libc as mem allocator for arm platform, and we observed issue where the memory will not be reclaimed on time when use libc.

Can you help confirm what is the compile option of official Redis binary for arm platform?

@ITJamie ITJamie requested review from qiluo-msft and xumia as code owners April 6, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

redis balooning memory usage causing OOM & hung switch
4 participants