performance stack

18
Shayne Shayne Bartlett Bartlett Managing Director - Cloudum Pty. Ltd. Project Manager - Timble CVBA Co-Founder - Joomla! @joombaya

Upload: shayne-bartlett

Post on 16-Jun-2015

1.147 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Performance stack

ShayneShayne BartlettBartlett

Managing Director - Cloudum Pty. Ltd.Project Manager - Timble CVBACo-Founder - Joomla!

@joombaya

Page 2: Performance stack

PerformancePerformance StacksStacks

Making Joomla! RockOn A Budget

Page 3: Performance stack

HostingHosting

Fast, cheap or good.... pick two!

Page 4: Performance stack

GoogleGoogle

“You may have heard that here at Google we're obsessed with speed, in our products and on the web. As part of that effort, today we're including a new signal in our search ranking algorithms: site speed. Site speed reflects how quickly a website responds to web requests.” - April 09, 2010

Page 5: Performance stack

ConsiderationsConsiderations

• Cost• Reliability• Flexibility• Performance• Administration• Support• Redundancy• Backups

Page 6: Performance stack

LinuxLinux Apache Mysql PhpApache Mysql Php

The LAMP stack is possibly the best know and most widely used stack. Its proven technology but its also old technology.

The actual server could be a dedicated, VPS or cloud server.

With shared hosting a site is one of many sites located and served from the same server. This means all sites can have a direct influence on the performance of the rest.

• Well supported• Huge install base

• Flexibility• Scalability• Security

Pros Cons

Page 7: Performance stack

IntroducingIntroducing LEMPLEMP

• Linux• Nginx • Percona (MySQL)*• PHP5-FPM*• Exim*

At first glance it may seem like it’s just Apache swapped out for Nginx but there can be more to it.

Page 8: Performance stack

LinuxLinux

Many flavours each with its own pro’s and cons.

Page 9: Performance stack

Nginx (Engine x)Nginx (Engine x)

• Event-driven architecture • Reverse Proxy• Light on memory• Static File performance

Features

Developed since 2002 Nginx is the worlds 2nd most used web having overtaken IIS (Microsoft in Jan 2012)

Less is more, Nginx is lightweight. It doesn’t have as broad a feature set as Apache... by design!

Page 10: Performance stack

Nginx (Engine x)Nginx (Engine x)

https://timmehosting.de/benchmarks

Excuse the German... “schneller” means faster. Results were for ten page loads averaged. Not overly scientific but a basic idea of what can be expected.

Page 11: Performance stack

PerconaPercona

Percona is a drop in replacement for MySQL.

• Increased query speed• Lighter on hardware resources• Better scalability with less chance of requiring

sharding• Easier troubleshooting - increased logging

Features

Page 12: Performance stack

PerconaPercona

Copyright Percona

40% faster than standard MySQL in overall throughput

Stable performance (drops in MySQL are checkpointing by MySQL)

Page 13: Performance stack

PerconaPercona

Your in good company...

Page 14: Performance stack

php5-fpmphp5-fpm

• Adaptive Process spawning• Graceful start/stop• Independently configurable process workers

including UID/GID and php.ini

• Use Sockets rather than TCP/IP and get 10-15% increase in performance

FastCGI Process Manager

Features

Tip

Page 15: Performance stack

EximExim

A lightweight message transfer agent (MTA) developed by the University of Cambridge.

• Configure as outgoing only agent• Sendmail compatible

Page 16: Performance stack

DedicatedDedicated ServersServers

Dedicated Servers are similar to VPS’a but where as a VPS is allocated a part of the hardware resources a Dedicated server has them all to itself.

Dedicated servers are often found in complex multi-server architectures.

• Highly Configurable• High Availability • Powerful• Dedicated

Resources• Predictable Billing• Isolation

• Administration Costs• Fixed Billing• Dedicated Resources

Pros Cons

Page 17: Performance stack

CloudCloud ServersServers

• Highly Configurable• High Availability• Instantly Scalable • Lower Cost

• Administration Costs• Unpredictable Billing• Integrity

Pros Cons

Cloud computing is simply the pooling of computer resources.

In our world they are similar to VPS’a but the resources are on-demand and provided from a shared pool or Memory and CPU. As a result the resources are flexible and can burst as required.

Cloud hosting is typically charged per minute + bandwidth hence the actually monthly cost can vary greatly. Utility Computing? This is the business model.

• seti/BOINC(Berkeley Open Infrastructure for Network Computing)• Eucalyptus• Open Stack

Page 18: Performance stack

Closing ThoughtsClosing Thoughts

• Thousands spent on design & development will be instantly ruined if the hosting is not up to scratch.

• Judge every site on its own merits when deciding on the correct hosting platform.

• You can’t fudge server administration.

• Web Hosting Talk and Whirlpool are great places to start doing your homework. But... just because you heard it there, don’t make it true.