Memcache connection errors
Reinis Rozitis
roze at roze.lv
Thu May 25 11:56:52 UTC 2006
--------- Original message --------
From: "timeless"
> Reinis Rozitis wrote:
>> $mc = new Memcache;
>> if (!$mc->connect('127.0.0.1',11212)) {
>> $mc->connect('127.0.0.1',11212); }
> In this case, if the memcached on 127.0.0.1
> never answers, you'll wait 2
> seconds before failing to get the connection?
Actually in our case there is no timeout and no waiting, error is returned
immideatly / instant also the reconect according to php profillers (xdebug)
timing costs only just 0.00(x) ms.
Besides we are running 4 MC servers now (with the PECL php extension which
distributes the items + one dedicated server just for sessions) without any
downtime for more like a month (before the planned shutdown they had like 6
month uptime).
I dont see it as a major problem (cause the simple workaround fixes it) just
wanted to confirm that such issue with the "Unknown error" exists.
Some stats:
[uptime] => 3697543
[version] => 1.1.12
[rusage_user] => 95559.331773
[rusage_system] => 575466.670768
[curr_items] => 2828565
[total_items] => 2930103764
[bytes] => 1065419095
[curr_connections] => 481
[total_connections] => 2954818760
[connection_structures] => 2055
[cmd_get] => 2954817360
[cmd_set] => 2930103764
[get_hits] => 2894869383
[get_misses] => 59947977
[bytes_read] => 2728421626006
[bytes_written] => 2632352411284
[limit_maxbytes] => 1572864000
[uptime] => 3697543
[version] => 1.1.12
[rusage_user] => 195204.272439
[rusage_system] => 1022449.712017
[curr_items] => 3147943
[total_items] => 896965929
[bytes] => 1053651279
[curr_connections] => 738
[total_connections] => 2946617195
[connection_structures] => 2294
[cmd_get] => 3988923795
[cmd_set] => 896950040
[get_hits] => 1528284589
[get_misses] => 2460639206
[bytes_read] => 837311245049
[bytes_written] => 12725753165414
[limit_maxbytes] => 1572864000
[uptime] => 3697543
[version] => 1.1.12
[rusage_user] => 189352.384062
[rusage_system] => 942114.396841
[curr_items] => 3146335
[total_items] => 887728152
[bytes] => 1054061097
[curr_connections] => 560
[total_connections] => 1821931315
[connection_structures] => 1922
[cmd_get] => 119156675
[cmd_set] => 887721867
[get_hits] => 2683528267
[get_misses] => 1730595704
[bytes_read] => 572630278769
[bytes_written] => 10638954526690
[limit_maxbytes] => 1572864000
[uptime] => 3697543
[version] => 1.1.12
[rusage_user] => 195584.105696
[rusage_system] => 998519.039032
[curr_items] => 3142759
[total_items] => 893420455
[bytes] => 1053730982
[curr_connections] => 567
[total_connections] => 1822096275
[connection_structures] => 1986
[cmd_get] => 536014724
[cmd_set] => 893397264
[get_hits] => 2141014075
[get_misses] => 2689967945
[bytes_read] => 631001605389
[bytes_written] => 16314167088451
[limit_maxbytes] => 1572864000
More information about the memcached
mailing list