June 18, 2013

Post: MySQL 5.6 - InnoDB Memcached Plugin as a caching layer

cache can be invaluable. Enter MySQL 5.6 with the memcached plugin… As part of the standard MySQL 5.6 GA distribution… Box with http/php, 1 box with memcache or mysql started PHP script Zend framework libmemcached PECL module Zend_Cache_Backend_Libmemcached Here….51′, ‘port’ => 11211, ‘weight’ => 1, ) ), ‘client’ => array( ‘compression’ => true, ), ); $cache = Zend_Cache::factory(‘Core’, ‘Libmemcached’, $frontendOpts, $memcacheOpts); $timer->start(); for ($i = 0…

Post: Cache Performance Comparison

… may be performance bottleneck, assuming PHP opcode cache is not used. Also different applications may have different cache hit ratios which also needs… Memcache – distributed caching, support of time to live (so you do not get cache invalidated with each update) and ability to cache composed objects…

Comment: APC or Memcached

… is a very simple Distributed Hash Table (http://en.wikipedia.org/wiki/Distributed_hash_table). One could write a PHP class that takes care of this, and inserts/requests cache entries from… use APC both for local caching, and distributed caching. The same method applies to file based or database based caching. For illustration see http…

Post: Content delivery system design mistakes

…systems. Note this list applies to static content distribution, dynamic content has some of its own issues…be enforced. Serving file by simply reading from PHP or any other heavy programming language and …with their urls. Server side caching The benefit of server side caching is not so obvious for …

Post: Shard-Query EC2 images available

… should be an even data distribution in the system. To get an even distribution, the test data was…20 shards (adjust to your number of nodes) php genconfig 20 > shards.ini Running the test …TRANS_TABLES symbolic-links table-definition-cache=16384 table-open-cache=128 thread-cache-size=32 thread-stack=…

Post: Heikki Tuuri answers to Innodb questions, Part II

… found and fixed: http://bugs.mysql.com/bug.php?id=29560 Concerning a switch to Oracle’s …fits” or “does not fit”. Depending on data access distribution gains will be different ranging from no gains …, when a battery-backed disk controller write-back cache does the same thing. PZ: First Indeed writes …

Comment: APC or Memcached

Cache (Eaccelerator and other similar caches) is Fast but it is not distributed so you’re wasting cache and reducing possible hit rate by caching things locally if you have many web servers. MemcacheD is relatively slow but distributed… you need only one access to bring item into the cache, not access for each of web servers. (tags: apc cache php) [...]

Post: Top 5 Wishes for MySQL

…projects such as PostgreSQL (plugable indexes etc), Apache, PHP or Linux Kernel. Yes in MySQL 5….requiring complex application programming to do efficiently in distributed manner. Of course there are summary tables and…in MySQL 4.1 which came without query cache support but even worse not all of …

Comment: Alternatives of PHP ?

… MapReduce (http://en.wikipedia.org/wiki/MapReduce) – distribute the processing. The livejournal guys have something… check out http://cpan.uwinnipeg.ca/htdocs/Cache-FastMmap/Cache/FastMmap.html for example One advantage of… to solve this kind of problem (unlike PHP). Browse CPAN – Perl’s XML tools a …

Comment: Cache Performance Comparison

php api for it are available. Second – I do not think it makes much sense. Memcached should be used for _distributed_ memory caching. If you’re running it on localhost you’re using wrong solution. Correctly implemented shared memory cache will be…