PDA

View Full Version : Server Optimization request


BadGuy
Wed 16th Nov '05, 9:37pm
Hi

I have problem with the forum .

This is very big forum :

And I have 4 problems :

1- Many many emails sent from forum more then 30.000 email .
2- Slow forum when i have many visitors .
3- High load when i have many visitors .
4- Data base errors when i have many visitors .

I have only for forum 2 servers .

1) Dedicated Servers ( 2 servers: 1st for Apache, DNS, Mail(exim). 2nd for MYSQL).

2) Both servers have same specs, which are:

CPU: Dual Xeon 3.6GHz 2MB Cache Hyperthreading Enabled
Memory: 8GB DDR2 PC3200
Harddrive: Both servers have 2 Harddrives.
On MySQL Server, first harddrive is for OSCentOS Linux 4.x, and second harddrive is for MYSQL (/var/ partition).
On Apache Server, first harddrive is for OS (CentOS Linux 4.x), and second harddrive is mounted as /home where the website is)
ALL HARDDRIVES ARE: 15,000 RPM SCSI HARDDRIVE
LINUX: CentOS CentOS release 4.2 (Final)
Apache: 1.3.34
PHP Version: PHP 4.4.1
MYSQL: 4.0.25

3) Dont think so

4) It was compiled using cpanel's mysql script (/scripts/mysqlup)

5) TOP Stat:
Server1 APACHE:

top - 18:24:16 up 2 days, 23:04, 1 user, load average: 10.01, 10.06, 11.43
Tasks: 279 total, 4 running, 254 sleeping, 0 stopped, 21 zombie
Cpu0 : 66.0% us, 8.3% sy, 0.0% ni, 13.2% id, 0.0% wa, 1.0% hi, 11.6% si
Cpu1 : 70.3% us, 6.6% sy, 0.0% ni, 21.1% id, 1.7% wa, 0.0% hi, 0.3% si
Cpu2 : 67.8% us, 7.2% sy, 0.0% ni, 19.4% id, 4.9% wa, 0.0% hi, 0.7% si
Cpu3 : 77.1% us, 6.3% sy, 0.0% ni, 13.6% id, 2.3% wa, 0.0% hi, 0.7% si
Mem: 8310724k total, 2730164k used, 5580560k free, 235528k buffers
Swap: 10482372k total, 1568k used, 10480804k free, 1847224k cached

root@web [~]# free -m
total used free shared buffers cached
Mem: 8115 2719 5396 0 230 1805
-/+ buffers/cache: 683 7432
Swap: 10236 1 10235


Server2 MySQL
top - 23:25:41 up 2 days, 21:13, 1 user, load average: 4.33, 3.19, 2.92
Tasks: 213 total, 3 running, 210 sleeping, 0 stopped, 0 zombie
Cpu0 : 31.1% us, 18.1% sy, 0.0% ni, 46.5% id, 0.3% wa, 0.3% hi, 3.7% si
Cpu1 : 35.9% us, 16.9% sy, 0.0% ni, 47.2% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu2 : 30.7% us, 19.7% sy, 0.0% ni, 43.0% id, 6.3% wa, 0.0% hi, 0.3% si
Cpu3 : 48.7% us, 29.0% sy, 0.0% ni, 20.7% id, 1.3% wa, 0.0% hi, 0.3% si
Mem: 8310724k total, 8285068k used, 25656k free, 90712k buffers
Swap: 10241396k total, 144k used, 10241252k free, 7433428k cached

root@db [~]# free -m
total used free shared buffers cached
Mem: 8115 8090 25 0 88 7259
-/+ buffers/cache: 742 7373
Swap: 10001 0 10001


6) /etc/my.cnf
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
myisam_sort_buffer_size = 64M
thread_cache = 8
query_cache_size = 32M
thread_concurrency = 8
set-variable = max_connections=2048

server-id = 1

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

RESULT OF: mysqladmin -u root -p variables


