Upload
neev-technologies
View
220
Download
0
Embed Size (px)
Citation preview
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
1/12
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
2/12
Magento eCommerce
SaaS Applications
Video Streaming Portals
Rich Internet Apps
Custom Development
250+ team with experience in
managing offshore,
distributed development.
Neev Technologies
established in Jan 05
VC Funding in 2009 By Basil
Partners
Part of Publicis Groupe
Member of NASSCOM.
Development Centers in
Bangalore and Pune.
Offices at Bangalore, USA,
Delhi, Pune, Singapore and
Stockholm.
Key Company Highlights
iPhone
Android
Windows Phone 7
HTML5 Apps
Web
User Interface Design and User Experience Design
Performance Consulting Practices
Quality Assurance & Testing
AWS Consulting Partner
Rackspace
Joyent
Heroku
Google App Engine
Mobile Cloud
About Neev
Outsourced Product Development
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
3/12
The Caching Method Currently Employed in Magento
Magento uses the default two level caching of the Zendframework, a fast cache and a slow one as configured in the fileLocal.xml
The fast cache is configured to APC/Memcache, whereas the
slow one is file system based
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
4/12
Magento stores its cache entries in the file system. This model does have an advantage.
We dontneed any additional software to keep it running
The default model, however, proves to be more of a disadvantage than an advantage.
This is because Magento stores its cache entries in the file system in the /var/cache
folder. This is fine as long as the traffic is minimal. The Magento cache is also organized by
tags, this means you have cache entries which belongs to a cache group
Once the traffic increases, the number of cache entries in the file system increase, andreading and writing to the file system becomes slower and slower
Magento clears cache entries by tag. A typical scenario is one where, after placing an
order or saving a product, it makes sure that the block caches are updated on the store.
While clearing entries by cache tag, Magento has to open each file to check if the cache
entry belongs to the cache group
Consider a Magento store with 1000 products, it would have a cache size of 50 MB. There
would be at least 3500 entries(individual files) and the process would be very slow and
certainly not feasible in the long run
Advantages and Disadvantages of Default Cache
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
5/12
1. Use SSDs( Solid State Drives) instead of normal hard drives
2. Put the /var/cache directory in TMPFs
2 Ways of Achieving Better Performance in this Model
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
6/12
Very fast cache back end with excellent support for cache tags, the slower
file system cache is ruled out
Highly recommended in multi-server environments where you have morethan one web server
It has been tested on high traffic Magento stores with more than 500,000
visitors / day and the performance has been great
Advantages of Configuring Redis as Back-End
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
7/12
Redis must be installed on the server.
PHP Extension PHPRedis must be installed.
Magento extension Cm_Cache_Backend_Redis must be installed.
Requirements for a Working Redis Back-End
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
8/12
1. Install redis(2.4+ required)
2. Install phpredis
3. Install the magento extension Cm_Cache_Backend_Redis
4. Edit your app/etc/local.xml. Follow screenshot below :
Installation and Configuration For Redis : Initial Steps
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
9/12
Restart the PHP process and it will make sure the cache is being stored inRedis as shown below :
Installation and Configuration of Redis : Final Step
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
10/12
Clients
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
11/12
Partnerships
8/13/2019 Making Magento Run Faster Configuring Redis as Back End
12/12