python redis client hangs?

884 views
Skip to first unread message

krish

unread,
Jun 23, 2010, 2:51:15 PM6/23/10
to Redis DB
I use Redis with Pylons application with Paster server. I have been
using latest python redis client from pypi.
I have created single redis client connection through my web server to
the redis db.
When I use the apache's ab tool with concurrent requests, redis python
client seems to fails I could not get any log error or exception. My
web server simply stopped responding to my client queries.

Then I tried connecting to redis using redis-cli interface and it
works well.

Is there any recommended model for using python redis client? I can
easily reproduce the issue here.

Andy McCurdy

unread,
Jun 23, 2010, 2:57:09 PM6/23/10
to redi...@googlegroups.com
Try using the newest version from Git: http://github.com/andymccurdy/redis-py/

The pypi release is pretty old. I'll be pushing a new version up soon.


--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.


Konstantin Merenkov

unread,
Jun 23, 2010, 2:57:27 PM6/23/10
to redi...@googlegroups.com
On Wed, Jun 23, 2010 at 10:51 PM, krish <karik...@gmail.com> wrote:
> I use Redis with Pylons application with Paster server. I have been
> using latest python redis client from pypi.
Do not use redis-py from pypi. Github is the way to go.

> I have created single redis client connection through my web server to
> the redis db.
> When I use the apache's ab tool with concurrent requests, redis python
> client seems to fails I could not get any log error or exception. My
> web server simply stopped responding to my client queries.
>
> Then I tried connecting to redis using redis-cli interface and it
> works well.
>
> Is there any recommended model for using python redis client? I can
> easily reproduce the issue here.
>

> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>

--
Best Regards,
Konstantin Merenkov

krish

unread,
Jun 23, 2010, 3:16:23 PM6/23/10
to Redis DB
Thanks a lot. It works.




On Jun 23, 11:57 pm, Konstantin Merenkov <kmeren...@gmail.com> wrote:
> On Wed, Jun 23, 2010 at 10:51 PM, krish <karikris...@gmail.com> wrote:
> > I use Redis with Pylons application with Paster server. I have been
> > using latest python redis client from pypi.
>
> Do not use redis-py from pypi. Github is the way to go.
>
>
>
> > I have created single redis client connection through my web server to
> > the redis db.
> > When I use the apache's ab tool with concurrent requests, redis python
> > client seems to fails I could not get any log error or exception. My
> > web server simply stopped responding to my client queries.
>
> > Then I tried connecting to redis using redis-cli interface and it
> > works well.
>
> > Is there any recommended model for using python redis client? I can
> > easily reproduce the issue here.
>
> > --
> > You received this message because you are subscribed to the Google Groups "Redis DB" group.
> > To post to this group, send email to redi...@googlegroups.com.
> > To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/redis-db?hl=en.
Reply all
Reply to author
Forward
0 new messages