---------------------------------------------------------+
| Variable_name | Value
|
---------------------------------------------------------+
| back_log | 50
|
| basedir | /
|
| binlog_cache_size | 32768
|
| bulk_insert_buffer_size | 8388608
|
| character_set | latin1
|
| character_sets | latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungari
an koi8_ukr win1251ukr greek win1250 croat cp1257 latin5 |
| concurrent_insert | ON
|
| connect_timeout | 5
|
| convert_character_set |
|
| datadir | /var/lib/mysql/
|
| default_week_format | 0
|
| delay_key_write | ON
|
| delayed_insert_limit | 100
|
| delayed_insert_timeout | 300
|
| delayed_queue_size | 1000
|
| flush | OFF
|
| flush_time | 0
|
| ft_boolean_syntax | + -><()~*:""&|
|
| ft_min_word_len | 4
|
| ft_max_word_len | 254
|
| ft_max_word_len_for_sort | 20
|
| ft_stopword_file | (built-in)
|
| have_bdb | NO
|
| have_crypt | YES
| have_innodb | YES
|
| have_isam | YES
|
| have_raid | NO
|
| have_symlink | YES
|
| have_openssl | NO
|
| have_query_cache | YES
|
| init_file |
|
| innodb_additional_mem_pool_size | 1048576
|
| innodb_autoextend_increment | 8
|
| innodb_buffer_pool_size | 8388608
|
| innodb_data_file_path | ibdata1:10M:autoextend
|
| innodb_data_home_dir |
|
| innodb_file_io_threads | 4
|
| innodb_force_recovery | 0
|
| innodb_thread_concurrency | 8
|
| innodb_flush_log_at_trx_commit | 1
|
| innodb_fast_shutdown | ON
|
| innodb_flush_method |
|
| innodb_lock_wait_timeout | 50
|
| innodb_log_arch_dir | ./
|
| innodb_log_archive | OFF
|
| innodb_log_buffer_size | 1048576
|
| innodb_log_file_size | 5242880
|
| innodb_log_files_in_group | 2
|
| innodb_log_group_home_dir | ./
|
| innodb_mirrored_log_groups | 1
|
| innodb_max_dirty_pages_pct | 90
| innodb_max_purge_lag | 0
|
| innodb_table_locks | ON
|
| interactive_timeout | 28800
|
| join_buffer_size | 131072
|
| key_buffer_size | 402653184
|
| language | /usr/share/mysql/english/
|
| large_files_support | ON
|
| license | GPL
|
| local_infile | ON
|
| locked_in_memory | OFF
|
| log | OFF
|
| log_update | OFF
|
| log_bin | ON
|
| log_slave_updates | OFF
|
| log_slow_queries | OFF
|
| log_warnings | 1
|
| long_query_time | 10
|
| low_priority_updates | OFF
|
| lower_case_file_system | OFF
|
| lower_case_table_names | 0
|
| max_allowed_packet | 1047552
|
| max_binlog_cache_size | 4294967295
|
| max_binlog_size | 1073741824
|
| max_connections | 2048
|
| max_connect_errors | 10
|
| max_delayed_threads | 20
|
| max_insert_delayed_threads | 20
|
| max_heap_table_size | 16777216
|
| max_join_size | 4294967295
|
| max_relay_log_size | 0
|
| max_seeks_for_key | 4294967295
|
| max_sort_length | 1024
|
| max_user_connections | 0
|
| max_tmp_tables | 32
|
| max_write_lock_count | 4294967295
|
| myisam_max_extra_sort_file_size | 268435456
|
| myisam_max_sort_file_size | 2147483647
|
| myisam_repair_threads | 1
|
| myisam_recover_options | OFF
|
| myisam_sort_buffer_size | 67108864
|
| net_buffer_length | 16384
|
| net_read_timeout | 30
|
| net_retry_count | 10
|
| net_write_timeout | 60
|
| new | OFF
|
| open_files_limit | 10250
|
| pid_file | /var/lib/mysql/db.XXXXXXHIDDEN-FOR-SECURITY-REASONSXXX.pid
|
| log_error |
|
| port | 3306
|
| protocol_version | 10
|
| query_alloc_block_size | 8192
|
| query_cache_limit | 1048576
|
| query_cache_size | 33554432
|
| query_cache_type | ON
| query_cache_wlock_invalidate | OFF
|
| query_prealloc_size | 8192
|
| range_alloc_block_size | 2048
|
| read_buffer_size | 2093056
|
| read_only | OFF
|
| read_rnd_buffer_size | 262144
|
| rpl_recovery_rank | 0
|
| server_id | 1
|
| slave_net_timeout | 3600
|
| skip_external_locking | ON
|
| skip_networking | OFF
|
| skip_show_database | OFF
|
| slow_launch_time | 2
|
| socket | /var/lib/mysql/mysql.sock
|
| sort_buffer_size | 2097144
|
| sql_mode | 0
|
| table_cache | 512
|
| table_type | MYISAM
|
| thread_cache_size | 8
|
| thread_stack | 126976
|
| tx_isolation | REPEATABLE-READ
|
| timezone | GMT
|
| tmp_table_size | 33554432
|
| tmpdir | /tmp/
|
| transaction_alloc_block_size | 8192
|
| transaction_prealloc_size | 4096
|
| version | 4.0.25-standard-log
| version_comment | Official MySQL RPM
|
| version_compile_os | pc-linux-gnu
|
| wait_timeout | 28800
|
+---------------------------------+-----------------------

7: Extended Status

