SlideShare a Scribd company logo
Web ScalabilityWeb Scalability
www.folio3.com@folio_3
Scalability
 It is the ability of a system to handle a growing amount of
traffic/data in a capable manner
 How much system can grow
 How easy it is to increase capacity
Generation Time
Delivery Time
Scalability
Solutions
 Add hardware. More CPU and RAM to machine
 Vertical Scalability
 Costly
 Higher TCO
 Add another server
 Horizontal Scalability
 More reliable
 Less costly as compared to other options
 Maintenance cost is higher
Opportunity Areas
 Database
 Application
 Web Server
 Scripting Language
 Hardware
 Hosting
Database
 Query Optimization
 Log slow queries
 Check query plan to make sure indexes are used
 Indexes
 A lot of how-to's available
 MySQL Query Cache
 Performance Schema
Database
 Review default values
 Index buffers
 Innodb Buffer Pool
 Number of open tables
 Innodb vs MyISAM
 Speed up file system
 Per-table file for Innodb
 Keep RDBMS updated
 A lot of diagnostic tools available
phpMyAdmin Advisor
Database
 Load balancing
 Route read queries to slaves
 Write queries to Master
 Multi-master Architecture
 Offload Database server
 Sphinx, Solr
 Nosql (Radis, Mongo etc)
 MySQL Cluster
 Write intensive
Application
 Identify Bottleneck
 Newrelic
 xDebug
 Framework profiling tools
Web Performance & Scalability Tools
Web Performance & Scalability Tools
Application
 Use framework DB APIs
 Avoid custom queries
 It allows the use of plug-ins / extensions / modules
 Use Framework cache APIs
 Don’t by-pass framework or CMS
 Profile your code
 Time
 Memory
 Profile/Monitor third party services
Application
 Cache output
 Full page cache
 Can be done in:
 Application (Disk, memcache, apc etc)
 Proxy server (varnish, lightspeed)
 Very effective
 Wikipedia serves 85% cached content. Only 15% is fetched from DB
 Cache static files in memory
 Query Results Cache
 Reduces number of queries
 Reduce IO
 Avoid file_exists sort of checks
 Reduce file operations
Web Server
 Explore options
 Apache
 Nginx
 Litespeed
 Load balancing
 HAProxy
 Ldirector
 Varnish (define multiple backend)
 Nginx, Apache balancer modules
 Decide balancing strategy
 Round robin, Last used, Weighted
 Do heavy lifting in crons, message queues
Web Performance & Scalability Tools
Web Server
 Fine-tune web server
 Don’t rely on default configurations
 Make web server use multiple cores
 E.g worker_processes for nginx
 Check your specific server configuration
 KeepAlive sort of options
 A lot can be done
Scripting Language (php)
 Enable opcache
 APC
 Opcache in 5.5
 eAccelerator
 Fine-tune settings
 Real path cache
 Buffers
 Max memory per script
 Look for best practices for that language
Hardware
 Disk is the slowest part of the system
 Go for SSD
 Reduce IO
 Offload Extensive downloads
 Cloud files
 CDN
 File system optimizations
 Number of files in folder
 RAID
Hosting
 Cloud vs. Dedicated
 Cloud makes scaling easy
 Easy to add hardware
 Easy to build
 Cloud is cheaper as compared to dedicated hardware
 Easy to separate DB & Application server
 Avoid having control panels on servers
 Cloud has slight performance disadvantage
 Does not work well when it is raining.
Resources
 http://www.slideshare.net/mkherlakian/high-performance-php-scaling-and-
getting-the-most-out-of-your-infrastructure
 http://www.slideshare.net/mohamed_almasry_lamp/lamp-applications-
scalability-lamp-web-applications
 http://20bits.com/article/10-tips-for-optimizing-mysql-queries-that-dont-
suck

More Related Content

