[Basic] Question about how membase work
Hi there, i'm very new to membase server.
I've just created a cluster with 4 notes, 3 replication.
The cluster has 2 buckets (one membase, one memcached).
Let's say we have server1, server2, server3, server4 (all are IP addresses).
I try to test using telnet. When i set a key value from server1, i can get it from server2. So the replication works fine.
[b]I just don't understand why after a few "get" comm, i then receive nothing, just like the key is remove from memory. How can i store it longer in the memory?[/b]
Thanks for the quick reply.
I might pass that configuration when i set up. And i just took a look at the installation one more time, still didn't find it. Can you point it out for me where to set to expiration time, and how to config - i mean change - the default port using - like 8091, 11211, ... I'm using Windows server
Don't be mad. I'm definitely new. And i'm not so good with English, too.
Thanks again !!
Hi,
Your english is certainly better than any of my 2nd languages.
An expiration time is set as part of the mutation request parameters (SET, APPEND, PREPEND, ADD, REPLACE), usually as an optional parameter. For example, with the PHP language its Memcache client library...
http://php.net/manual/en/memcache.set.php
Sometimes, we've seen folks accidentally reverse the flags and expiration parameters in their usage.
Changing the default port numbers is usually not recommended, but you can by using a command-line pathway. If you have the "curl.exe" utility installed, here's an example...
curl -u Administrator:MyWebConsolePassword -i -d port=8080 -d username=Administrator -d password=MyWebConsolePassword http://localhost:8081/settings/web
The default bucket port number, 11211, can be changed by using the web administration console to delete the default bucket and re-creating it. But, please use a different port number when recreating it.
By the way, what version of Membase are you using?
Thanks!
Steve
Hi steve, thank you for the reply.
Actually i've done some research-reading things after the last post. Obviously there are still many things that i have to learn about membase system. So i'm gonna stick around the forum for a little while.
I'm using 1.6 version bcoz we still use win server 2k3 atm, and 1.7 seems not work on that OS (I've tried before).
Thank you again, guess i'll see you again when i have problems using Membase :).
Hi,
Are you setting an expiration time during your set? If so, then the the data will logically disappear after the expiration time.
Also, if your client (like telnet) is connected to the proxy port, 11211, then you should be able to get the data no matter what server you're connected to, even with no replication. The proxy, called moxi, that's listening on port 11211 on every server is proxying your request to the right server for you.
Cheers,
Steve