sandro zaccarini, achive escape velocity

24
Achive Escape Velocity Sandro “guly” Zaccarini Thursday, March 17, 2011

Upload: knowcamp

Post on 22-Jun-2015

1.253 views

Category:

Technology


1 download

DESCRIPTION

Speech WordCamp-KnowCamp, Modena19 marzo 2011

TRANSCRIPT

Page 1: Sandro Zaccarini, Achive escape velocity

Achive Escape Velocity

Sandro “guly” Zaccarini

Thursday, March 17, 2011

Page 2: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Agenda* What is escape velocity?

* How does our Planet work?

* Why don’t we like it?

* Which alternatives do we have?

* Let the countdown begin!

Thursday, March 17, 2011

Page 3: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

What is Escape Velocity?

A Chemical Brother’s song!

Thursday, March 17, 2011

Page 4: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

What is Escape Velocity?It is the speed needed to "break free" from a gravitational field without further propulsion (WikiPedia)

Thursday, March 17, 2011

Page 5: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

How does our Planet work

Thursday, March 17, 2011

Page 6: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Why don’t we like it* Apache is a piece of junk (Theo de Raadt@OpenCON2005)

* mod_php slow as hell

* no caching

* poor performances

Thursday, March 17, 2011

Page 7: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Which Alternatives?Purge client isn’t possible...

...no more buyers

So we’re going to Aurora!

Thursday, March 17, 2011

Page 8: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Going to Aurora* drop apache, love nginx

* subs mod_php with php-fpm

* opcode cache APC/xcache

* static page caching, more love to varnish

* db caching with memcached

Thursday, March 17, 2011

Page 9: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Auroranginx:

* very fast webserver

* scalable

* low footprint

Thursday, March 17, 2011

Page 10: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Auroraphp-fpm:

* FastCGI process manager

* comm via tcp or unix socket

* dynamic process spawn

* chroot, setuid, php.ini foreach process

* support stats and slow-logs

Thursday, March 17, 2011

Page 11: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

AuroraAPC/xcache:

* compile and cache php code

* no flame please, choose what you prefer

Thursday, March 17, 2011

Page 12: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Auroravarnish:

* very fast caching proxy

* say it again: very fast caching proxy

Thursday, March 17, 2011

Page 13: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Auroramemcached:

* scalable

* distributed

Thursday, March 17, 2011

Page 14: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Make it WordPress-ablewordpress plugins:

* W3 Total Cache

* WP Super Cache

* ok, fight for your favourite one

Thursday, March 17, 2011

Page 15: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

How does Aurora work

OpCode

Thursday, March 17, 2011

Page 16: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

How does Aurora work

Thursday, March 17, 2011

Page 17: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Problem solved!..but did we achieve

escape velocity?

Thursday, March 17, 2011

Page 18: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Escape Velocity10/1000 Apache Aurora

Time per Req ~140 ~15

Time to serve 95%

~1500 ~65

Thursday, March 17, 2011

Page 19: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Escape Velocity

Likely 10 time faster!

Thursday, March 17, 2011

Page 20: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Countdown started3) we know issues

2) we know howto fix

1) we achieved escape velocity

mark) phone your sysadmin!

Thursday, March 17, 2011

Page 21: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Open Problems* no https out of the box

* no WAF (ping IronBee)

* nearly impossible on shared hosting services

Thursday, March 17, 2011

Page 22: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Thanks to

Thursday, March 17, 2011

Page 23: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Question?

Acta est fabula, plaudite!

Thursday, March 17, 2011

Page 24: Sandro Zaccarini, Achive escape velocity

Achieve Escape Velocity - guly@WordCamp 19/03/2011

Who am I?Sandro “guly” Zaccarini

Security Artist

[email protected]

#theguly

Thursday, March 17, 2011