The document discusses the Apache architecture for handling static and dynamic requests on a website. It describes how Apache serves static content like images directly from the server, while dynamic pages requiring database queries or API calls are also cached using techniques like progressive caching, page caching, and Varnish. It provides threshold values to monitor Apache performance and lists commands to analyze Apache log files and count URLs by minute to optimize resource usage.
3. APACHE(1 of 3)
• Static Requests (No API Hits)
• Content Pages (Promotions, How to Play etc.)
• Dynamic Requests (API Hits)
• Landing Pages
• Post Login Pages
• Static (Content Pages)
• Dynamic (My Profile, Transaction Details, Withdrawal etc.)
4. APACHE(2 of 3)
• URLs and Resource Consumption
• Static links like images, css, javascripts, fonts
• favicon.ico
• JSON
• Content Links (DB Hits)
• Dynamic Links (DB Hits as well as API Hits)
5. APACHE(3 of 3)
• Database – Query Caching
• Progressive Caching
• Page Caching
• Varnish (Only Landing Pages)
• Page Served (on Browser)
• HTML Minification
• Javascript/CSS/Images Minification
• Static links Expiry
6. Threshold Values
• httpd process(MPMs – Prefork and Worker)
• Disk IO
• CPU
• RAM
• Database Connections
• Network IO
7.
8.
9. Apache Optimization
• MPM
• Targets memory consumption only
• Limits traffic to reduce CPU keeping traffic in queue
• Queued requests can be dropped, no logs
MaxClients/ServerLimit
StartServers
MinSpareServers
MaxSpareServers
MaxConnectionsPerChild