high performance website with lampp technology

18
HIGH PERFORMANCE FOR MEDIA WEBSITE Pierre Jean Duvivier Responsable WebFactory Edipresse SA

Upload: thirdbrain-sa

Post on 05-Jul-2015

1.338 views

Category:

Technology


0 download

DESCRIPTION

Edipresse's website have around 190'000 unique visitors by day. How we manage this heavy trafic ? What are the problems ?

TRANSCRIPT

Page 1: High Performance Website with LAMPP technology

HIGH PERFORMANCE

FOR MEDIA WEBSITEPierre Jean Duvivier

Responsable WebFactoryEdipresse SA

Page 2: High Performance Website with LAMPP technology

WHAT IS A « BIG MEDIA WEBSITE » ?WHAT IS A « BIG MEDIA WEBSITE » ?

Page 3: High Performance Website with LAMPP technology

TDG.CHTDG.CH

50’000 unique visitor by day – up to 400’000 pages views by day100 native edipresse news by day + breaking news via AFP, ATS

Page 4: High Performance Website with LAMPP technology

24 HEURES.CH24 HEURES.CH

35’000 unique visitor by day – up to 300’000 pages views by day100 news every day + external feed like ATP, AFS

Page 5: High Performance Website with LAMPP technology

LEMATIN.CHLEMATIN.CH

80’000 unique visitor by day – up to 500’000 pages views by day> 100 news by days + external Feed of all edipresse’s website

Page 6: High Performance Website with LAMPP technology

WHAT IS GOOD PERFORMANCES ?WHAT IS GOOD PERFORMANCES ?

Stable. It means that website is online during the maximum of time. 100 % is the maximum. A good rate is > 99.5 %

Fast. It means that page are downloaded quickly by users. A good rate < 5-7 s

« Right » Cost . It means that you have the right cost for the best result.

Page 7: High Performance Website with LAMPP technology

OUR WORST PROBLEMSOUR WORST PROBLEMS

Page 8: High Performance Website with LAMPP technology

Global Architecture for 11 websites and 190’000 uniques visitors by day

-Free & Simple well known solution (apache, mysql) to lower the complexity to maintain it (cost and knowledge)

- Group fonctionnalities to make economy. Use Firewall to do load balancing

- Spécialization :- FrontEnd (Apache)- Database (MySQL)- Cache Server (MemCache)- NFS (Binaries)

Page 9: High Performance Website with LAMPP technology

SYSTEM ARCHITECTUREFOR 190’000 uniques visitors by days (RED)

Page 10: High Performance Website with LAMPP technology

The max number of connections.

What happen : with a lot of users, each user when he surf on a webpage launch severals calls to apache. (to retreive css, jpg, ect…) opening one connection each time. (Image represent more than 66 % of Image represent more than 66 % of the bandwith and a large part of this call)the bandwith and a large part of this call)

Problem : Apache & Mysql can accept only a limited number of connection

Symptom for users : Users are queued and the time to load a page increase.

Page 11: High Performance Website with LAMPP technology

Images consume a lof of ressourcesAnd connections

Page 12: High Performance Website with LAMPP technology

Solutions to manage the Max number of connection

DIVIDE THE TASKS BETWEEN YOUR SERVERSWORK WITH THE HTTP PROTOCOL (EXPIRY)BECAREFULL WITH ERROR PAGES (404, 310.ect..)

Page 13: High Performance Website with LAMPP technology

Database Load Problem

What happen : webmaster and user(s) use a lot database access for all the action inside our CMS.

Problem : Databases servers overload when a lot of queries come.

Symptom for users : Instability : website don’t work for users and journalist / webmaster.

Page 14: High Performance Website with LAMPP technology

Solutions to manage the database load problem

Page 15: High Performance Website with LAMPP technology

PEAK TRAFIC PROBLEM

TRAFIC ON MEDIA WEBSITE IS NOT UNIFORM DURING THE DAY.THE MOST IMPORTANT TRAFIC IS SUPPORTED BETWEEN 8H and 10H.

Page 16: High Performance Website with LAMPP technology

HOW TO MANAGE WITH THE PEAK PROBLEM ?

We have still problem with this peak and we did not find the « right » solution

Page 17: High Performance Website with LAMPP technology

What solution(s) we don’t use to manage performance problem ?

SOLUTIONS WHAT IS IT ? WHY ?

Reverse proxy like Squid,

Varnish, Apache modProxy …

It replace the front end servers

serving a page already in html

« cached »

We will increase system

complexity then cost. No so easy

to setup and maintain it

Alternative PHP Cache

Compilation des scripts PHP

We didn’t test it for the moment. An option in the

future

Amazon network cache system (S3) or Akamai

You use a lot of servers in network (or p2p) to deliver

your content

We are interested to use Amazon s3

to server our image…next

upgrade

Page 18: High Performance Website with LAMPP technology

What solution(s) we don’t use to manage performance problem ?

SOLUTIONS WHAT IS IT ? WHY ?

Reverse proxy like Squid,

Varnish, Apache modProxy …

It replace the front end servers

serving a page already in html

« cached »

We will increase system

complexity then cost. No so easy

to setup and maintain it

Alternative PHP Cache

Compilation des scripts PHP

We didn’t test it for the moment. An option in the

future

Amazon network cache system (S3) or Akamai

You use a lot of servers in network (or p2p) to deliver

your content

We are interested to use Amazon s3

to server our image…next

upgrade