publish extension
| From: | guo xinhua | Date: | Thu, 15 Jan 2015 02:18:53 +0000 |
| Subject: | publish extension | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-12525@lists.php.net to get a copy of this message | ||
I have writen a php extension and i want publish to pecl.
The extension start a proxy process and hold some pdo and redis connections,
It provide local connect pool like java.
Technical characteristics:
- After each time fetchAll (set/get) call release() method, release
the connection to the pool, avoid that the script jammed causing
connection occupy high.
- The maximum and minimum number of connections configuration support.
- Support small pressure automatic recovery connection.
- Support graceful restart (reload).
- Do a lot of optimization, although the request through the
connection pool process forward, but no loss of QPS.
- When the connection use out,support queue.
- Simple! just change the new method and add release function (see
demon),you used the tcp pool.
- The connection proxy will start the ping process to monitor down
list, if available will reflect to the return value of the
get_disable_list(), use this function you can do some fun things,like
LB.
The code on git:
github.com/swoole/php-cp
I am Gray,25 years old,live in china , my chinese name is xinhua.guo,
i work on jumei.
btw:I have translate the conf,demon.php and readme.