15 karma · joined Jan 16, 2009 (17y ago) · 15 submissions
comment 16y ago · link · parent
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.
comment 16y ago · link · parent
Vacuums use sequential IO, so it makes sense that you max out pretty quickly.
comment 17y ago · link · parent
The only problem is that it started reporting S.M.A.R.T. errors.
comment 17y ago · link · parent
#!/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
comment 17y ago · link · parent
http://krugman.blogs.nytimes.com/2009/06/17/and-i-was-on-the...
comment 17y ago · link · parent
comment 17y ago · link · parent
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.
comment 17y ago · link · parent
One question is when does sshd know when to ditch interrupted sessions.