Re: Slow unless on loopback

61 views
Skip to first unread message

Sebastian Lagemann

unread,
Dec 17, 2012, 5:52:04 PM12/17/12
to beansta...@googlegroups.com
Hi,

we made the same experience but it was related to the network latency, we have always 2 round-trips (send reserve, receive response, send delete, receive response). We also use beanstalkd thru wans connected via vpn between europe, usa and asia (latency up to 200ms one way).
So we were required to build our own library which is able to have hundreds of connection (non-blocking) per worker thread, beanstalkd works fine with the amount of connections if you don't forget to increase your number of max. open files. If you want we could share our php library for handling jobs in this way…

Best,

Sebastian
   
Am 17.12.2012 um 17:53 schrieb hagen....@madvertise.com:

Hi all,

I got a very strange behavior, I can't explain:

- Connecting over ethernet is about 10x slower than over loopback
- It can't be bandwidth related, as 10 parallel ethernet connections get about the performance of one loopback connection
- Verified with various machines and client languages

Anybody got an idea what this can be?

Thanks so much,
Hagen

--
You received this message because you are subscribed to the Google Groups "beanstalk-talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/beanstalk-talk/-/4z5evpk4ZtAJ.
To post to this group, send email to beansta...@googlegroups.com.
To unsubscribe from this group, send email to beanstalk-tal...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beanstalk-talk?hl=en.

hagen....@madvertise.com

unread,
Dec 18, 2012, 11:49:39 AM12/18/12
to beansta...@googlegroups.com
Hi,
 
we made the same experience but it was related to the network latency, we have always 2 round-trips (send reserve, receive response, send delete, receive response).

yes, you are absolutely right. Network latency can explain the slowness.

If you want we could share our php library for handling jobs in this way…

Thanks, but we don't use php. Fortunately, I was able fix the problem once I understood the problem :)


Cheers,
Hagen
Reply all
Reply to author
Forward
0 new messages