June 19, 2013

Post: Modeling MySQL Capacity by Measuring Resource Consumptions

…has will place a limit on amount of queries system can ran, for example if we have query which requires 1…#14 and #15 here is kernel and user CPU usage of MySQL process in 1/100 of the second. (This… increasing amount of memory not only helps you to reduce wait time and number of IOs per query as well…

Post: MySQL caching methods and tips

… results, then place them into the cache. Additionally, memory pressure may cause unexpected invalidation of items, once…Use what you need Both Memcached and the MySQL query cache are limited in size. If you try to cache… it, then do so. This avoids the CPU usage on your web server to create the block…

Post: 10+ Ways to Crash or Overload MySQL

… is to get enough memory allocated to get to address space limit and MySQL will crash when one of internal memory allocations would unexpectedly… connection variables for unprivileged user which allows to run queries with uncontrolled resource usage. Host Block You can have given client host…

Post: SHOW INNODB STATUS walk through

…, locked 0 MySQL thread id 8079, query id 728899 localhost root Sending data select sql_calc_found_rows * from b limit 5 Trx… and memory usage. You can see total memory allocated by Innodb (sometimes it is higher than you anticipated), amount of memory allocated in additional memory

Post: Predicting Performance improvements from memory increase

… to see limited gains – if your working set already fits in 16GB you may not see any significant gains upgrading memory to 32GB. Interesting enough similar can happen for very large working set – for example if your main queries do… CPU usage ? This is the true challenge becomes because MySQL has no tools to analyze working set (we have per query working set…

Comment: Database problems in MySQL/PHP Applications

mysql.sock #tmpdir =/mysql_tmp/ # Here follows entries for some specific programs # The MySQL server [mysqld] port = 3306 socket = /tmp/mysql…-files-limit=20000 table_cache = 3072 open_files_limitquery-time=5 log-slow-queries=/apps/log/slow-query…RAM but beware of setting memory usage too high innodb_…

Post: 3 ways MySQL uses indexes

… come from missing one very important MySQL limitation – once MySQL runs into the interval range …MySQL uses single index – there are more complex rules of how indexes will be used if you look at multiple indexes usage…help to speed up queries even if data is in memory. If MySQL is only reading …

Post: Is disk Everything for MySQL Performance ?

… example we’re limited by space and how much data we can comfortably put in MySQL Instance without… hours reporting query or 5 hours ALTER TABLE command. Let me also comment on the memory fit diagram – … want your runaway logs or extreme temporary space usage to stop the database, but they usually can…

Comment: Choosing innodb_buffer_pool_size

Mysql server is …usage through buffering or caching? innodb_buffer_pool_size is set to default value. (8mb) I have Innodb, MyIsam and MemoryQUERY CACHE Query cache is enabled Current query_cache_size = 256 M Current query_cache_used = 19 M Current query_cache_limit = 1 M Current Query cache Memory

Post: State of MySQL Market and will Replication live ?

…cross shard queries become a pain. Dealing with lag in MySQLMySQL Cluster, Continuent, Master-Master Replication, DRBD or SAN based HA architectures all have their limits…can see Violin Memory appliance which can be used with MySQL to … Reduce. Indeed I think MySQL Replication usage will reduce, but …