Hypernode plans bigger than Magento Grow, often have enough memory to store the session data in Redis.
This way sessions are stored in-memory, making the shop faster and use less IO than when using MySQL or files as session store.

Install Cm_RedisSession

First install the Redis sessions plugin from Gordon Lesti to enable session storage in Redis:

Configure Magento 1 to store your sessions in Redis

To save your sessions for Magento add/change the following settings in your local.xml:

Now flush your cache:

Enable second Redis instance for Sessions

We have made is possible to enable a second Redis instance more tailored for saving session data (more informatie can be found in our changelog)

To enable the second Redis instance for sessions you run the command: hypernode-systemctl settings
redis_persistent_instance --value True

After enabling the second Redis instance you need to update the /data/web/public/app/etc/local.xml file and change the port value to 6378 instead of the default 6379. Furthermore you need to add the following line to your crontab:

* * * * * redis-cli -p 6378 bgsave

Test whether your sessions are stored in Redis

To verify whether your configuration is working properly, first clear your session store:

Now open the site in your browser and hit F5 a few times or log in to the admin panel.
If all is well, no additional sessions files should be written to /data/web/var/sessions, but instead to the Redis database:


A quick note, when you run into the configured max memory limit make sure that the necessary Redis keys are set to volatile (ensure an expire). Otherwise the complete allocated configured memory will fill up and Redis will ‘crash’.