+ All Categories
Home > Documents > WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your...

WebGUI Performance Tuning · Performance Tuning 2004 WebGUI User’s Conference. The Rules • Your...

Date post: 19-Jul-2020
Category:
Upload: others
View: 5 times
Download: 0 times
Share this document with a friend
25
WebGUI Performance Tuning 2004 WebGUI User’s Conference
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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

Questions?


Recommended