performance stack

Post on 16-Jun-2015

1.149 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

ShayneShayne BartlettBartlett

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

@joombaya

PerformancePerformance StacksStacks

Making Joomla! RockOn A Budget

HostingHosting

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

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

ConsiderationsConsiderations

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

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

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.

LinuxLinux

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

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!

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.

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

PerconaPercona

Copyright Percona

40% faster than standard MySQL in overall throughput

Stable performance (drops in MySQL are checkpointing by MySQL)

PerconaPercona

Your in good company...

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

EximExim

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

• Configure as outgoing only agent• Sendmail compatible

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

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

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.

top related