Month: December 2011

  • Autossh init.d script

    In this init.d script for autossh in CentOS, I use puppet to replace the param “pAutoSSHParams”, which could be something like this: “-M 0 -f -N -L 3307:127.0.0.1:3306 -p 22 user@host” File: /etc/init.d/autossh Run: service autossh start/stop #!/bin/sh # # autossh – Startup script for autossh # chkconfig: 2345 20 80 # description: Maintain a…

  • SSH Tunneling with restricted/limited shell

    If you want to connect to rsync/mysql or other service via localhost through SSH tunneling, you need the tunnel to stay open. There are rssh and other limited shells. But you can write your own. In this case, it opens for 10 seconds then closes. It does not close if there are activities (rsync takes…

  • Steadfast Cloud

    These are some benchmarks run with UnixBench 5.1.3 on Steadfast Cloud powered by OnApp. The ability for scaling up/down RAM and CPU without reboot is neat and very useful. Disk resizing need reboot but this can be avoided by the app. The OnApp API is very simple and easy to use as well. I tried…

  • RackSpace cloud resizing (Scaling) steps

    Step 1: Resize request is queued The resize request will be processed as resources permit. The queued period is usually quick, but can vary depending on other host machine activities. Step 2: Initial preparation of new server This is the longest part of the upgrade, during this step the original server remains up and running.…