+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| Aborted_clients | 9387 |
| Aborted_connects | 1175 |
| Bytes_received | 2200498272 |
| Bytes_sent | 2443272841 |
| Com_admin_commands | 0 |
| Com_alter_table | 0 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 0 |
| Com_change_db | 2270718 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_commit | 0 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 0 |
| Com_delete | 73368 |
| Com_delete_multi | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 0 |
| Com_flush | 12 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_insert | 839984 |
| Com_insert_select | 23970 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 317 |
| Com_optimize | 0 |
| Com_purge | 0 |
| Com_rename_table | 0 |
| Com_repair | 0 |
| Com_replace | 85035 |
| Com_replace_select | 0 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_rollback | 0 |
| Com_savepoint | 0 |
| Com_select | 12236866 |
| Com_set_option | 1014 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 0 |
| Com_show_create | 603 |
| Com_show_databases | 7 |
| Com_show_fields | 609 |
| Com_show_grants | 18 |
| Com_show_keys | 0 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_processlist | 1669 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 5 |
| Com_show_innodb_status | 0 |
| Com_show_tables | 754 |
| Com_show_variables | 129 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 317 |
| Com_update | 4111455 |
| Com_update_multi | 68 |
| Connections | 2274007 |
| Created_tmp_disk_tables | 16626 |
| Created_tmp_tables | 601966 |
| Created_tmp_files | 269 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Delayed_errors | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 955512 |
| Handler_read_first | 2311815 |
| Handler_read_key | 2990337594 |
| Handler_read_next | 1306454877 |
| Handler_read_prev | 95255587 |
| Handler_read_rnd | 3790701185 |
| Handler_read_rnd_next | 283221718 |
| Handler_rollback | 0 |
| Handler_update | 9741209 |
| Handler_write | 3615691339 |
| Key_blocks_used | 375052 |
| Key_read_requests | 1131948507 |
| Key_reads | 2340033 |
| Key_write_requests | 2591376 |
| Key_writes | 1708426 |
| Max_used_connections | 1083 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 512 |
| Open_files | 549 |
| Open_streams | 0 |
| Opened_tables | 133731 |
| Questions | 33370422 |
| Qcache_queries_in_cache | 6753 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 955512 |
| Handler_read_first | 2311815 |
| Handler_read_key | 2990337594 |
| Handler_read_next | 1306454877 |
| Handler_read_prev | 95255587 |
| Handler_read_rnd | 3790701185 |
| Handler_read_rnd_next | 283221718 |
| Handler_rollback | 0 |
| Handler_update | 9741209 |
| Handler_write | 3615691339 |
| Key_blocks_used | 375052 |
| Key_read_requests | 1131948507 |
| Key_reads | 2340033 |
| Key_write_requests | 2591376 |
| Key_writes | 1708426 |
| Max_used_connections | 1083 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 512 |
| Open_files | 549 |
| Open_streams | 0 |
| Opened_tables | 133731 |
| Questions | 33370422 |
| Qcache_queries_in_cache | 6753 |
| Qcache_inserts | 11676028 |
| Qcache_hits | 11455531 |
| Qcache_lowmem_prunes | 86243 |
| Qcache_not_cached | 560838 |
| Qcache_free_memory | 16503088 |
| Qcache_free_blocks | 2627 |
| Qcache_total_blocks | 16404 |
| Rpl_status | NULL |
| Select_full_join | 434 |
| Select_full_range_join | 0 |
| Select_range | 3018204 |
| Select_range_check | 0 |
| Select_scan | 1982612 |
| Slave_open_temp_tables | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 113 |
| Slow_queries | 2928 |
| Sort_merge_passes | 133 |
| Sort_range | 3462378 |
| Sort_rows | 3910858982 |
| Sort_scan | 617688 |
| Table_locks_immediate | 33598426 |
| Table_locks_waited | 3911992 |
| Threads_cached | 6 |
| Threads_created | 619422 |
| Threads_connected | 66 |
| Threads_running | 5 |
| Uptime | 249630 |
+--------------------------+------------+

Uptime: 249689 Threads: 74 Questions: 33379621 Slow queries: 2928 Opens: 133731 Flush tables: 1 Open tables: 512 Queries per second avg: 133.685

8) YES, VB is the only script running on our 2 servers. Database is on database server, and script is on apache webserver.

9) Average users: 2000~
Max users 6000~ (during peak hours)
Cookie timeout: 2700

10) PHPINFO: http://64.34.91.181/index.php

11)
KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 5
MinSpareServers 20
MaxSpareServers 60
StartServers 40
MaxClients 2048
Maxrequestsperchild 0

12) VB 3.0.7 (production site will be upgrading to 3.51 , beta upgrade/testing on Vb 3.51 right now in progress)

13) None, we usually rotate the logs long before the even cross the 1GB size.

So , can you help me with my problems .

Thank you .

eva2000
Fri 18th Nov '05, 3:27am
woah 1038+ mysql concurrent connections! among the hand full of the largest i've seen for vB use :)

try the following

