E-commerce is also about - InventCommerce

hastywittedmarriedInternet και Εφαρμογές Web

8 Δεκ 2013 (πριν από 3 χρόνια και 7 μήνες)

83 εμφανίσεις

1
E"commerce(is(also(about((
Magento server & environment optimization
Get very fast page rendering, even under heavy load !

© NBS System 2012, all right reserved
Managed Hosting & Security

www.nbs-system.co.uk

2
2
3
3
4
5
Giving

security
a new
meaning

H

O

S

T
(
The(safest(private(cloud(ever(
(
!

4
(
years'of'R&D'
!

15'security'layers'
!

Created'by'a'team'behind'400'
pentests
'
!

Designed'to'resist':'
!

Overflows/Poisoning'
!

XSS/CSRF/SQL'injecJon'
!

D.O.S'&'D.D.O.S'
!

Bruteforce
,'
…'
Engineered'to'offer'the'best'possible'
security'level'for'your'LAMP'applicaJons
.'
(

6
Magenthome
15'
events
/faires,'4'blogs'(~200'
posts
),'10+'
Opensource
'
projects
,'5'
howtos
,'1'book.'
Giving

security
a new
meaning

H

O

S

T
7


The'service'


24x7'


Security'aware'


Pla\orm'specific'support'


The'knowledge'


Working'with'Magento'since'2008'


Largest'Magento'hosted'farm'in'Europe'(>2000)'


Handled'more'than'10'000'Jckets'to'date'


We'know'the'typology'of'a'TV'appearance,'of'a'newslecer,'a'facebook'op,'…'


The'opJmisaJon'of'performances'


creator'of'Extend'to'Cloud'(E.T.C),'5’30”'to'bring'n'servers'in'reinforcement'


Up'to'240'cores'in'moJons'in'seconds'


Creators'of'Nitrogento'
'
8
8
9


So'many'figures'to'paste'here…'
"

Akamai'&'Forrester':'aier'5'seconds'load'Jme,'20%'of'visitors'flee'
"

Shopzilla'raised'its'
revenues(of(~10%(
by'stepping'down'
from(4,5s(to(2s(
loadJme'
"

Interrogated'users'claims'that'
2(seconds(is(fair,(4s(is(too(much(
"

In'2010,'
75%(of(visitors(won’t(come(back(if(the(site(is(slow
'
"

Speed'directly'influence'your'SEO'&'SEM'efficiency'
"

In'a'shop,'you'won’t'wait'10'min'for'a'sales'person,'on'the'web'it’s'4'
seconds.'
10


Google is also using speed as an important ranking factor (it’s official)




Graph (given by Google) show clearly the target: less than
1.5s


More and you are part of the
red team
called «
SLOW
»


This is not good for your SEO ranking and SEM efficiency


Relevance is still more important but… don’t you have competitors ?


11


Large'features'panel'&'flexibility'comes'at'a'price'


Do'it'in'assembler,'it'will'be'hell'fast'and'you’ll'become'hell'crazy'


The'use'of'framework'help'to'work'faster'


Magento'is'a'kind'of'“meta”'framework'


The'EAV'model'gave'a'lot'of'flexibility'to'the'catalog'but'is'costly'
12
12
13


Yslow'&'Pagespeed'are'Firefox'extensions'to'check'your'opJms'


www.gtmetrix.com
'does'it'directly'through'a'website'


Reaching'more'than'90%'is'not'easy,'a'default'demostore,'on'a'default'
serveur'(no'opJm)'scores''C/C'(76/72%)'and'takes'~3,1s'to'load.'


Those'two'performance'rule'set'are'among'the'most'complete'


RespecJng'all'rules'will'grant'you'a'serious'SEO'&'perfs'boost'
14


Less'than'a'seconds'to'fully'load'the'homepage'


65'ms'for'PHP'to'generate'the'home'HTML'and'start'gerng'the'staJcs'


Get'an'A/A'grade'on'Yslow'&'Pagespeed'


Deliver'massive'parallelizing'and'caching'capability'


Serving'up'to'180'simultaneous'acJons'(~40'000'Uniq'visitor'/'day)'per'
front'web'servers'with'a'Community'EdiJon'


Serving'up'to'300'simultaneous'acJons'on'a'Enterprise'EdiJon'(FPC)'
15
15
16


Leave'some'404'


Forget'to'acJvate'Bloc'Caching'


Poorly'coded'Crons'jobs'


“Cold'cache”'effect'(cache'clean'before'an'op)'


Load'a'lot'of'products/categories'on'the'Home'


Let'the'Log'database'be'overcrowded'


Foreign'includes'


Misconfiguring'Magento’s'cache'serng'


ConcepJon'errors'(like'real'Jme'sliders)'


Hard'disk'access,'nothing'worse'
17


Split'Web'&'DB'services'


AcJvate'Flat'catalog'&'Mage_opJmizer'


Use'Enterprise'EdiJon'(full'page'cache)'


Use'SOLR'for'large'catalog'


AcJvate'cache'systems'in'back'office'


Put'cache'&'sessions'files'on'ramdisks'


Use'opcode'caching'system'(APC,'Zend,'Eaccel'etc.)'


Minify'&'compress'JS'&'CSS'files'(Nitrogento'does'it'
!
)'


Tweak'your'apache'config'(Use'Etags,'Expire'headers,'Gzip)'
18


Properly'configure'FAST'&'SLOW'backend'


Slow'can'
only
'be'file'/'database'or'Redis'


Put'your'Database'on'SAN'(not'SATA)'


Use'PHP'5.4'(15%'faster'than'5.3)'


If'possible'with'Nginx'&'PHP'FPM'


Mono'front?'Use'APC'or'opJmized'File'backend'


If'you'are'very'*very*'conservaJve'use'Memcached/database'


DeacJvate'the'RSS'module'(impact'on'checkout'form'perf)'


Use'1'login'per'user'when'accessing'BO'(avoid'conflicJng'DB'access)
'
19


Use'a'CDN'or'a'Media'server'


Create'a'sprite'for'your'home'


Use'IRQ'Balancing'


Mount'disk'with'noaJme'opJon''


Lower'socket'Wait'Timeout'in'/proc'


Add'a'reverse'proxy'(Nginx'or'Varnish)'


Serve'resources'from'many'different'CNAMES'


Truncate'(or'archive)'your'log'tables'in'Magento'


Avoid'foreign'includes'or'check'response'Jmes'and'put'them'at'end'
20


Set'/proc/sys/vm/swappiness'to'10'


In'zend/backend/Cache.php,'change'
'''$priority'from'8'to'10'


Tweak'PHP’s'
realpath_cache_size'''


Tweak'PHP

s'realpath_cache_cl'


Use'Nitrogento
'


In'your'local.xml,'add':'
''''<slow_backend_store_data>0</slow_backend_store_data>'
''''<auto_refresh_fast_cache>0</auto_refresh_fast_cache>'
''''<lifeJme>259200</lifeJme>
'
21


Use'CSS3'&'HTML5'
'''''with'progressive'degradaJon'


Correct'the'ReindexaJon'bug'


Set'Innodb_flush_log_at_trx_commit'to'2'


DeacJvate'Binlog'on'single'DB'(no'slave)'


CREATE'INDEX'catalog_cat_product_idx'ON'
catalog_category_product_index_idx(product_id,category_id,store_id);
''


Correct'the'bug'in'the'method'applyAllRulesToProduct'that'launch'a'
reindexAll'for'index'prices'(also'called'by'save'products'in'BO)'
22
22
©NBS System
Sécurité – Hébergement - Infogérance

www.nbs-system.com

http://bit.ly/
Q75k25
Whitebook
of
Ecommerce

Magento
optimization

Howto

http://bit.ly/
rbFZ0v
Magento
reindexation
patch

http://bit.ly/
QVQVlw
www.magenthome.co.uk
NBS(System("(UK(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
33(
Glasshouse
(Street((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
London(W1B(5DG(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
England
(
(
Mail:(contact@nbs"system.co.uk((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
Phone:(+44(845(527(6098(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
(
NBS(System("(FR(
140(boulevard(Haussmann(
75008(Paris(
France(
(
Mail:(contact@nbs"system.com(
Phone:(+33(1(58(56(60(86(