Tune Apache 2.x ยังไงให้รองรับ 20,000 Concurrent
mrgill | January 13, 2010 | 695 Views
ยังไม่เคยลองจริงเหมือนกันครับ แต่ไปเจอมาหวังว่าคงเป็นประโยชน์
เนื้อหา
1 Introduction 3
1.1 What ftp.heanet.ie is 3
1.2 What ftp.heanet.ie is not 3
1.3 Motivation 4
1.4 The Numbers 4
2 Benchmarking 6
2.1 Webserver benchmarking 6
2.2 Filesystem benchmarking 8
2.3 VM and Scheduler benchmarking 9
3 Tuning Apache 12
3.1 Choosing an MPM 12
3.2 Static Vs DSO 13
3.3 Configuration changes 14
3.4 Sendfile 15
3.5 Mmap 15
3.6 mod cache 16
3.7 Compile options 17
4 Tuning the Operating System 19
4.1 Choosing and tuning filesystems 19
4.2 NFS 21
4.3 Choosing a kernel 22
4.4 Tuning the Kernel 23
4.4.1 Tuning the VM 23
4.4.2 Tuning the Networking Stack 24
4.4.3 Pluggable I/O schedulers 25
4.5 Hyperthreading 25
5 System Design 26
5.1 Hardware and Operating System choice 26
5.2 Canyonero.heanet.ie 27
5.3 Attempted Multi-system architecture 28
5.4 Cassandra.heanet.ie 29
5.5 Summary: Time-line of ftp.heanet.ie 30
6 Future changes for ftp.heanet.ie 31
6.1 Jumboframes 31
6.2 Multicast services 31
6.3 mod ftpd? 31
6.4 64-bit and FreeBSD 31
Bibliography 33
Acknowledgements 33
White Papers [35 Pages]
Presentation
ขอบคุณ
Author : Colm MacCarthaigh


1 Comment Leave a Comment
1.
j_piriya | October 30, 2010 at 12:50 PM
20,000 Concurrent ในระดับ Apache ไม่ค่อยยากล่ะ แต่ 20,000 Concurrent ในระดับ User จะยากกว่า เพราะ User คนนึงเปิดหน้าเว็บขึ้นมา ก็จะต้องดาวน์โหลดทั้ง HTML, รูปภาพ, CSS, Javascript สมัยก่อนหน้าเว็บนึงเฉลี่ยจะมี 8-20 ไฟล์ ปัจจุบันหน้าเว็บนึงมี 20-50 ไฟล์
ดังนั้น Concurrent ในระดับ Apache คือ ทำให้ Server สามารถรับส่งไฟล์ได้ 20,000 ไฟล์พร้อม ๆ กัน แต่ Concurrent ในระดับ User คือ ให้ผู้ใช้ 20,000 คนเข้าใช้งานพร้อม ๆ กัน ซึ่งมันอาจจะหมายถึง Apache ต้องรับส่งไฟล์ 400,000-1,000,000 ไฟล์พร้อม ๆ กัน
ยังไงก็ขอบใจข้อมูลมากมาย
Leave a Comment
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
TrackBack URL | RSS feed for comments on this post.