8 Feb 22:04
8 Feb 04:51
8 Feb 04:46
7 Feb 22:25
decr on Int64.MaxValue fails with "CLIENT_ERROR cannot increment or decrement non-numeric value"
Sean <sean.y.yao <at> gmail.com>
2012-02-07 21:25:03 GMT
2012-02-07 21:25:03 GMT
Here's the repro on the largest unsigned 64-bit integer 18446744073709551615 with telnet on memcached 1.4.5 >set aad2ac07-2fd5-42bb-88b9-e7bae3b55f5b 0 200 20 18446744073709551615 STORED >get aad2ac07-2fd5-42bb-88b9-e7bae3b55f5b VALUE aad2ac07-2fd5-42bb-88b9-e7bae3b55f5b 0 20 18446744073709551615 END >decr aad2ac07-2fd5-42bb-88b9-e7bae3b55f5b 100 CLIENT_ERROR cannot increment or decrement non-numeric value Is this a known bug?
6 Feb 13:59
memcached failing
kevin wincott <emailme <at> kevinwincott.com>
2012-02-06 12:59:46 GMT
2012-02-06 12:59:46 GMT
hi we are using memcached 1.4.5_2 on 3 servers, each server has the same version of all software installed. on two servers memcached is working perfectly, however on the 3rd if doesnt work, it appears to not return any data, the sql connection is working fine and the code we are using is OK as it is shared via NFS to all 3 servers, here is a sample of when we try to use memcache: host# /usr/local/bin/memcached -vv -d -u nobody host# slab class 1: chunk size 80 perslab 13107 slab class 2: chunk size 104 perslab 10082 slab class 3: chunk size 136 perslab 7710 slab class 4: chunk size 176 perslab 5957 slab class 5: chunk size 224 perslab 4681 slab class 6: chunk size 280 perslab 3744 slab class 7: chunk size 352 perslab 2978 slab class 8: chunk size 440 perslab 2383 slab class 9: chunk size 552 perslab 1899 slab class 10: chunk size 696 perslab 1506 slab class 11: chunk size 872 perslab 1202 slab class 12: chunk size 1096 perslab 956 slab class 13: chunk size 1376 perslab 762 slab class 14: chunk size 1720 perslab 609 slab class 15: chunk size 2152 perslab 487 slab class 16: chunk size 2696 perslab 388 slab class 17: chunk size 3376 perslab 310 slab class 18: chunk size 4224 perslab 248 slab class 19: chunk size 5280 perslab 198 slab class 20: chunk size 6600 perslab 158(Continue reading)
6 Feb 10:31
Warning from spymemcached
Siddharth Jagtiani <jagtiani.siddharth <at> gmail.com>
2012-02-06 09:31:03 GMT
2012-02-06 09:31:03 GMT
Hi,
I am using spymemcached as client. I run memcached on ubuntu. ps -ef returns the following
"root 6669 14126 0 11:44 pts/2 00:00:00 /usr/bin/memcached -m 64 -U 11211 -p 11211 -u root -l localhost"
I keep getting this annoying message, and not much found after googleing around. Please help.
2012-02-06 14:06:14.106 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl <at> 1d439fe
2012-02-06 14:06:14.107 INFO net.spy.memcached.MemcachedConnection: Reconnecting due to failure to connect to {QA sa=0.0.0.0/0.0.0.0:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:313)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:199)
at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:1622)
Regards
Siddharth
3 Feb 16:47
[PATCH] Support -V (version option)
Dan McGee <dpmcgee <at> gmail.com>
2012-02-03 15:47:33 GMT
2012-02-03 15:47:33 GMT
This is a standard; was surprised memcached didn't support it already.
It is much quieter than looking for the current version in help output.
Signed-off-by: Dan McGee <dpmcgee <at> gmail.com>
---
All the recent 1.4.XX releases left me wondering what version I had
installed...and then I realized -V wasn't supported. So this is a patch for
1.4, but it isn't exactly a complex addition either.
memcached.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/memcached.c b/memcached.c
index b121e16..b28ab8b 100644
--- a/memcached.c
+++ b/memcached.c
@@ -4477,6 +4477,7 @@ static void usage(void) {
"-vvv extremely verbose (also print internal state transitions)\n"
"-h print this help and exit\n"
"-i print memcached and libevent license\n"
+ "-V print version and exit\n"
"-P <file> save PID in <file>, only used with -d option\n"
"-f <factor> chunk size growth factor (default: 1.25)\n"
"-n <bytes> minimum space allocated for key+value+flags (default: 48)\n");
@@ -4763,7 +4764,7 @@ int main (int argc, char **argv) {
"M" /* return error on memory exhausted */
"c:" /* max simultaneous connections */
"k" /* lock down all paged memory */
- "hi" /* help, licence info */
+ "hiV" /* help, licence info, version */
"r" /* maximize core file limit */
"v" /* verbose */
"d" /* daemon mode */
@@ -4815,6 +4816,9 @@ int main (int argc, char **argv) {
case 'i':
usage_license();
exit(EXIT_SUCCESS);
+ case 'V':
+ printf(PACKAGE " " VERSION "\n");
+ exit(EXIT_SUCCESS);
case 'k':
lock_memory = true;
break;
--
--
1.7.9
3 Feb 13:32
Memcached for Social Network Site (Correct Me)
Robert Hanson <me <at> roberthanson.net>
2012-02-03 12:32:52 GMT
2012-02-03 12:32:52 GMT
Hi,
I have a plan to do this scenario using PHP and Memcached on my Social Networking project, please correct me if I'm wrong :
just like any other social networking site out there, mostly users just 'read' database content, instead of 'writing' it. right?
so, I have a plan to 'read' EVERYTHING from the database once the user login (session created), such as : number of friends, birth date, today friend's post, etc then store it into Memcached server.
unless the user logged out or click 'yesterday friend's post', user won't read the database again but read all the data from Memcached.
maybe it will act like Gmail, user will see loading bar when they login into their account. but once they have it, everything runs faster.
is this possible thing to do with Memcached?
2 Feb 22:58
Seeking approval to use Memcached Logo on a poster with other logos
George Frank <george <at> georgefrank.net>
2012-02-02 21:58:53 GMT
2012-02-02 21:58:53 GMT
Hey dormando, I'm a developer at Chatham Financial, and we're big fans of memcached. I was wondering if my company can use the logo for a poster at recruiting events. The idea is that we want to showcase at a glance some of the software/ programs that we work with every day - hence displaying the logos instead just listing the of names. Memcached would be one of (hopefully) 22 other libraries/programs that we'd show the logo for. We will specifically note we have no involvement in the creation of any of the software or logos that we're using, and that using the logos is either okay by a license or written agreement. I'm posting from my personal gmail account, but if you need me to email from my company email account, then let me know (it's not hooked up to Google Groups). Thanks! George P.S. I figured this is the right place for this because a similar request is here: http://groups.google.com/group/memcached/browse_thread/thread/dec84296b504f38a/5fba25e16f0d4e2b?lnk=gst&q=logo#5fba25e16f0d4e2b
2 Feb 22:32
2 Feb 10:16
Best Architecture For DNS Round Robin + Memcached
Robert Hanson <me <at> roberthanson.net>
2012-02-02 09:16:12 GMT
2012-02-02 09:16:12 GMT
Dear all, I have a plan to start a new project with this scenario : 1 server for database 1 server for web 1 server for memcache In the future, if the traffic increase, I will add more servers as web server and also memcache. But many developers suggest me to use this scenario : 1 server for database 1 server for web + memcache 1 server for web + memcache Of course with this second scenario, everytime I buy a new server will be configured as web + memcache server. I don't mind at all, but the question is... If i'm using DNS round robin as load balancing method, then user A is handled by server 1, his PHP session also stored on that server 1, but on the second request he is handled by server 2, he won't get his session back, right? How to make this memcache server can 'comunicate' each other? So that user's session won't be broken. Thanks.
RSS Feed