webgui performance tuning · performance tuning 2004 webgui user’s conference. the rules • your...
TRANSCRIPT
![Page 1: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/1.jpg)
WebGUI Performance Tuning
2004 WebGUI User’s Conference
![Page 2: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/2.jpg)
The Rules
• Your mileage may vary
• Tuning can only do so much
• You can tune everything (hardware, software, network)
• Tuning WebGUI means tuning what WebGUI uses
![Page 3: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/3.jpg)
Hardware Tuning
![Page 4: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/4.jpg)
Pretuning• Research before you buy
• Compatibility
• Benchmarks
• Cheap hardware is usually slower
• Less cache
• Less efficient micro-controllers
![Page 5: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/5.jpg)
Hard Disks
• The weakest link
• SCSI is faster than IDE
• RAID affects speed
• More spindles with smaller disks
![Page 6: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/6.jpg)
Hardware Software
• Bad software slows good hardware
• Stay up to date
• drivers
• kernels
![Page 7: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/7.jpg)
Software Tuning
![Page 8: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/8.jpg)
Apache
• mod_perl
• KeepAlive Off
• Keeping Apache hot
• MinSpareServers
• MaxSpareServers
• StartServers
• mod_gzip
![Page 9: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/9.jpg)
WebGUI
• Delete plug-ins from your config file that you don’t use
• Empty your trash and clipboard regularly
• Set your message board posts to be archived at intervals right for your site
![Page 10: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/10.jpg)
HTML
• Dislocate your stylesheet to a file on the filesystem (collateral manager)
• Minimize the nesting of tables and divs
• Specify hard sizes on your images
![Page 11: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/11.jpg)
preload.perl
• Use it!
• Add wobject, macros, and other plug-ins
• Remove the references to plug-ins you don’t use
• Enable Apache::DBI
![Page 12: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/12.jpg)
MySQL
• Up max_connections to 1000
• Consider increasing buffers
• key_buffer=256M
• myisam_sort_buffer_size=64M
• query_buffer_size=5000
• sort_buffer=2M
• record_buffer=2M
![Page 13: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/13.jpg)
MySQL (cont)• max_allowed_packet=16M
• Keep threads hot
• thread_cache=8
• thread_concurrency=4
• thread_stack=128K
• table_cache=512
![Page 14: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/14.jpg)
WebGUI Caching
• Set your page caching as high as possible
• Export heavy and heavily traffic’d pages to static HTML
• Use in-memory templates if you have enough RAM
![Page 15: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/15.jpg)
Network Tuning
![Page 16: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/16.jpg)
Dislocate MySQL
MySQLApache /WebGUI
DBI
![Page 17: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/17.jpg)
Replicate MySQL
MySQLMaster
Apache /WebGUI
MySQLSlave
MySQLSlaveDBI
MySQL Replication
![Page 18: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/18.jpg)
Set Up A File Server
Apache /WebGUI
Apache /Static Files
SMB or NFS
![Page 19: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/19.jpg)
Use a Proxy
Apache w/mod_proxy
Apache /WebGUI
HTTP
![Page 20: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/20.jpg)
Load Balance
Apache /WebGUI
Load Balancer
Apache /WebGUI
Apache /WebGUI
File Server
HTTPNFS or SMB
![Page 21: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/21.jpg)
Everything
Load Balancer
Apache /WebGUI
Apache /WebGUI
MySQL Master
HTTPNFS or SMBDBIMySQL Replication
Apache /Static Files
MySQL Slave
![Page 22: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/22.jpg)
Network Setup
• Use 100MB or 1GB between servers
• Keep everything on a clean switch
• Use multiple network cards
• 1 for each server function
• 1 for utility functions such as backups and logins
![Page 23: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/23.jpg)
Load Balancer Configuration
• Good - simple round robin
• Better - monitor processor, memory, hard disk, and network load; send requests to least used servers
• Don’t load balance on IP address
![Page 24: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/24.jpg)
Localization
• Peer your site on as many backbones as possible
• Use local cache servers
![Page 25: WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your mileage may vary • Tuning can only do so much • You can tune everything (hardware,](https://reader034.vdocuments.net/reader034/viewer/2022050209/5f5b9cf8b9f90664ad6ab495/html5/thumbnails/25.jpg)
Questions?