I'm running Django-powered site on EC2 m1.medium instance (3.75 Gb memory, 2 EC2 Compute Unit, 410 Gb instance storage, moderate performance) with Ubuntu 12.04 LTS. MySQL settings on my EC2 instance are the following (from /etc/mysql/my.cnf):
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
query_cache_limit = 1M
query_cache_size = 16M
The mod_wsgi settings from /etc/apache2/sites-available/mysite.com:
WSGIDaemonProcess mysite.com user=me group=me processes=7 threads=20 maximum-requests=1000000
Given my configuration, what is the maximum number of processes/threads/requests I can set? I tried some values, but they led to MySQL crashing. Is it ok to set MySQL key_buffer to 0.75Gb (20% of the 3.75Gb RAM on the EC2 instance)? Thanks in advance!