Max smart server connections?

Andrew Bennetts andrew.bennetts at canonical.com
Fri Apr 3 00:49:19 BST 2009


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.




More information about the bazaar mailing list