Redis Installation and Configuration
8 reviewsRedis installation and configuration: memory limits, eviction policy, access protection, key namespaces per site, and hit rate verification. From 1,000 UAH.
Service
Redis installation and configuration
Redis keeps data in memory and serves it an order of magnitude faster than disk. It is used as a site cache, session storage and a job queue.
What is included
- installing and configuring the service;
- a memory limit and an eviction policy — without them Redis consumes all free memory and the system starts killing processes;
- access protection: binding to the local interface, a password;
- the PHP extension for working with Redis;
- connecting the site: cache, sessions, or both;
- separate key namespaces where several sites share a server;
- cache hit rate verification — if it is low, the setup achieves nothing.
Two typical mistakes
Redis reachable from outside without a password. The classic: the service listens on all interfaces and anyone can read or wipe the data. For session storage that means someone can hijack a user's session.
A shared key namespace across sites. Two stores on one server overwrite each other's cache, and their owners see odd things: someone else's prices, someone else's category names.
When Redis is not needed
On a site with modest traffic and a small catalogue you will not notice a difference — the file cache copes. Redis pays off where there is load.
Before and after
- Redis is reachable from outside without a password — anyone can read or wipe data, or hijack sessions
- With no memory limit, Redis eats all free memory and the system starts killing processes
- Sites on one server overwrite each other’s cache and show someone else’s prices and category names
- Redis bound to the local interface and protected with a password — not reachable from outside
- A memory limit and an eviction policy; a separate key namespace for each site
- Cache, sessions or both in Redis; the PHP extension installed and the cache hit rate verified
Reviews (8)
5.0Потрібна була послуга «Встановлення та налаштування Redis», і не знав, RDB чи AOF обрати. Ціна відповідала обсягу, прихованих доплат не було. Зробили бекап перед роботами — приємно, що подбали.
Залишаю відгук про «Встановлення та налаштування Redis». Турбувала безпека Redis. Ціна відповідала обсягу, прихованих доплат не було. Дякую за якісну роботу!
«Встановлення та налаштування Redis» — саме те, що шукала. Не знав, RDB чи AOF обрати. Видно, що людина глибоко розуміється на OpenCart. Ціна відповідала обсягу, прихованих доплат не було. Звернуся ще раз із наступними задачами.
Потрібна була послуга «Встановлення та налаштування Redis», і хотів черги на Redis. Зробили бекап перед роботами — приємно, що подбали. Дякую за якісну роботу!
Брав «Встановлення та налаштування Redis» для свого проєкту. Потрібен був Redis для кешу й сесій. Зробили навіть трохи більше, ніж домовлялись. Все протестували перед тим як віддати. Магазин нарешті працює як треба.