PPTX
Sql saturday azure storage by Anton Vidishchev
PPT
World Wide Web Caching
PPTX
HBaseConAsia2018 Track3-7: The application of HBase in New Energy Vehicle Mon...
PPT
Implementing High Performance Drupal Sites
PPTX
Hadoop.NET
PDF
HBaseConAsia2018 Track3-6: HBase at Meituan
PPTX
Understanding Web Cache
PPTX
HBaseConAsia2018 Track1-5: Improving HBase reliability at PInterest with geo ...
Sql saturday azure storage by Anton Vidishchev
World Wide Web Caching
HBaseConAsia2018 Track3-7: The application of HBase in New Energy Vehicle Mon...
Implementing High Performance Drupal Sites
Hadoop.NET
HBaseConAsia2018 Track3-6: HBase at Meituan
Understanding Web Cache
HBaseConAsia2018 Track1-5: Improving HBase reliability at PInterest with geo ...

What's hot (20)

PPTX
Azure storage
PDF
Azure Redis Cache
PDF
Володимир Цап "Constraint driven infrastructure - scale or tune?"
PPTX
Road to cloud-iaas
PPTX
Microsoft Azure Media Services
PPT
A complete guide to azure storage
PPTX
Drupal performance optimization Best Practices
PPTX
Indexing with solr search server and hadoop framework
PPTX
Storage Services
PDF
Simple server side cache for Express.js with Node.js
PPT
Dba lounge-sql server-performance-troubleshooting
PDF
Product to Try | Morro Data
PDF
Роман Новиков "Best Practices for MySQL Performance & Troubleshooting with th...
PPTX
Azure redis cache
PPTX
Windows Azure Storage – Architecture View
KEY
WordPress: Performance, Optimization & Scaling
PPTX
Capacity Planning
PDF
Roshan Bhattarai: Scaling WordPress for high traffic sites
PPTX
Scaling wordpress for high traffic
PPTX
Redis Labs and SQL Server
Azure storage
Azure Redis Cache
Володимир Цап "Constraint driven infrastructure - scale or tune?"
Road to cloud-iaas
Microsoft Azure Media Services
A complete guide to azure storage
Drupal performance optimization Best Practices
Indexing with solr search server and hadoop framework
Storage Services
Simple server side cache for Express.js with Node.js
Dba lounge-sql server-performance-troubleshooting
Product to Try | Morro Data
Роман Новиков "Best Practices for MySQL Performance & Troubleshooting with th...
Azure redis cache
Windows Azure Storage – Architecture View
WordPress: Performance, Optimization & Scaling
Capacity Planning
Roshan Bhattarai: Scaling WordPress for high traffic sites
Scaling wordpress for high traffic
Redis Labs and SQL Server
Ad

Viewers also liked (16)

PPT
Offline Data Access in Enterprise Mobility
PPTX
Dimensional Modelling - Basic Concept
PPTX
Cache is king
PDF
An Overview of Blackberry 10 & Blackberry App Development
PPTX
Web Application Security - Folio3
PPT
Introduction to Docker
PPTX
Front End Oprtimization
PPT
Distributed and Fault Tolerant Realtime Computation with Apache Storm, Apache...
PPT
An Introduction to CSS Preprocessors (SASS & LESS)
PPT
An Overview of Blackberry 10
PPT
Introduction to SharePoint 2013
PDF
Cross Platform Mobile App Development - An Introduction to Sencha Touch
PPT
Enterprise Mobility - An Introduction
PPT
Introduction to Go-Lang
PPT
Best Practices of Software Development
PPT
NOSQL Database: Apache Cassandra
Offline Data Access in Enterprise Mobility
Dimensional Modelling - Basic Concept
Cache is king
An Overview of Blackberry 10 & Blackberry App Development
Web Application Security - Folio3
Introduction to Docker
Front End Oprtimization
Distributed and Fault Tolerant Realtime Computation with Apache Storm, Apache...
An Introduction to CSS Preprocessors (SASS & LESS)
An Overview of Blackberry 10
Introduction to SharePoint 2013
Cross Platform Mobile App Development - An Introduction to Sencha Touch
Enterprise Mobility - An Introduction
Introduction to Go-Lang
Best Practices of Software Development
NOSQL Database: Apache Cassandra
Ad

Similar to Web Performance & Scalability Tools (20)

