You can use Membase to and configure either "memcached" type or "membase" type buckets. A membase-type bucket provides additional features such as key-value persistence and replication, whereas a memcached-type bucket provides only memory-only caching.
Memcached has it’s limitations. Moving to large+1 machines is going to lose a lot of your data. There is no master to organize the re-balancing of the data.We can avoid data loss using membase bucket type, while adding new server to the clusters.
Moxi
Moxi is the component of Membase that handles the re-routing of requests to other Membase servers when the server receiving the original request is not the one responsible for the data requested.You can install membase using the instructions here.
testing membase.
you can test it using telnet utility.
shell> telnet localhost 11211 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'or you can run a PHP script to check if membase is installed properly or not.
set test_key 0 0 1 a STOREDconnect("localhost",11211); // try 127.0.0.1 instead of localhost
// if it is not working
echo "Server's version: " . $memcache->getVersion() . "
\n";
// we will create an array which will be stored in membase serialized
$testArray = array('horse', 'dog', 'pig');
$tmp = serialize($testArray);
$memcache->add("key", $tmp);
echo "Data from the cache:
\n";
print_r(unserialize($memcache->get("key")));
?>
3 comments:
I don't understand. Your own tool to configure my system means??
Post a Comment