1. Database Tuning and Caching
MySQL + memcached
ผศ.ดร.เด่นพงษ์ สุดภักดี
ผู้ช่วยอธิการบดีฝ่ายวิชาการ และ
ผู้อานวยการสานักนวัตกรรมการเรียนการสอน
มหาวิทยาลัยขอนแก่น
1
2. Outline
• System performance
• KKU e-Learning (MOODLE)
• MySQL Tuning
• Caching using memcached
2
3. System Performance
• No exact solution for the best hardware
configuration.
– Focus on RAM HDD CPU
– Separate web server(s) from database server(s)
– SAS HDD (more expensive)
• Require system monitoring
• Require software tuning
(web server and database server)
– Database tuning is a crucial task
(no exact solution)
• Require optimization and caching
3
5. Khon Kaen University Equipment
• 5 web servers
• 1 main database server
• 1 database replication and network file sharing
server
• 1 system monitoring server
• 1 media streaming server
• 1 video encoding/rendering server
• SAN storage
(SAS: 1.5TB and SATA: 8TB)
• Load balancer
5
6. Software
• Web server
– Ubuntu 9.10 64-bit server
– Apache
– PHP5
– eAccelerator
– Memcache
– Oracle Instant Connection
– MOODLE
• Database server
– CentOS 64-bit
– MySQL Enterprise 5.1.44 6