I have purchased a VPS with 2.43GHz CPU, 2GB RAM, 80GB Disk Space with a band width of 1500 GB per month. MySQL version is version: 5.1.70-cll.
I want to know whether my current MySQL parameters good enough for my website. I have developed an online marketplace for translators and their clients. Translators and clients create their profiles on website. Clients post translation jobs and translators bid on these jobs. Recently, while creating demo profiles for testing, some of MySQL tables got crashed which I got repaired from my hosting company. My hosting company also has asked me to optimize the MySQL parameters to avoid table crash.
current my.cnf file
[mysqld]
Port = *port number
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer_size = 384M
max_allowed_packet = 1M
table_open_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
1. Please suggest what parameters should I change/add to my.cnf file
2. Will it be enough to avoid table crash in future?
I want to know whether my current MySQL parameters good enough for my website. I have developed an online marketplace for translators and their clients. Translators and clients create their profiles on website. Clients post translation jobs and translators bid on these jobs. Recently, while creating demo profiles for testing, some of MySQL tables got crashed which I got repaired from my hosting company. My hosting company also has asked me to optimize the MySQL parameters to avoid table crash.
current my.cnf file
[mysqld]
Port = *port number
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer_size = 384M
max_allowed_packet = 1M
table_open_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
1. Please suggest what parameters should I change/add to my.cnf file
2. Will it be enough to avoid table crash in future?