0

One of my client M2 store is using Redis for session and cache storage. On inspecting the New Relic, have noticed that HGET is consuming hell lot of time Redis HGET

Redis Configuration:

  • Local Redis connected with TCP
  • Setting: maxmemory-policy allkeys-lru

How do you guys optimize the Redis (single instance) for your M2 store?

1 Answer 1

1

Magento >= 2.3.5 have a preload functionality that allows to load multiple keys by one request.

See https://devdocs.magento.com/guides/v2.3/config-guide/redis/redis-pg-cache.html#redis-preload-feature for more details

Works especially well with two level cache https://devdocs.magento.com/guides/v2.3/config-guide/cache/two-level-cache.html

5
  • That's a good point but unfortunately store is operating on version < 2.4.0
    – MagePsycho
    Commented Sep 29, 2020 at 6:40
  • You can back port cache adapter to your version (just copy/past ;)
    – KAndy
    Commented Sep 29, 2020 at 21:03
  • You mean just to udpate the Redis module from M 2.4?
    – MagePsycho
    Commented Sep 30, 2020 at 9:19
  • Just add github.com/magento/magento2/blob/2.4-develop/lib/internal/… file
    – KAndy
    Commented Sep 30, 2020 at 19:32
  • Is anyone found solution for this issue?
    – Nits
    Commented Aug 4, 2021 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.