Repository navigation
Run mq.sh command over SSH to reduce connections - #36
midnightveil wants to merge 1 commit into
Conversation
|
For me this makes |
|
Overall I think this is a good idea, but I'm unsure how this behaves with Maybe it's just |
|
Ctrl+C .... should pass through to I could explicitly blocklist |
|
Right, it only does it with |
Previously every remote command e.g. `mq.sh sem dumpall` would SSH to tftp.keg.cse.unsw.edu.au multiple times. Even with ControlMastering, this still needs to open lots of login shells, which for us tends to be very slow. Instead, if we re-run the entire mq.sh command on the remote host, then we only need to SSH once. We don't do this for run, however, because it needs to copy files back and forth. It could definitely be done, however, it is more effort to do so. Hopefully, this would reduce the load on our servers and make 'run' less intensive. Signed-off-by: Julia Vassiliki <julia.vassiliki@unsw.edu.au>
f1f5714 to
e3b670b
Compare
I thought it took so long because I'm on the other side of the world... |
|
Every single board it prints require 3 or 4 new ssh connections. Or, more accurately, since ControlMaster is set up, 3 or 4 new logins in linux (try emulating this with the login command). For some reason this is especially slow when the server is under high load (where load = lots of these at once). I thought this was the wtmpdb ("w" tmp database) command because it did a bunch of sqlite3 db lock acquires (spin lick with exponential back off) but apparently that's disabled now |
Indanz
left a comment
There was a problem hiding this comment.
One thing to be aware of is that the remote mq.sh script can be different than the local one, so this behaviour is not always wanted. So I think we may need an option to disable this for such cases or something.
Alternative is to send over the script + any input files via scp before execution or something. We can pipe one file as input, but no more.
Previously every remote command e.g.
mq.sh sem dumpallwould SSH to tftp.keg.cse.unsw.edu.au multiple times. Even with ControlMastering, this still needs to open lots of login shells, which for us tends to be very slow. Instead, if we re-run the entire mq.sh command on the remote host, then we only need to SSH once.We don't do this for run, however, because it needs to copy files back and forth. It could definitely be done, however, it is more effort to do so. Hopefully, this would reduce the load on our servers and make 'run' less intensive.