OpenXcell - Magento Optimization Webinar 2013

40

description

Magento Optimization – Challenges and Solutions • Major challenges for optimization of Magento in detail • Best possible solutions to overcome the major challenges • Complete process understanding with help of work flow for Magento optimization • Roles and benefits of Cloud Server for Magento optimization through our own experience (Amazon Cloud Server)

Transcript of OpenXcell - Magento Optimization Webinar 2013

Page 1: OpenXcell - Magento Optimization Webinar 2013
Page 2: OpenXcell - Magento Optimization Webinar 2013

A brief about Openxcell Technolabs• Openxcell Technolabs is an ISO 9000:2008 certified company located in

India and USA

• We are a team of enthusiastic designers, Developers and managers exceeding the strength of 200

• We have strong hold in Mobile App Development, Game Development, Web Development, E-commerce Development and Enterprise Systems

• We have delivered quality solutions to our worldwide clientele

Page 3: OpenXcell - Magento Optimization Webinar 2013

WHY MAGENTO OPTIMIZATION

Page 4: OpenXcell - Magento Optimization Webinar 2013

Why Magento Optimization• Various studies and our own experience shows that the overall

performance of Magento is slow

• Optimization is required to speed up Magento

• Below is a chart showing the research outcomes for Magento performance without optimization

Page 5: OpenXcell - Magento Optimization Webinar 2013

A comparison of Magento performance before optimizationand after optimization

Page 6: OpenXcell - Magento Optimization Webinar 2013

WHY DOES PERFORMANCE MATTER?

Page 7: OpenXcell - Magento Optimization Webinar 2013

WHY DOES PERFORMANCE MATTER?

• 1 Second delay can cause 7% drop in conversions• Nearly 1/2 of users expect 2 second or less page load time and

they tend to abandon if not loaded in 3 seconds• 79% of shoppers say they won’t return if performance is poor• 44% say they would tell a friend about their poor experience• A Bad Experience Will Drive

– 46% of users to competitive sites– 35% are less likely to visit a problem site on any platform– 33% are less likely to purchase from that company

• Reference: - http://bit.ly/zVcxsP, http://bit.ly/mHFVVX, http://mz.cm/W5Pkx7, http://bit.ly/xfvPMC, http://bit.ly/yOlHQv

Page 8: OpenXcell - Magento Optimization Webinar 2013

HOW FAST ARE YOU NOW

Page 9: OpenXcell - Magento Optimization Webinar 2013

Google Analytics Site Speed Reports

Page 10: OpenXcell - Magento Optimization Webinar 2013

GT Metrix

Page 11: OpenXcell - Magento Optimization Webinar 2013

WAYS TO OPTIMIZE MAGENTO

Page 12: OpenXcell - Magento Optimization Webinar 2013

Ways to Optimize MagentoChallenges & Solutions

• Large number of JAVASCRIPT and CSS

• Slow performance due to multiple associated tables

• High number of database log tables

• Slow performance due to image loading

• Improve performance with caching

• Cloud Server

Page 13: OpenXcell - Magento Optimization Webinar 2013

LARGE NUMBER OF JAVASCRIPT & CSS

Page 14: OpenXcell - Magento Optimization Webinar 2013

Large number of JAVASCRIPT & CSS• Large number of JAVASCRIPT and CSS creates higher no. of HTTP request.

• Response time will go on a higher side because of higher no. of HTTP request and system will be slow.

Page 15: OpenXcell - Magento Optimization Webinar 2013

SolutionMerge CSS and JAVASCRIPT files into single file:

• In the Magento Admin, go to System > Configuration > Developer.

• Under "Javascript Settings", change "Merge Javascript Files" to YES.

• Under "CSS Settings", change "Merge CSS Files" to YES.

• Clear the cache.

Page 16: OpenXcell - Magento Optimization Webinar 2013

Solution

Page 17: OpenXcell - Magento Optimization Webinar 2013

SLOW PERFORMANCE DUE TO MULTIPLE ASSOCIATED TABLES

Page 18: OpenXcell - Magento Optimization Webinar 2013

Slow performance due to multiple associated tables

• One of the main issues with Magento sites running slowly, is a database that has become large and difficult to use for sending/retrieving data from.

• The model Magento uses to store customer and product data results in longer than average SQL queries and more reads.

• Enabling the Flat Catalog option for Categories and Products will merge product data into one table, therefore improving performance.

Page 19: OpenXcell - Magento Optimization Webinar 2013

SolutionEnabling Fat Catalog:

