ultimamente sto avendo una serie di errori quando eseguo il cron di drupal soprattutto con una serie di:
Warning: MySQL server has gone away
query: INSERT INTO watchdog
(uid, type, message, variables, severity, link, location, referer, hostname, timestamp)
VALUES
(0, 'php',......................
contattando il mio hosting, sono su un dedicato, mi ha consigliato di configurare al meglio my.cnf che al momento è:
[mysqld]
skip-locking
character-sets-dir=/usr/share/mysql/charsets/
query_cache_limit=1M
query_cache_size=16M
query_cache_type=1
max_user_connections=50
max_connections=300
interactive_timeout=100
wait_timeout=30
connect_timeout=30
thread_cache_size=96
key_buffer=8M
join_buffer=1M
max_allowed_packet=64M
table_cache=1024
record_buffer=1M
sort_buffer_size=1024K
read_buffer_size=1024K
max_connect_errors=10
read_rnd_buffer_size=1024K
myisam_sort_buffer_size=16M
socket=/var/lib/mysql/mysql.sock
[mysql.server]
user=mysql
[safe_mysqld]
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=8M
[mysql]
no-auto-rehash
[isamchk]
key_buffer=16M
sort_buffer=16M
read_buffer=8
write_buffer=8M
[myisamchk]
key_buffer=16M
sort_buffer=16M
read_buffer=8M
write_buffer=8M
[mysqlhotcopy]
interactive-timeout
il server ha 1 gb di ram dedicata e al momento il php memory limit è su 256 mb.
al momento ho un solo sito che fa tra 1000 e 2000 visite al giorno.
cosa ne dite del mio my.cnf?