PPTX
Drupal Backend Performance and Scalability
PPT
FOWA Scaling The Lamp Stack Workshop
PPTX
Leveraging Functional Tools and AWS for Performance Testing
PPT
Drupalcamp Estonia - High Performance Sites
PPT
Drupalcamp Estonia - High Performance Sites
PPS
Web20expo Filesystems
PPS
Beyond the File System: Designing Large-Scale File Storage and Serving
PPS
Web20expo Filesystems
PPS
Web20expo Filesystems
PPS
Web20expo Filesystems
PPT
Oracle UCM: Web Site Performance Tuning
PPT
WE18_Performance_Up.ppt
PPS
Beyond the File System - Designing Large Scale File Storage and Serving
PPS
Filesystems
PPT
Jagmohancrawl
PDF
SharePoint 2010 Boost your farm performance!
PPT
Lamp Stack Optimization
PPS
Building Low Cost Scalable Web Applications Tools & Techniques
PDF
DrupalCampLA 2011: Drupal backend-performance
PPT
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
Drupal Backend Performance and Scalability
FOWA Scaling The Lamp Stack Workshop
Leveraging Functional Tools and AWS for Performance Testing
Drupalcamp Estonia - High Performance Sites
Drupalcamp Estonia - High Performance Sites
Web20expo Filesystems
Beyond the File System: Designing Large-Scale File Storage and Serving
Web20expo Filesystems
Web20expo Filesystems
Web20expo Filesystems
Oracle UCM: Web Site Performance Tuning
WE18_Performance_Up.ppt
Beyond the File System - Designing Large Scale File Storage and Serving
Filesystems
Jagmohancrawl
SharePoint 2010 Boost your farm performance!
Lamp Stack Optimization
Building Low Cost Scalable Web Applications Tools & Techniques
DrupalCampLA 2011: Drupal backend-performance
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010

More from Folio3 Software (14)

PPT
Shopify & Shopify Plus Ecommerce Development Experts
PPT
Magento and Magento 2 Ecommerce Development
PPTX
All You Need to Know About Type Script
PPT
Enter the Big Picture
PPT
A Guideline to Test Your Own Code - Developer Testing
PPT
OWIN (Open Web Interface for .NET)
PPT
StackOverflow Architectural Overview
PPT
Introduction to Enterprise Service Bus
PPT
Regular Expression in Action
PPT
HTTP Server Push Techniques
PPT
Realtime and Synchronous Applications
PPT
Andriod - Technical Review
PPT
NetSuite Integration Solutions - Folio3
PDF
Folio3 - An Introduction to PHP Yii
Shopify & Shopify Plus Ecommerce Development Experts
Magento and Magento 2 Ecommerce Development
All You Need to Know About Type Script
Enter the Big Picture
A Guideline to Test Your Own Code - Developer Testing
OWIN (Open Web Interface for .NET)
StackOverflow Architectural Overview
Introduction to Enterprise Service Bus
Regular Expression in Action
HTTP Server Push Techniques
Realtime and Synchronous Applications
Andriod - Technical Review
NetSuite Integration Solutions - Folio3
Folio3 - An Introduction to PHP Yii

Recently uploaded (20)

PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Major-Components-ofNKJNNKNKNKNKronment.pptx
PPT
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
IB Computer Science - Internal Assessment.pptx
PDF
Introduction to Business Data Analytics.
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PPT
Quality review (1)_presentation of this 21
PPTX
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
Database Infoormation System (DBIS).pptx
PPTX
1_Introduction to advance data techniques.pptx
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
Global journeys: estimating international migration
PDF
Lecture1 pattern recognition............
PPT
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
.pdf is not working space design for the following data for the following dat...
PDF
Clinical guidelines as a resource for EBP(1).pdf
climate analysis of Dhaka ,Banglades.pptx
Major-Components-ofNKJNNKNKNKNKronment.pptx
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
Galatica Smart Energy Infrastructure Startup Pitch Deck
IB Computer Science - Internal Assessment.pptx
Introduction to Business Data Analytics.
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
Quality review (1)_presentation of this 21
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Database Infoormation System (DBIS).pptx
1_Introduction to advance data techniques.pptx
oil_refinery_comprehensive_20250804084928 (1).pptx
Global journeys: estimating international migration
Lecture1 pattern recognition............
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
Business Acumen Training GuidePresentation.pptx
.pdf is not working space design for the following data for the following dat...
Clinical guidelines as a resource for EBP(1).pdf

Web Performance & Scalability Tools