• Login to administration area and go to - System > Configuration > Catalog

• Under "Frontend", change "Use Flat Catalog Category" to yes

• Under "Frontend", change "Use Flat Catalog Product" to yes

• Clear your Magento cache

Page 20: OpenXcell - Magento Optimization Webinar 2013
Page 21: OpenXcell - Magento Optimization Webinar 2013

HIGH NUMBER OF DATABASE LOG TABLES

Page 22: OpenXcell - Magento Optimization Webinar 2013

High number of database log tables• Higher number of database logs creates higher response time in system• Below is the table that are populated due to logging feature of Magento

Page 23: OpenXcell - Magento Optimization Webinar 2013

SolutionDatabase log cleaning using Magento administration• In Magento administration go to System > Configuration

• In the left menu under Advanced click on System

• Under "Log Cleaning", change "Enable Log Cleaning" to YES and configure the Save Log days as per your requirement

• Click "Save Config"

Page 24: OpenXcell - Magento Optimization Webinar 2013

SLOW PERFORMANCE DUE TO IMAGE LOADING

Page 25: OpenXcell - Magento Optimization Webinar 2013

Slow performance due to image loading

• There are large number of images in any ecommerce store.

• On an average a product has more than 3 images and number of products can be unlimited.

• So its very necessary to optimize the images used in Magento store.

• Optimization of images prevents the system from higher response time.

Page 26: OpenXcell - Magento Optimization Webinar 2013

• Choose the correct format for the image - JPG, GIF, PNG8, PNG24

• JPG is great for photographic images

• GIF largely replaced by PNGs, but still sometimes a viable option for small patterns and textures

• PNG combines some of the best qualities of both and with PNG24 supports true transparency

Page 27: OpenXcell - Magento Optimization Webinar 2013

IMPROVE PERFORMANCE WITH CACHING

Page 28: OpenXcell - Magento Optimization Webinar 2013

Improve performance with caching• Setup your admin for maximum performance.

• These are the settings that will significantly speed up your Magento installation: Navigate to System > Cache Management and enable all cache types

• Below is the default caching provided by Magento

Page 29: OpenXcell - Magento Optimization Webinar 2013

• Enabling caching option that Magento provides is not enough

• So we need to use 3rd party caching extension for full page caching

• Example: Nitrogento (http://www.nitrogento.com/) First install the extension

Page 30: OpenXcell - Magento Optimization Webinar 2013

Drawback of using full page caching :

Enabling caching of every block with nitrogento causes different issues as below-

• Caching of Price block shows incorrect price for various products

• Wrong data in checkout processes

Page 31: OpenXcell - Magento Optimization Webinar 2013

Implement Varnish

• Why Varnish– HTTP Accelerator– Caching reverse proxy– Load Balancer– Fail over system

Page 32: OpenXcell - Magento Optimization Webinar 2013

Before & AfterBefore Varnish

After Varnish

Page 33: OpenXcell - Magento Optimization Webinar 2013

Extension Required : Turpentine- Varnish Cachehttp://www.magentocommerce.com/magento-connect/turpentine-6332.html

Page 34: OpenXcell - Magento Optimization Webinar 2013
Page 35: OpenXcell - Magento Optimization Webinar 2013

Install and Configure Varnish• Add the Repository

• Install the Package

• Configure the Daemon

• Service nginx restart

• Service php5 - fpm restart

• Service Varnish restart

• Varnish Start

• Please follow the below link for detail understanding of the process.

http://todsul.com/tech/install-and-configure-varnish-with-nginx/

Page 36: OpenXcell - Magento Optimization Webinar 2013

AMAZON CLOUD SERVER

Page 37: OpenXcell - Magento Optimization Webinar 2013

Cloud ServerThe most important Amazon services for Magento hosting

• Amazon Elastic Compute Cloud (EC2)

• Auto Scaling

• Elastic Load Balancing

• Amazon CloudFront (CDN)

• Amazon Relational Database Services (RDS)

• Amazon Route 53

• Amazon ElastCache

• Amazon Simple Storage Services (Amazon S3)

Page 38: OpenXcell - Magento Optimization Webinar 2013
Page 39: OpenXcell - Magento Optimization Webinar 2013

Benefits of Amazon cloud server:

• Flexibility

• Deployment Speed

• Performance

• Increase in capacity to accommodate higher number of visitors

• Better conversion rate

• Lower hosting cost through improve hardware efficiency

Page 40: OpenXcell - Magento Optimization Webinar 2013