1. Upgrade MySQL server to 4.0.25
2. Upgrade PHP to 4.4.1 if you use phpadsnew make sure to update to phpadsnew 2.0.7 to work with PHP 4.4.1
3. Edit /etc/my.cnf and place the following mysql server settings in /etc/my.cnf and restart mysql server afterwards


[client]
port = 3306
socket = /var/lib/mysql/mysql.sock

[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
safe-show-database
skip-innodb
max_connections = 1800
key_buffer = 384M
myisam_sort_buffer_size = 256M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1800
thread_cache_size = 512
wait_timeout = 90
connect_timeout = 10
tmp_table_size = 384M
max_allowed_packet = 64M
max_connect_errors = 10
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 8M
thread_concurrency = 4
query_cache_limit = 3M
query_cache_size = 256M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 384M
sort_buffer = 384M
read_buffer = 128M
write_buffer = 128M


4. Install APC Cache lastest version from http://pecl.php.net/package/APC

5. change httpd.conf from

KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 5
MinSpareServers 20
MaxSpareServers 60
StartServers 40
MaxClients 2048
Maxrequestsperchild 0

to

KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 5
MinSpareServers 20
MaxSpareServers 25
StartServers 40
MaxClients 512
Maxrequestsperchild 500

restart apache server

6. upgrade to vB 3.0.10 for now first

BadGuy
Fri 18th Nov '05, 5:39pm
woah 1038+ mysql concurrent connections! among the hand full of the largest i've seen for vB use :)

Hi eva2000

Yes we have very big forum :)



KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 5
MinSpareServers 20
MaxSpareServers 60
StartServers 40
MaxClients 2048
Maxrequestsperchild 0

to

KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 5
MinSpareServers 20
MaxSpareServers 25
StartServers 40
MaxClients 512
Maxrequestsperchild 500

restart apache server

ok but when i sent that to my admin he said :

Why startservers is 40 when the maxspareservers is 25? I believe startservers should be something between min and max. So is this is the way u want us to try, or there is some typo error in your instructions for apache settings.


so i am just checking and thank you for your help :)

eva2000
Sat 19th Nov '05, 10:28am
sorry meant

KeepAlive On
MaxKeepAliveRequests 150
KeepAliveTimeout 5
MinSpareServers 20
MaxSpareServers 25
StartServers 20
MaxClients 512
Maxrequestsperchild 500

AlfonsoC
Tue 22nd Nov '05, 1:58pm
Depending on your configuration, a separate machine who does the task of spooling and sending the messages could be helpful.

Should not be a such big machine. In the past I've sent 175K messages in less than 3 hours with a dual PIII 733 and 512Mb of RAM.

Don't know what are your circumstances and where you're housed (leased or owned machines), but anything as a celeron with 256Megs of RAM should be enough capable of dealing with 30k messages and remove the burden of dealing with deferred messages and sending them in batches (what kind of SMTP transport you use? EXIM, Qmail, Postfix, Sendmail (!!!)?.

-- More insights:
You can get some oomph! going to a RAID 10 volume. Your single disk setup for the database must show lots of processes choked by that bottleneck (just as a test, on peak time, make a iostat -k 1 and a top and look for processes waiting for I/O).

You need to offload the I/O task to a suitable RAID controller (go for a SCSI controller) forget about those RAID controllers integrated on chipset.

Look for those 2928 slow queries and see if you lack of some needing index (just activate the slow query log and play with the explain select ... command).

Tariq Support
Tue 13th Dec '05, 7:29pm
Hello Eva,

We have changed the servers for our forum but we are constantly having problem when limit of 5000 visitors is reached on forum. MySQL service gives error after that and the service is restarted. I've answered the required questions as below :-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
1. Is this on dedicated or shared virual server. If shared, how many sites share this server (ask web host if needed)
Ans : Dedicated Load Balanced Solution.
2. your server specs. For example:

cpu speed/type single or dual cpus): Quad Xeon for MySQL ( Intel(R) Xeon(TM) MP CPU 3.16GHz ) & 6 p4 Servers for Apache.
how much memory installed: 12 GB RAM on MySQL server and 2 GB on each Apache servers.
hard drive type/configuration: 146 GB SCSI RAID 5 for MySQL and 146 GB SATA for Apache servers.
linux distributor or windows version: CentOS release 4.2 (Final)
apache/IIS version: apache 1.3.34
PHP version: php 4.4.1
MySQL version: mysql 4.0.25


3. if you use mysql 4.x instead of mysql 3.23.x, do you have any innodb type databases/tables on your server ?
Ans : No.

4. if possible how mysql was compiled/installed
Ans : WHM

