Top Banner
Make your Magento2 fly!
41

David Bolufer - Make your magento2 fly2

Jan 21, 2018

Download

Internet

Mage Titans ES
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: David Bolufer - Make your magento2 fly2

Make your Magento2 fly!

Page 2: David Bolufer - Make your magento2 fly2

@davidbolufer

Page 3: David Bolufer - Make your magento2 fly2

What is “FLY”?

3

Page 4: David Bolufer - Make your magento2 fly2

LIKE A ROCKET?4

Page 5: David Bolufer - Make your magento2 fly2

LIKE A HUMMINGBIRD?

5

Page 6: David Bolufer - Make your magento2 fly2

LIKE A PLAIN?

6

Page 7: David Bolufer - Make your magento2 fly2

FAST AND SECURE

7

Page 8: David Bolufer - Make your magento2 fly2

FAST!8

Page 9: David Bolufer - Make your magento2 fly2

MAGENTO2

9

Page 10: David Bolufer - Make your magento2 fly2

Las lentejas muchomejor con morcilla

By Sergio Baixauli

Arc

hite

ctur

e

10

Page 11: David Bolufer - Make your magento2 fly2

M2 - Production

Merge and minifyCSS - JS -HTML

Varnish Caching

Asynchronous emailSending

Index ManagementUpdate on schedule

Set productionMode

11

Page 12: David Bolufer - Make your magento2 fly2

MAGENTO2 ENTERPRISE

SPLIT DATABASE

12

Page 13: David Bolufer - Make your magento2 fly2

SECURE!13

Page 14: David Bolufer - Make your magento2 fly2

Stock Updates

OrderUpdates

CatalogUpdates

Partial Reindexs

Customizedand extended

14

Page 15: David Bolufer - Make your magento2 fly2

Deferred stock updates

This functionality is best suited for high inventory items or products that can

easily be backordered*

15

Page 16: David Bolufer - Make your magento2 fly2

Beware!

16

Page 17: David Bolufer - Make your magento2 fly2

Divide and conquer

SPLIT DATABASE

Checkouts Catalog Orders

17

Page 18: David Bolufer - Make your magento2 fly2

MySQL Cluster

This approach improves the write scalability of the application*

SPLIT DATABASE

Magento 2 Site Performance and Scalability Optimizations

18

Page 19: David Bolufer - Make your magento2 fly2

MySQL Cluster

This approach improves the write scalability of the application*

SPLIT DATABASE

Magento 2 Site Performance and Scalability Optimizations

19

Percona does not agree

Page 20: David Bolufer - Make your magento2 fly2

M2 uses CQRS

SPLIT DATABASE

The framework make the separation of reads (slave) and writes (master)

20

Page 21: David Bolufer - Make your magento2 fly2

What abouteav_entity_store?

SPLIT DATABASE21

Page 22: David Bolufer - Make your magento2 fly2

What aboutSeconds_Behind_Master?

SPLIT DATABASE22

Page 23: David Bolufer - Make your magento2 fly2

¡Muerte por kiki!

SPLIT DATABASE23

Page 24: David Bolufer - Make your magento2 fly2

MAGENTO ENTERPRISECLOUD EDITION

24

Page 25: David Bolufer - Make your magento2 fly2

- 3 x 2 CPU with 3.75GB of RAM

- Vertical scaling up to 32CPU with 60Gb RAM

- Horizontal scaling web server

- 8 environments for development

25 ECE

Page 26: David Bolufer - Make your magento2 fly2

Arc

hite

ctur

e

26

ECE

Page 27: David Bolufer - Make your magento2 fly2

Net

wor

k tie

r

27

ECE

Page 28: David Bolufer - Make your magento2 fly2

App

licat

ion

tier

28

ECE

Page 29: David Bolufer - Make your magento2 fly2

Dat

abas

e tie

r

29

ELB?

ECE

Page 30: David Bolufer - Make your magento2 fly2

PROS

HA out-of-the-box

Operations / devops

Managed WAF(Fastly & Magento)

30

Anti DDos(Fastly)

Managed hostingplatform

ECE

Backups

Page 31: David Bolufer - Make your magento2 fly2

CONS / BEWARE

Datatier

No tiers

It autoscalesmanually

31

Newrelic

No AWS

ECE

Backups 6h/14d Vertical scaling

SLA?

Page 32: David Bolufer - Make your magento2 fly2

NO AWS

No Lamba for jobs

No Autoscaling

32

Gluster vs EFS

Redis vs Elastic Cache

ECE

No RDS

Page 33: David Bolufer - Make your magento2 fly2

OUR VISION

33

Page 34: David Bolufer - Make your magento2 fly2

Arc

hite

ctur

e

34

Page 35: David Bolufer - Make your magento2 fly2

Onestic Smart MySQL

35

Page 36: David Bolufer - Make your magento2 fly2

Onestic Smart MySQL

36

Detect and solve failures automatically

Controlled promotions

Split catalog and orders

Very low RTO/RPO

No split brain

Page 37: David Bolufer - Make your magento2 fly2

Onestic Smart MySQL: Data split

37

Page 38: David Bolufer - Make your magento2 fly2

Onestic Smart MySQL: Data split

38

No reindex in production

Catalog promotion without downtime

Workload in staging

Catalog data rollback

Page 39: David Bolufer - Make your magento2 fly2

39

Make Magento

great again

Page 40: David Bolufer - Make your magento2 fly2

Thanks!

40

Page 41: David Bolufer - Make your magento2 fly2

Bib

liogr

aphy

Magento 1 vs 2 Benchmarkhttps://www.goivvy.com/blog/magento-1924-magento-214-performance-benchmark

Scalability and performance PDFhttps://magento.com/sites/default/files/White%20Paper%20-%20Magento%202.0%20Performance%20and%20Scalability%2003.31.16.pdf

Magento Enterprise Cloud Edition http://devdocs.magento.com/guides/v2.1/cloud/bk-cloud.html SLAhttps://magento.com/legal/terms/cloud-sla

Write scaling in Percona XtraDB Cluster:https://docs.wandisco.com/git/gerrit/1.6/PerconaXtraDBCluster-5.6.22-25.8.pdf(Pages 7 and 8)

Gluster small file performance:http://blog.gluster.org/2016/10/gluster-tiering-and-small-file-performance/

Gluster Benchmarks:https://www.nuxeo.com/blog/some-glusterfs-experiments-and-benchmarks/