f0urtyfive
Thu 20th Apr '06, 12:23pm
Well, not so much a configuration request as a configuration statement ;)
Here's what we're running right now on absolutepunk.net:
We've ditched apache all together, and are running solely lighttpd.
Lighttpd connects to FastCGI (php) for php apps, and just serves anything else out. We have 2.6 Million posts, 100k threads, and 70k members, with a minimum 1000 users on at any given moment.
Server configuration.
Servers just got done a reconfiguration, so their a bit funky right now (will probably eliminate one, not sure yet).
water.absolutepunk.net
Runs solely MySQL
Dell Poweredge 2650 (I think?)
2x 15k RPM 18 GB SCSI Drives in Raid 1
Dual Xeon 2.8 Ghz 1 GB Ram
Load is currently 0.3, usually stays below 1.
fire.absolutepunk.net
Dual Xeon 2.4 Ghz
1 GB Ram
2x 10k RPM 72 GB Drives in Raid 1 (SATA)
Load currently 1.4, stays below 2
(not fully configured yet) Runs lighttpd + FastCGI (php) (no eaccelerator yet)
After moving from apache to lighttpd, memory usage is a whopping 134 MB)
steam.absolutepunk.net
Pentium D Dual Core 3.0 Ghz
2 GB Ram
1x 250 GB 7.2k RPM SATA Drive
Load 0.4 stays below 1
Currently is just running FastCGI (php) with eaccelerator.
(Runs no webserver!)
server1.ceteranet.com
(On loan for reconfiguration)
Dell Poweredge 750
Pentium 4 2.8 Ghz
1 Gb Ram
2x 160 GB Hard Disk in Raid 1
Currently just running lighttpd (and a bunch of unrelated stuff)
Lighttpd cpu usage usually stays within 1-5% range
So basically right now, fire runs its own php, and server1.ceteranet.com runs a webserver, and outsources all the PHP running to steam. We're hoping to have just one webserver setup, with all the dynamic requests outsourced to another / two other servers.
Lighttpd is AMAZING in resource usage when compared to apache. You should definetly try it out before switching to a multi-server configuration.
a few links for stastics:
http://66.55.139.142/server-status (server1 stats)
http://66.55.139.130/server-status (Fire stats)
http://www.ceteranet.com/munin/ (stats for the whole bunch, steam == server2.ceteranet.com)
my.conf
[mysqld]
#log-bin = mysql-bin
#server-id = 1
port = 3306
socket = /tmp/mysql.sock
log_slow_queries=/var/log/slow-queries.log
max_connections = 350
key_buffer = 16M
key_buffer = 175M
#changed 3/2/05 by f0urtyfive
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 64
wait_timeout = 30
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
skip-innodb
safe-show-database
tmp_table_size = 128M
max-binlog-size = 256M
max-relay-log-size = 128M
[mysqldump]
quick
#max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 64M
sort_buffer_size = 64M
read_buffer = 16M
write_buffer = 16M
[myisamchk]
#key_buffer = 64M
#sort_buffer_size = 64M
#read_buffer = 16M
#write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
Here's what we're running right now on absolutepunk.net:
We've ditched apache all together, and are running solely lighttpd.
Lighttpd connects to FastCGI (php) for php apps, and just serves anything else out. We have 2.6 Million posts, 100k threads, and 70k members, with a minimum 1000 users on at any given moment.
Server configuration.
Servers just got done a reconfiguration, so their a bit funky right now (will probably eliminate one, not sure yet).
water.absolutepunk.net
Runs solely MySQL
Dell Poweredge 2650 (I think?)
2x 15k RPM 18 GB SCSI Drives in Raid 1
Dual Xeon 2.8 Ghz 1 GB Ram
Load is currently 0.3, usually stays below 1.
fire.absolutepunk.net
Dual Xeon 2.4 Ghz
1 GB Ram
2x 10k RPM 72 GB Drives in Raid 1 (SATA)
Load currently 1.4, stays below 2
(not fully configured yet) Runs lighttpd + FastCGI (php) (no eaccelerator yet)
After moving from apache to lighttpd, memory usage is a whopping 134 MB)
steam.absolutepunk.net
Pentium D Dual Core 3.0 Ghz
2 GB Ram
1x 250 GB 7.2k RPM SATA Drive
Load 0.4 stays below 1
Currently is just running FastCGI (php) with eaccelerator.
(Runs no webserver!)
server1.ceteranet.com
(On loan for reconfiguration)
Dell Poweredge 750
Pentium 4 2.8 Ghz
1 Gb Ram
2x 160 GB Hard Disk in Raid 1
Currently just running lighttpd (and a bunch of unrelated stuff)
Lighttpd cpu usage usually stays within 1-5% range
So basically right now, fire runs its own php, and server1.ceteranet.com runs a webserver, and outsources all the PHP running to steam. We're hoping to have just one webserver setup, with all the dynamic requests outsourced to another / two other servers.
Lighttpd is AMAZING in resource usage when compared to apache. You should definetly try it out before switching to a multi-server configuration.
a few links for stastics:
http://66.55.139.142/server-status (server1 stats)
http://66.55.139.130/server-status (Fire stats)
http://www.ceteranet.com/munin/ (stats for the whole bunch, steam == server2.ceteranet.com)
my.conf
[mysqld]
#log-bin = mysql-bin
#server-id = 1
port = 3306
socket = /tmp/mysql.sock
log_slow_queries=/var/log/slow-queries.log
max_connections = 350
key_buffer = 16M
key_buffer = 175M
#changed 3/2/05 by f0urtyfive
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 64
wait_timeout = 30
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
skip-innodb
safe-show-database
tmp_table_size = 128M
max-binlog-size = 256M
max-relay-log-size = 128M
[mysqldump]
quick
#max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 64M
sort_buffer_size = 64M
read_buffer = 16M
write_buffer = 16M
[myisamchk]
#key_buffer = 64M
#sort_buffer_size = 64M
#read_buffer = 16M
#write_buffer = 16M
[mysqlhotcopy]
interactive-timeout