david bolufer - make your magento2 fly2
TRANSCRIPT
Make your Magento2 fly!
@davidbolufer
What is “FLY”?
3
LIKE A ROCKET?4
LIKE A HUMMINGBIRD?
5
LIKE A PLAIN?
6
FAST AND SECURE
7
FAST!8
MAGENTO2
9
Las lentejas muchomejor con morcilla
By Sergio Baixauli
Arc
hite
ctur
e
10
M2 - Production
Merge and minifyCSS - JS -HTML
Varnish Caching
Asynchronous emailSending
Index ManagementUpdate on schedule
Set productionMode
11
MAGENTO2 ENTERPRISE
SPLIT DATABASE
12
SECURE!13
Stock Updates
OrderUpdates
CatalogUpdates
Partial Reindexs
Customizedand extended
14
Deferred stock updates
This functionality is best suited for high inventory items or products that can
easily be backordered*
15
Beware!
16
Divide and conquer
SPLIT DATABASE
Checkouts Catalog Orders
17
MySQL Cluster
This approach improves the write scalability of the application*
SPLIT DATABASE
Magento 2 Site Performance and Scalability Optimizations
18
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
M2 uses CQRS
SPLIT DATABASE
The framework make the separation of reads (slave) and writes (master)
20
What abouteav_entity_store?
SPLIT DATABASE21
What aboutSeconds_Behind_Master?
SPLIT DATABASE22
¡Muerte por kiki!
SPLIT DATABASE23
MAGENTO ENTERPRISECLOUD EDITION
24
- 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
Arc
hite
ctur
e
26
ECE
Net
wor
k tie
r
27
ECE
App
licat
ion
tier
28
ECE
Dat
abas
e tie
r
29
ELB?
ECE
PROS
HA out-of-the-box
Operations / devops
Managed WAF(Fastly & Magento)
30
Anti DDos(Fastly)
Managed hostingplatform
ECE
Backups
CONS / BEWARE
Datatier
No tiers
It autoscalesmanually
31
Newrelic
No AWS
ECE
Backups 6h/14d Vertical scaling
SLA?
NO AWS
No Lamba for jobs
No Autoscaling
32
Gluster vs EFS
Redis vs Elastic Cache
ECE
No RDS
OUR VISION
33
Arc
hite
ctur
e
34
Onestic Smart MySQL
35
Onestic Smart MySQL
36
Detect and solve failures automatically
Controlled promotions
Split catalog and orders
Very low RTO/RPO
No split brain
Onestic Smart MySQL: Data split
37
Onestic Smart MySQL: Data split
38
No reindex in production
Catalog promotion without downtime
Workload in staging
Catalog data rollback
39
Make Magento
great again
Thanks!
40
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/