• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Magento 2.3.3 Redis cache grows unlimited

by admin

Introduction

Recently, one of our customers had troubles with redis-cache on his production multistore with 30 stores on it. His Redis became unavailable from time to time. We start to monitor it and found that there were too many expired Redis keys inside the database. Example of output:

> info keyspace
# Keyspace
db0:keys=45775,expires=41711,avg_ttl=79567831

Possible fixes

The possible way to prevent system server from dying was to set a hard limit for Redis memory consumption. Relying on the memory limit of Redis has some performance impact and there are always things cleared that don’t need to and vice versa. So, This should be handled by the application by setting a reasonable TTL.

We’ve fixed the following issue with upgrade redis-cache to the newest version with an update composer.json

"colinmollenhour/cache-backend-redis": "1.11.0 as 1.10.6"

Perfmanent fix

Also, a fix for this issue will be released in Magento 2.3.4. Link: https://github.com/magento/magento2/pull/25488

Conclusion

Alway use the latest software releases to prevent such kind of bug. Especially, such as Magento.

Filed Under: Linux

Some more articles you might also be interested in …

  1. ln: command not found
  2. namcap Command Examples in Linux
  3. How to install CentOS / RHEL 7 on RAID Partition
  4. blkid Command Examples in Linux
  5. How to uninstall jellyfish software package from Ubuntu
  6. How to work with multiple java versions under Linux
  7. einfo: command not found
  8. Set FTP Autologin with .netrc file in Linux
  9. 7 Useful Find Command Examples to Locate files to remove when a filesystem is full
  10. Understanding Variables in Bash Shell Under Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright