Hello,

I am a new user to this site, I hope this is the right forum to ask for expert advise.

I am admin of an online communty for around about 1000 daily visitors and members. A lot of postings are done each day and a lot of images are posted as well.

I am in process of moving my site to a new server. This is configuration of my new server:

Intel Xeon E3-1245 Quad Core
16 GB RAM
Plesk ControlPanel 11.0.9
Debian 6.0.6

Here is mysqltuner results:

-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.63-0+squeeze1
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 3G (Tables: 434)
[--] Data in InnoDB tables: 72M (Tables: 199)
[--] Data in MEMORY tables: 1016K (Tables: 3)
[!!] Total fragmented tables: 199

-------- Performance Metrics -------------------------------------------------
[--] Up for: 23h 43m 50s (46K q [0.547 qps], 4K conn, TX: 1B, RX: 54M)
[--] Reads / Writes: 76% / 24%
[--] Total buffers: 1.6G global + 3.2M per thread (400 max threads)
[OK] Maximum possible memory usage: 2.9G (18% of installed RAM)
[OK] Slow queries: 0% (0/46K)
[OK] Highest usage of available connections: 1% (7/400)
[OK] Key buffer size / total MyISAM indexes: 1.0G/619.4M
[!!] Key buffer hit rate: 83.9% (1M cached / 184K reads)
[OK] Query cache efficiency: 56.7% (17K cached / 30K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (1 temp sorts / 1K sorts)
[!!] Joins performed without indexes: 502
[OK] Temporary tables created on disk: 24% (591 on disk / 2K total)
[OK] Thread cache hit rate: 99% (7 created / 4K connections)
[!!] Table cache hit rate: 18% (553 open / 2K opened)
[OK] Open file limit used: 1% (304/16K)
[OK] Table locks acquired immediately: 100% (33K immediate / 33K locks)
[!!] InnoDB data size / buffer pool: 72.9M/8.0M

-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Adjust your join queries to always utilize indexes
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
join_buffer_size (> 1.0M, or always use indexes with joins)
table_cache (> 8000)
innodb_buffer_pool_size (>= 72M)

Here is my current my.cnf:

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/se...variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
local-infile=0
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
# bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 1024M
max_allowed_packet = 128M
thread_stack = 192K
thread_cache_size = 512
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
max_connections = 400
table_cache = 7900
#thread_concurrency = 10
myisam_sort_buffer_size = 64M
myisam_max_sort_file_size = 2048M
join_buffer_size = 1024K
read_buffer_size = 512K
sort_buffer_size = 512K
table_definition_cache = 8000
table_open_cache = 8000
wait_timeout = 240
interactive_timeout = 60
connect_timeout = 10
tmp_table_size = 128M
max_heap_table_size = 256M
max_allowed_packet = 128M
max_seeks_for_key = 1000
group_concat_max_len = 1024
max_length_for_sort_data = 1024
net_buffer_length = 16384
max_connect_errors = 100000
concurrent_insert = 2
read_rnd_buffer_size = 1024K
bulk_insert_buffer_size = 8M
query_cache_limit = 2M
query_cache_size = 512M
query_cache_type = 1
query_prealloc_size = 262144
query_alloc_block_size = 65536
range_alloc_block_size = 4096
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
default-storage-engine = MyISAM
max_write_lock_count = 4
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
#
# Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
#
# Here you can see queries with especially long duration
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 2
slow_query_log=0
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem

[mysqldump]
quick
quote-names
max_allowed_packet = 64M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer = 1024M
sort_buffer_size = 8M
read_buffer_size = 8M
write_buffer_size = 8M

#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/


Please advise me the best configuration. Every help is appreciated.

Regards