« Archives in June, 2007

scp – Secure copy speed tuning

We regularly have to transfer files between servers at high speed and got this problem when a single server is slower than the rest and they reside in 2 DCs next to each other. All other servers got around 500KB/sec, this one only got 170KB/sec. With some research, it turns out that using different options of scp can improve speed drastically. The new speed we got is around 1.3MB – 1.7MB/sec for all servers with compression & using a blowfish as the encryption method.

Before: scp -C -c blowfish -P [port] SRC DEST
After: scp -C -c blowfish -P [port] SRC DEST

Apache 2 vs 2.2

Apache 2.2


    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all

Apache 2

Options FollowSymLinks
AllowOverride All

Apache 2.2 is very restrictive by default, which is good for security and production server but for development purpose and since it’s a new change, it took us hours to figure out why Apache failed and kept giving 403 together with other weirdness on a remote training session for our new developer.