5. your top stats :-
Ans : root@forum [~]# top -d 2
top - 22:49:01 up 7 days, 2:39, 5 users, load average: 1.42, 1.70, 2.56
Tasks: 220 total, 2 running, 218 sleeping, 0 stopped, 0 zombie
Cpu(s): 8.7% us, 7.5% sy, 0.0% ni, 80.8% id, 3.0% wa, 0.0% hi, 0.0% si
Mem: 12467968k total, 4916780k used, 7551188k free, 181116k buffers
Swap: 2096440k total, 144k used, 2096296k free, 4192084k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5584 mysql 16 0 2737m 139m 1464 R 20.8 1.1 0:25.07 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5559 mysql 15 0 2737m 139m 1464 S 13.9 1.1 0:27.75 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5560 mysql 15 0 2737m 139m 1464 S 13.9 1.1 0:26.84 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5580 mysql 15 0 2737m 139m 1464 S 10.9 1.1 0:28.78 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5402 mysql 15 0 2737m 139m 1464 S 9.9 1.1 0:25.07 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5571 mysql 16 0 2737m 139m 1464 S 6.9 1.1 0:22.13 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5523 mysql 15 0 2737m 139m 1464 S 6.5 1.1 0:25.31 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5578 mysql 15 0 2737m 139m 1464 S 3.5 1.1 0:20.74 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5579 mysql 15 0 2737m 139m 1464 S 2.5 1.1 0:26.88 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5424 mysql 15 0 2737m 139m 1464 S 2.0 1.1 0:28.61 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5575 mysql 16 0 2737m 139m 1464 S 2.0 1.1 0:26.68 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5410 mysql 16 0 2737m 139m 1464 S 1.5 1.1 0:27.92 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5423 mysql 15 0 2737m 139m 1464 S 1.5 1.1 0:28.31 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5425 mysql 16 0 2737m 139m 1464 S 1.5 1.1 0:26.02 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5428 mysql 15 0 2737m 139m 1464 S 1.5 1.1 0:22.57 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru
5438 mysql 15 0 2737m 139m 1464 S 1.5 1.1 0:26.67 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/foru


6. your mysql configuration variables located at /etc/my.cnf or c:\my.cnf so post the contents inside of my.cnf (minus any passwords of course). If on Windows server if you don't have that file you need to log into telnet and as root user type
Ans :-
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock

