15 karma · joined January 16, 2009
But I'm hearing sputtering, myself. Are you guys going to carry this to a production-capable system?
Ephemeral disks offer more predictable performance, especially on the largest instances, however they will not provide the random iops of a raid set of EBS volumes.
Vacuums use sequential IO, so it makes sense that you max out pretty quickly.
The only problem is that it started reporting S.M.A.R.T. errors.
#!/bin/sh
AWS_ACCESS_KEY_ID=<>
AWS_SECRET_ACCESS_KEY=<>
BUCKET=<>
DIR=<>
S3SYNC=/usr/bin/s3sync.rb
DAYS_TO_KEEP_BACKUPS=30
# colons in path confuse s3sync
DATE=$(date +%F_%H-%M-%S)
NEWEST=$(/bin/ls -r $DIR | grep -v current | head -1)
# copy the newest copy of files into a new directory, creating hardlinks instead of duplicate files
cp -al $DIR/$NEWEST/ $DIR/$DATE/
# sync the s3 bucket against the new directory
$S3SYNC --recursive --make-dirs --delete --no-md5 -v $BUCKET: $DIR/$DATE/ 2>&1 | grep -v 'Could not change owner'
# update the "current" symlink link
test -e $DIR/current && rm $DIR/current
ln -sf $DIR/$DATE $DIR/current
# remove snapshots older than DAYS_TO_KEEP_BACKUPS days
find $DIR -maxdepth 1 -type d -mtime +$DAYS_TO_KEEP_BACKUPS -print0 | xargs -0 --no-run-if-empty rm -rv
http://krugman.blogs.nytimes.com/2009/06/17/and-i-was-on-the...
My question raised the point that the server would not be able to tell the difference, after an interruption, between session state that the client will hope to resume and session state that should be discarded. That state would accumulate until some routine cleared it out.
One question is when does sshd know when to ditch interrupted sessions.