Re: rbssh *really* slow
Hi, Just an FYI, we don't support this configuration in any way. For a variety of reasons, Review Board expects to use our rbssh, and not OpenSSH. If things are unusually slow, that's worth investigating (I'd need to see logs), but if anyone wants to go this route, just don't be surprised if other problems manifest. Christian -- Christian Hammond - chip...@chipx86.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Wed, Oct 14, 2015 at 9:37 AM, wrote: > Replace the contents of /usr/bin/rbssh with the following: > > > #!/bin/sh > EXTRA_OPTS="-o UserKnownHostsFile=$HOME/.ssh/known_hosts -o ForwardX11=no > -o LogLevel=ERROR" > # see https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing > EXTRA_OPTS="-o ControlPath=/tmp/master-%r@%h:%p -o ControlMaster=auto -o > ControlPersist=10m $EXTRA_OPTS" > for k in $HOME/.ssh/id_{dsa,rsa} ; do > test -e "$k" && EXTRA_OPTS="$EXTRA_OPTS -i $k" > done > exec /usr/bin/ssh $EXTRA_OPTS "$@" > > > Using native ssh was about 5x faster than the default Python rbssh > implementation. Moreover, using the connection multiplexing feature of ssh > further sped up things another 5x or so. > > -- > Supercharge your Review Board with Power Pack: > https://www.reviewboard.org/powerpack/ > Want us to host Review Board for you? Check out RBCommons: > https://rbcommons.com/ > Happy user? Let us know! https://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "reviewboard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to reviewboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: rbssh *really* slow
Replace the contents of /usr/bin/rbssh with the following: #!/bin/sh EXTRA_OPTS="-o UserKnownHostsFile=$HOME/.ssh/known_hosts -o ForwardX11=no -o LogLevel=ERROR" # see https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing EXTRA_OPTS="-o ControlPath=/tmp/master-%r@%h:%p -o ControlMaster=auto -o ControlPersist=10m $EXTRA_OPTS" for k in $HOME/.ssh/id_{dsa,rsa} ; do test -e "$k" && EXTRA_OPTS="$EXTRA_OPTS -i $k" done exec /usr/bin/ssh $EXTRA_OPTS "$@" Using native ssh was about 5x faster than the default Python rbssh implementation. Moreover, using the connection multiplexing feature of ssh further sped up things another 5x or so. -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
rbssh *really* slow
I had set up a ReviewBoard server with a subversion deployment via svnserve and ssh. They are both on the same server. Everything is working OK, minus the fact that is running incredibly slow. The VPS I'm running on is a cheap one, so I don't have big expectations from it, but I encountered something strange. Being on the server, I narrowed down where exactly it was slow. Everytime rbssh is invoked, the operation gets slow. So I tried the following: ssh reviewboard@127.0.0.1 (runs under a second) rbssh reviewboard@127.0.0.1 (runs in about 30s) Looking at the stacktrace of rbssh, it appears that is stuck waiting for the connection in the paramiko library. So it might be a paramiko problem, rather than a rbssh problem, but I am just wondering if anyone has any ideas why could it go so slow. The authentification is made with keys. Thank you for this great product, Alex -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en