Max smart server connections?

Maritza Mendez martitzam at gmail.com
Fri Apr 3 02:02:11 BST 2009


Thanks Andrew and thanks Robert!

I was hoping for this.  Branch locks are obviously necessary (thankfully!)
and the fact that the smart server spawn threads means it will work for us.
We are stuck using Windows (coding for dollars) so inetd is not an option
for us.  We have it running as a Windows service and will do a little stress
testing.  If we get any spectacularly interesting results I will share
them.  I expect bzr will "just work" as usual, which is what we love about
it.

Martitza


On Thu, Apr 2, 2009 at 4:49 PM, Andrew Bennetts <
andrew.bennetts at canonical.com> wrote:

> Maritza Mendez wrote:
> >    Hi.
> >
> >    This may be a dumb question.  If the answer is in the user guide I
> missed
> >    it.
> >
> >    I already figured out how to run "bzr serve" as a Windows service
> >    listening on the default port.  My question is how many simultaneous
> >    connections can the smart server handle?  If four or five users are
> making
> >    requests simultaneously, what happens?
>
> Short answer: I'd expect four or five simultaneous connections to work just
> fine.
>
> Longer answer:
>
> “bzr serve” itself doesn't have a builtin limit.  It will spawn a thread
> for
> each connection.
>
> So the limits you're likely to hit are:
>
>  * Operating system limits on maximum number of open files or sockets
>  * CPU-limit; Python can't really utilise more than 1 CPU at a time
>    generally (and "bzr serve" doesn't try to workaround that in any way).
>  * Network capacity, bzr 1.13 at least is fairly good at delivering data as
>    fast as your network can handle, at least some of the time :)
>  * Branch locks; only one person can push to particular a branch at a time.
>
> -Andrew.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20090402/d896a4c4/attachment-0001.htm 


More information about the bazaar mailing list