php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60592 timeoutms property of addServer() not merget into version 3.x branch
Submitted: 2011-12-22 07:55 UTC Modified: 2011-12-22 10:24 UTC
From: nik at mt1 dot down-to-details dot com Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nik at mt1 dot down-to-details dot com
New email:
PHP Version: OS:

 

 [2011-12-22 07:55 UTC] nik at mt1 dot down-to-details dot com
Description:
------------
Since memcache is quite fast the timeout default timeout of 1 sec is just too long 
for big website with a lot of requests. What happens is that all requests will 
timeout for at least 1 sec which blocks the Apache process (potentially, all 
processes). Additionally, Apache childs are created and old killed to get rid of 
memory leaks. 

The timeoutms value mitigates a bit the problem but not completely. Also it's not 
present in the 3.x branch which is more High Availability oriented (with the 
redundancy options). 

I would like to suggest that this functionality is merged into v3 branch and also 
extended to cover the initial connect. This means quicker fail-over.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-22 08:04 UTC] nik at mt1 dot down-to-details dot com
There is a patch listed here 
http://www.lmpx.com/nav/article.php/news.php.net/php.pecl.cvs/11671/read/index.htm
l

This patch also adds connect_timeoutms for the initial connect. 

If this can be merget in 3x branch will be great.
 [2011-12-22 10:24 UTC] nik at mt1 dot down-to-details dot com
-Status: Open +Status: Closed
 [2011-12-22 10:24 UTC] nik at mt1 dot down-to-details dot com
Ok, it seems that there is decrepancy in php documentation. There is workaround 
described here: http://freebsd.down-to-details.com/sys-admin/memcache-redundancy-
and-high-availability/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 16:01:30 2024 UTC