[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
safe-show-database
skip-innodb
max_connections = 1000
key_buffer = 2048M
myisam_sort_buffer_size = 2048M
join_buffer_size = 5M
read_buffer_size = 5M
sort_buffer_size = 10M
table_cache = 280000
thread_cache_size = 10240
wait_timeout = 15
connect_timeout = 10
tmp_table_size = 2048M
max_allowed_packet = 128M
max_connect_errors = 100
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 8M
thread_concurrency = 16
query_cache_limit = 50M
query_cache_size = 2048M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384
log-slow-queries = /var/lib/mysql/slow_queries.log

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 384M
sort_buffer = 384M
read_buffer = 256M
write_buffer = 256M

Quote:
mysqladmin -u root -p variables
+---------------------------------+---------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------+
| Variable_name | Value
|
+---------------------------------+---------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------+
| back_log | 50
|
| basedir | /
|
| binlog_cache_size | 32768
|
| bulk_insert_buffer_size | 8388608
|
| character_set | latin1
|
| character_sets | latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish
hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5 |
| concurrent_insert | ON
|
| connect_timeout | 10
|
| convert_character_set |
|
| datadir | /var/lib/mysql/
|
| default_week_format | 0
|
| delay_key_write | ON
|
| delayed_insert_limit | 100
|
| delayed_insert_timeout | 300
|
| delayed_queue_size | 1000
|
| flush | OFF
|
| flush_time | 0
|
| ft_boolean_syntax | + -><()~*:""&|
|
| ft_min_word_len | 4
|
| ft_max_word_len | 254
|
| ft_max_word_len_for_sort | 20
|
| ft_stopword_file | (built-in)
|
| have_bdb | NO
|
| have_crypt | YES
|
| have_innodb | DISABLED
|
| have_isam | YES
| have_raid | NO
|
| have_symlink | YES
|
| have_openssl | NO
|
| have_query_cache | YES
|
| init_file |
|
| innodb_additional_mem_pool_size | 1048576
|
| innodb_autoextend_increment | 8
|
| innodb_buffer_pool_size | 8388608
|
| innodb_data_file_path |
|
| innodb_data_home_dir |
|
| innodb_file_io_threads | 4
|
| innodb_force_recovery | 0
|
| innodb_thread_concurrency | 8
|
| innodb_flush_log_at_trx_commit | 1
|
| innodb_fast_shutdown | ON
|
| innodb_flush_method |
|
| innodb_lock_wait_timeout | 50
|
| innodb_log_arch_dir |
|
| innodb_log_archive | OFF
|
| innodb_log_buffer_size | 1048576
|
| innodb_log_file_size | 5242880
|
| innodb_log_files_in_group | 2
|
| innodb_log_group_home_dir |
|
| innodb_mirrored_log_groups | 1
|
| innodb_max_dirty_pages_pct | 90
|
| innodb_max_purge_lag | 0
|
| innodb_table_locks | ON
|
| interactive_timeout | 28800
|
| join_buffer_size | 5238784
|
| key_buffer_size | 2147483648
|
| language | /usr/share/mysql/english/
|
| large_files_support | ON
|
| license | GPL
|
| local_infile | ON
|
| locked_in_memory | OFF
|
| log | OFF
|
| log_update | OFF
|
| log_bin | OFF
|
| log_slave_updates | OFF
|
| log_slow_queries | ON
|
| log_warnings | 1
|
| long_query_time | 10
|
| low_priority_updates | OFF
|
| lower_case_file_system | OFF
|
| lower_case_table_names | 0
|
| max_allowed_packet | 134216704
|
| max_binlog_cache_size | 4294967295
|
| max_binlog_size | 1073741824
|
| max_connections | 1000
|
| max_connect_errors | 100
|
| max_delayed_threads | 20
|
| max_insert_delayed_threads | 20
|
| max_heap_table_size | 16777216
|
| max_join_size | 4294967295
|
| max_relay_log_size | 0
|
| max_seeks_for_key | 4294967295
|
| max_sort_length | 1024
| max_user_connections | 0
|
| max_tmp_tables | 32
|
| max_write_lock_count | 4294967295
|
| myisam_max_extra_sort_file_size | 268435456
|
| myisam_max_sort_file_size | 2147483647
|
| myisam_repair_threads | 1
|
| myisam_recover_options | OFF
|
| myisam_sort_buffer_size | 2147483648
|
| net_buffer_length | 16384
|
| net_read_timeout | 30
|
| net_retry_count | 10
|
| net_write_timeout | 60
|
| new | OFF
|
| open_files_limit | 561010
|
| pid_file | /var/lib/mysql/forum.hawaaworld.com.pid
|
| log_error |
|
| port | 3306
|
| protocol_version | 10
|
| query_alloc_block_size | 16384
|
| query_cache_limit | 52428800
|
| query_cache_size | 2147483648
|
| query_cache_type | ON
|
| query_cache_wlock_invalidate | OFF
|
| query_prealloc_size | 16384
|
| range_alloc_block_size | 2048
|
| read_buffer_size | 5238784
|
| read_only | OFF
|
| read_rnd_buffer_size | 520192
| read_only | OFF
|
| read_rnd_buffer_size | 520192
|
| rpl_recovery_rank | 0
|
| server_id | 0
|
| slave_net_timeout | 3600
|
| skip_external_locking | ON
|
| skip_networking | OFF
|
| skip_show_database | OFF
|
| slow_launch_time | 2
|
| socket | /var/lib/mysql/mysql.sock
|
| sort_buffer_size | 10485752
|
| sql_mode | 0
|
| table_cache | 280000
|
| table_type | MYISAM
|
| thread_cache_size | 10240
|
| thread_stack | 126976
|
| tx_isolation | REPEATABLE-READ
|
| timezone | GMT
|
| tmp_table_size | 2147483648
|
| tmpdir | /tmp/
|
| transaction_alloc_block_size | 8192
|
| transaction_prealloc_size | 4096
|
| version | 4.0.25-standard-log
|
| version_comment | Official MySQL RPM
|
| version_compile_os | pc-linux-gnu
|
| wait_timeout | 15
|
+---------------------------------+---------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------+

copy and paste output here

7. your mysql extended-status output which shows entire server's mysql activity status (preferably with a day or 2 worth of mysql uptime for better indication of real activity) either: MySQL gets restarted automatically once the forum reaches limit of 5000 visitors every hour.
+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| Aborted_clients | 22 |
| Aborted_connects | 0 |
| Bytes_received | 9383142 |
| Bytes_sent | 616479266 |
| Com_admin_commands | 0 |
| Com_alter_table | 27 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 3 |
| Com_change_db | 1933 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_commit | 3 |
| Com_create_db | 1 |
| Com_create_function | 0 |
| Com_create_index | 36 |
| Com_create_table | 19 |
| Com_delete | 54 |
| Com_delete_multi | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 0 |
| Com_flush | 5 |
| Com_grant | 19 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_insert | 1459 |
| Com_insert_select | 21 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 0 |
| Com_optimize | 0 |
| Com_purge | 0 |
| Com_rename_table | 0 |
| Com_repair | 0 |
| Com_replace | 69 |
| Com_replace_select | 0 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_rollback | 0 |
| Com_savepoint | 0 |
| Com_select | 11087 |
| Com_set_option | 8 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 0 |
| Com_show_create | 0 |
| Com_show_databases | 0 |
| Com_show_fields | 0 |
| Com_show_grants | 0 |
| Com_show_keys | 0 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_processlist | 2 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 1 |
| Com_show_innodb_status | 0 |
| Com_show_tables | 0 |
| Com_show_variables | 2 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 0 |
| Com_update | 2874 |
| Com_update_multi | 0 |
| Connections | 1945 |
| Created_tmp_disk_tables | 8 |
| Created_tmp_tables | 521 |
| Created_tmp_files | 0 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Delayed_errors | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 307 |
| Handler_read_first | 2062 |
| Handler_read_key | 4113751 |
| Handler_read_next | 5048084 |
| Handler_read_prev | 92992 |
| Handler_read_rnd | 705555 |
| Handler_read_rnd_next | 4809975 |
| Handler_rollback | 0 |
| Handler_update | 5794 |
| Handler_write | 249632 |
| Key_blocks_used | 27792 |
| Key_read_requests | 12857292 |
| Key_reads | 27766 |
| Key_write_requests | 2177 |
| Key_writes | 1249 |
| Max_used_connections | 33 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 215 |
| Open_files | 260 |
| Open_streams | 0 |
| Opened_tables | 264 |
| Questions | 28835 |
| Qcache_queries_in_cache | 537 |
| Qcache_inserts | 10933 |
| Qcache_hits | 9299 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 151 |
| Qcache_free_memory | 2143221216 |
| Qcache_free_blocks | 293 |
| Qcache_total_blocks | 1458 |
| Rpl_status | NULL |
| Select_full_join | 1 |
| Select_full_range_join | 0 |
| Select_range | 2899 |
| Select_range_check | 0 |
| Select_scan | 1693 |
| Slave_open_temp_tables | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 0 |
| Slow_queries | 0 |
| Sort_merge_passes | 0 |
| Sort_range | 3376 |
| Sort_rows | 823617 |
| Sort_scan | 561 |
| Table_locks_immediate | 32326 |
| Table_locks_waited | 1179 |
| Threads_cached | 12 |
| Threads_created | 34 |
| Threads_connected | 22 |
| Threads_running | 5 |
| Uptime | 148 |
+--------------------------+------------+

a. install extended-status output script which is either located

- in your vB 2.2.6 to vB 2.3.5 or higher vB version's zip file extra's folder, upload mysqlinfo.php script to your site and post url link to it :-
http://147.202.48.81/~hawaa/backup/Old/admin/mysqlinfo.php (http://147.202.48.81/%7Ehawaa/backup/Old/admin/mysqlinfo.php)


8. is your vB the only thing on the server? or other scripts & sites which utilise php and mysql?
Ans : VB only.

9. how many average and max concurrent users on your vB forum ? and what your cookie timeout is ?
Ans : problem occurs when we cross limit of 5000 users on the forum. Cookie timeout is 2700.

10. create a file named phpinfo.php and place this code in it and post the url/link to it from your web site

PHP Code:
<?
phpinfo();
?>
i.e.MySQL Server : http://147.202.48.81/~hawaa/backup/Old/phpinfo.php (http://147.202.48.81/forum.hawaaworld.com/backup/Old/phpinfo.php) & http://forum.hawaaworld.com/backup/Old/phpinfo.php ( Apache )

11. if you run Apache and you have your own dedicated server or access to your httpd.conf (apache configuration file) can you post the values you have set for the following :

KeepAlive On
MaxKeepAliveRequests 5000
KeepAliveTimeout 15
MinSpareServers 20
MaxSpareServers 40
StartServers 100
MaxClients 2047

AND Maxrequestsperchild value = 0

12. what version of vB are you running ?
Ans : 3.0.10
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Please help us to figure out why this server is getting slow after the number of visitors increase and why mysql service would restart after crossing 5000 mark. Our database size right now is 2.5 GB and the table post.MYD alone is 1.8 GB. As per our thoughts Quad Xeon should have been able to handle this database but that has not worked for us so far.

eva2000
Wed 14th Dec '05, 10:58am
You're allocating ridicous amounts of memory and limits to mysql buffers even if you have 12GB of ram to work with. Would of been better of with dual opteron 265 or 270 cpus (with dual cores so quad cpus) as they outperform any of intel xeons range at http://www.vbulletin.com/forum/showthread.php?t=160103

Also can you repost your mysql extended-status output from question #7 + post the output from this command BEFORE you try the following below:

in ssh telnet on mysql server post output of

cat /proc/cpuinfo

1. Edit /etc/my.cnf and place the following mysql server settings in /etc/my.cnf and restart mysql server afterwards


[client]
port = 3306
socket = /var/lib/mysql/mysql.sock

[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
safe-show-database
back_log = 75
skip-innodb
max_connections = 1500
key_buffer = 512M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1800
thread_cache_size = 384
wait_timeout = 60
connect_timeout = 10
tmp_table_size = 1024M
max_allowed_packet = 64M
max_connect_errors = 10
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 32M
thread_concurrency = 4
query_cache_limit = 4M
query_cache_size = 384M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 384M
sort_buffer = 384M
read_buffer = 256M
write_buffer = 256M


2. On web server install APC Cache lastest version from http://pecl.php.net/package/APC. Read install guide at http://www.vbulletin.com/forum/showthread.php?t=165367

3. Upgrade to vB 3.0.11 http://www.vbulletin.com/forum/showthread.php?t=166389

4. edit httpd.conf values on web server from

KeepAlive On
MaxKeepAliveRequests 5000
KeepAliveTimeout 15
MinSpareServers 20
MaxSpareServers 40
StartServers 100
MaxClients 2047

AND Maxrequestsperchild value = 0

to

KeepAlive On
MaxKeepAliveRequests 1500
KeepAliveTimeout 8
MinSpareServers 15
MaxSpareServers 25
StartServers 15
MaxClients 256

AND Maxrequestsperchild value = 500

restart apache

Tariq Support
Fri 16th Dec '05, 7:32am
I have installed APC cache and it has helped Apache servers to keep the load normal but your suggestion to reduce the memory allocation from my.cnf didnt work as that makes the server use only 3 - 4 GB of RAM even in the busy hours which is not correct as the CPU has to take the extra load and 8 GB RAM remains free all the time. Output of /proc/cpuinfo is as below :-

root@forum [~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) MP CPU 3.16GHz
stepping : 1
cpu MHz : 3159.255
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est tm2 cid xtpr
bogomips : 6242.30

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) MP CPU 3.16GHz
stepping : 1
cpu MHz : 3159.255
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est tm2 cid xtpr
bogomips : 6307.84

processor : 2
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) MP CPU 3.16GHz
stepping : 1
cpu MHz : 3159.255
cache size : 1024 KB
physical id : 3
siblings : 2
core id : 3
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est tm2 cid xtpr
bogomips : 6307.84

