Membase can basically replace memcached if you want to persist all of
your data to disk. Someone else will need to answer your question
about "lazy writes" because as far as I know it only waits a very
small amount of time before flushing to disk ( < 1/2 a second?)
Secondly, you don't need to do anything to refill your cache in the
case of a crash, membase does that automatically at startup.
--chad
Hi Chad and others!
Thanks for the reply!
I have been following the tutorial: http://sujee.net/tech/articles/membase-tutorial-1/ which talks about using spymemcached (v 2.5) with java inorder to write data to disk using Membase.
I set up membase and followed the tutorial.
MemcachedClient cache = new MemcachedClient(new InetSocketAddress(server, port));
where server = localhost and port = 11211.
Thanks,
Matthew
Perry Krug
Solutions Architect
direct: 831-824-4123
email: pe...@couchbase.com
1) After restart, I tried reading a certain chunk of data again and again. I was expecting the RAM associated with the Membase bucket to store this data chunk the first time I read it from the disk. But this did not happen. I had to hit the disk everytime I wanted to read the same the data set. Why is this happening? Has this got something to do with the RAM/Caching semantics within Membase?
2) As I mentioned earlier I was using a JAVA api (spymemcachedclient) for connecting to Membase bucket:MemcachedClient cache = new MemcachedClient(new InetSocketAddress(server, port));
where server = localhost and port = 11211.But when I gave a "cache.flush" it deleted all the pointers to the data residing on the disk too. That means I was not able to access any data after that (persistent or not). Is this behavior expected?
3) I understand that its the port number and the ip address that is used to configure the membase/memcached bucket in the Membase server GUI. Now if I wanted to intergrate a memcached bucket also into my dataflow how would I do that? I understand that I will need to provide a separate port number for the memcached bucket. And then, while initializing a MemcachedClient instance I can only provide a single port number (the membase or memcached one). How can I ensure that both the buckets come in the flow (data to memcached first and then to membase (persistence)) .