Does anyone know what this really means? (from MySQL docs)
You can determine whether your table cache is too small by checking the mysqld status variable Opened_tables, which indicates the number of table-opening operations since the server started:
mysql> SHOW GLOBAL STATUS LIKE 'Opened_tables'; + | Variable_name | Value | +-| Opened_tables | 2741 |
If the value is very large or increases rapidly, even when you have not issued many
FLUSH TABLES
statements, increase the table cache size.
What does 'very large' mean? What does 'too rapidly' mean?
In my case I have open_table_cache
set to 10,240 and table_open_cache_instances
set to 16. Anytime I query opened_tables
it is higher than the last time. Just now it read 122,261.
My DB has 2600 tables and maybe 300 connections regularly. Any thoughts on how I might know what open_table_cache
should be?