processor : 3
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) MP CPU 3.16GHz
stepping : 1
cpu MHz : 3159.255
cache size : 1024 KB
physical id : 3
siblings : 2
core id : 3
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est tm2 cid xtpr
bogomips : 6307.84

processor : 4
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) MP CPU 3.16GHz
stepping : 1
cpu MHz : 3159.255
cache size : 1024 KB
physical id : 4
siblings : 2
core id : 4
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est tm2 cid xtpr
bogomips : 6307.84

processor : 5
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) MP CPU 3.16GHz
stepping : 1
cpu MHz : 3159.255
cache size : 1024 KB
physical id : 4
siblings : 2
core id : 4
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est tm2 cid xtpr
bogomips : 6307.84

processor : 6
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) MP CPU 3.16GHz
stepping : 1
cpu MHz : 3159.255
cache size : 1024 KB
physical id : 7
siblings : 2
core id : 7
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est tm2 cid xtpr
bogomips : 6307.84

processor : 7
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) MP CPU 3.16GHz
stepping : 1
cpu MHz : 3159.255
cache size : 1024 KB
physical id : 7
siblings : 2
core id : 7
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est tm2 cid xtpr
bogomips : 6307.84

Tariq Support
Fri 16th Dec '05, 5:56pm
We would like to upgrade our forum to vB 3.5. I've read that vB 3.5 supports master slave relationship for database which changes the DB driver so that all selects are pointed towards one database server (the slave), and the writes are all directed to the master. This will help out with table locks and the whatnot, and would allow one to throw more CPU processing power at the issue.

Our forum is finding it difficult to hold more than 5000 visitors which will stop growth of highly popular forum.

We are ready to add PowerEdge 2850 for the Slave server that will serve the Select queries and all updates will stay on the existing server.

Please give your suggestions so that we can solve the existing problem with the forum.

eva2000
Sun 18th Dec '05, 4:17am
check your pm for part of my reply

as to my.cnf try this one below

[client]
port = 3306
socket = /var/lib/mysql/mysql.sock

[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
safe-show-database
back_log = 75
skip-innodb
max_connections = 1500
key_buffer = 1024M
myisam_sort_buffer_size = 128M
join_buffer_size = 2M
read_buffer_size = 2M
sort_buffer_size = 3M
table_cache = 1800
thread_cache_size = 384
wait_timeout = 60
connect_timeout = 10
tmp_table_size = 1024M
max_allowed_packet = 64M
max_connect_errors = 10
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 32M
thread_concurrency = 4
query_cache_limit = 4M
query_cache_size = 384M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 384M
sort_buffer = 384M
read_buffer = 256M
write_buffer = 256M

also maybe it would be best if i can take a peak in on both servers via ssh telnet/root user ?

so right this moment what are the load averages/top stats for both web and db servers ?