Varnish Cache should be offered by cPanel as soon as possible
Hello,
We're running Magento on a cPanel server, and we cannot develop our business further due to the fact that cPanel does not support Varnish Cache. We are using Redis for Magento Full Page Cache, but Redis has two major problems:
- It cannot exclude specific URL patterns from caching like Varnish.
- Its performance degrades after "maxmemory" reaches some specific value, no matter that there is available RAM to allocate Redis.
We manage to maintain the pages we need in Redis and keep the "maxmemory" at the optimal level in the same time, but the whole process turns to be inefficient as the number of our pages increases by adding new products to our online store.
On the other hand, NGINX Reverse Proxy with Caching does not seem to improve performance, as it can actually cache the static content only (JS, CSS, images). Since NGINX Reverse Proxy is supported by cPanel, I don't think that it is difficult that you support Varnish Cache which typically needs NGINX Reverse Proxy for SSL termination. If you can offer Varnish Enterprise which supports SSL, that would be ideal. In any case, Varnish is a must-have.
-
BTW, the open source/free version of Varnish Cache is now called Vinyl Cache ( https://vinyl-cache.org ) as "Varnish" is a trademark of Varnish Software who offer their own commercial services.
It should be possible to install Vinyl/Varnish on a cPanel server "near normally" - with just the tweak to the Apache port configuration (which can be done via WHM). There seems to be a guide at https://github.com/rootmarkjoy/cPanel-WHM/blob/master/Install%20Varnish%20Cache%20on%20cPanel : it is 5 years old though.
Personally, and having installed and used Magento and Magento2 on a cPanel service (admittedly, last over 5 years ago), I would not recommend running Magento on a "shared environment" like cPanel. It just makes too many resource demands of the system: stick it on its own VPS which is optimised for Magento's requirements (and means you don't have to worry about changes to Vinyl/Redis etc needed for Magento impacting other users)
0 -
Could you add any feedback you have about Varnish to our feature request card over at https://features.cpanel.net/c/187-varnish-support? Thanks!
0 -
cPanel support of varnish cache would be a great addition, particularly in high-performing applications such as Magento. Although Redis can be used to do simple caching, it is not as flexible to deal with URL exclusions and can be more complicated to manage at scale.Varnish, however, provides better caching control, high performance optimization as well as popular with eCommerce set ups. Now that cPanel already uses NGINX reverse proxy,it appears reasonable to add Varnish (with or without SSL through NGINX).This would be of great benefit to users who are dealing with large and expanding online stores as it would enhance scalability and user experiences.
0 -
Thanks for that feedback - I've added that to our feature card!
0 -
I have already added my comment at the below link almost 1 year ago:
https://features.cpanel.net/c/187-varnish-support
I can understand that including Varnish in cPanel is something that involves commercial and technical matters, but it is really needed. I have already installed Varnish Cache on my cPanel server, while I'm already using NGINX Reverse Proxy feature of cPanel. However, it is not possible to make it work with Varnish. In addition, this job involves configuration that is global for the server, so it is not possible for me to test things on a live environment.
I believe that somebody from cPanel can test how Varnish could work and provide some sort of unofficial solution which of course will not be supported.
0 -
I also do not understand. Almost 10 years ago there was a 3rd Party varnish Plugin for cpanel, wich was stopped...
0
Please sign in to leave a comment.
Comments
6 comments