News for hackers. Stuff that matters.

Hold off on AWS Aurora and Postgres until further notice

We've had a sudden crash of the underlying storage (apparently) on one of our production workloads - and because the crash is in the underlying storage the MultiAZ setting makes no difference. Neither the primary nor the replica work.

The point in time restore can't complete a restore to the last available point, so this looks like data loss to me. Points a earlier in time work fine, so might be an issue with a recent patch or failure.

I'm currently in conversation with support, will update when I have more information.

( 22 comments | 67 points | on HN )
Re:Hold off on AWS Aurora and Postgres until further notice by acranox on Friday December 29, 2017 @02:06PM (#16031230)
The cloud is not immune from failure. Moving to the cloud just moves the line of responsibility for who manages a service, but it does not remove the risks.

Hardware and software fail. Amazon does a better job mitigating the damage from failures than me, but their still still fails.

I'm sorry for your data loss. I hope the recovery isn't too painful. Live and learn.

Re:Hold off on AWS Aurora and Postgres until further notice by deckarep on Friday December 29, 2017 @02:27PM (#16031368)
That’s a tough situation to be in. Hopefully Amazon is working on a solution for you.

Cloud is definitely not bullet-proof and risks are always there. I think it generally still wins however because as Cloud solutions get better, with better SLAs...companies can get better at what they specialize and offer.

At least that is the goal and how I understand it.

Re:Hold off on AWS Aurora and Postgres until further notice by kurttheviking on Friday December 29, 2017 @02:20PM (#16031328)
We've been using Postgres on RDS for years and were considering moving to Aurora. I am very curious to know more about the fix and planned remedy.
Re:Hold off on AWS Aurora and Postgres until further notice by sudhirj on Friday December 29, 2017 @02:24PM (#16031355)
Current suspects are GIN index problems, but nothing confirmed yet.
Re:Hold off on AWS Aurora and Postgres until further notice by petergeoghegan on Sunday December 31, 2017 @09:36AM (#16040697)
Per my remarks here, I think that there is an obscure bug in GIN vacuuming that the community has yet to identify:

https://postgr.es/m/CAH2-Wz=GTnAPzEEZqYELOv3h1Fxpo5xhMrBP6aM...

It's possible that this upstream PostgreSQL issue affected you. What is known for sure is that there was a bugfix for GIN, that just missed the latest round of point releases. See:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit...

This fix alone could have made all the difference here (though this is a guess). I assume you won't have this fix with Aurora just yet (not sure -- I don't work for Amazon). But, I'd mention this to AWS support if it seems at all relevant. Hopefully they'll get in touch with the community if that's what it is.

Good luck

Re:Hold off on AWS Aurora and Postgres until further notice by sudhirj on Tuesday January 02, 2018 @04:30AM (#16050878)
Thanks, will pass this on.
Re:Hold off on AWS Aurora and Postgres until further notice by kurttheviking on Friday December 29, 2017 @02:25PM (#16031360)
Ugh, that's bad -- sorry to hear that. We GIN index several JSONB fields as well.
Re:Hold off on AWS Aurora and Postgres until further notice by stocktech on Friday December 29, 2017 @01:36PM (#16031022)
It's the friday before a holiday curse. I'm sorry for your loss.
Re:Hold off on AWS Aurora and Postgres until further notice by tyingq on Friday December 29, 2017 @05:16PM (#16032391)
Very interested in what Amazon's final position on this is. I assumed part of the value proposition was that they handled redundancy and recovery.
Re:Hold off on AWS Aurora and Postgres until further notice by nolite on Friday December 29, 2017 @03:34PM (#16031799)
" because the crash is in the underlying storage the MultiAZ setting makes no difference."

@OP - I don't understand this line... can you explain more?

Re:Hold off on AWS Aurora and Postgres until further notice by vhold on Friday December 29, 2017 @03:58PM (#16031949)
Aurora read replicas are just compute heads decoupled from the storage. They increase availability and read performance, but don't do anything for the reliability of the storage.

https://aws.amazon.com/rds/aurora/faqs/

"Each 10GB chunk of your database volume is replicated six ways, across three Availability Zones."

So, if there has been a storage layer failure, most likely it was a software bug in Aurora itself.

Re:Hold off on AWS Aurora and Postgres until further notice by fjania on Friday December 29, 2017 @05:33PM (#16032490)
I don't see anything on the status page. I know the status page lags an actual incident, but I'd imagine something would be up by now. Is this a widespread problem?
Re:Hold off on AWS Aurora and Postgres until further notice by sudhirj on Monday January 01, 2018 @01:50PM (#16047371)
The data has been recovered, no post mortem yet.
Re:Hold off on AWS Aurora and Postgres until further notice by mrep on Monday January 01, 2018 @10:06PM (#16049548)
That's lucky. Was your service down for the entire time until the data was recovered?
Re:Hold off on AWS Aurora and Postgres until further notice by sudhirj on Tuesday January 02, 2018 @12:06AM (#16049997)
We moved to a new DB as a clean slate, took fresh orders, and then merged the old ones in as they became available. Was able to do that because all primary keys were uuids and the order history API was being served somewhere else.
Re:Hold off on AWS Aurora and Postgres until further notice by mrep on Tuesday January 02, 2018 @12:37AM (#16050101)
How did you handle other tables like users and sessions?
Re:Hold off on AWS Aurora and Postgres until further notice by sudhirj on Tuesday January 02, 2018 @04:29AM (#16050877)
This microservice didn't have them, but even they're all keyed by UUID, so it's possible to start a clean slate pretty fast. Filling in existing users later should also be easy, the problems will occur if and when users try to sign up again with the same key (email / FBid etc).
Re:Hold off on AWS Aurora and Postgres until further notice by CaliforniaKarl on Sunday December 31, 2017 @03:49PM (#16042876)
Hello! Was this ever resolved? It seems like there was one update from the poster, but then nothing.
Re:Hold off on AWS Aurora and Postgres until further notice by sudhirj on Monday January 01, 2018 @01:48PM (#16047358)
Resolved, managed to get the data back, don't have a postmortem yet.
Re:Hold off on AWS Aurora and Postgres until further notice by QuinnyPig on Friday December 29, 2017 @05:32PM (#16032487)
For what it’s worth, this appears localized to your account. Sorry for your situation, though.
Re:Hold off on AWS Aurora and Postgres until further notice by jaydestro on Friday December 29, 2017 @02:40PM (#16031455)
sorry to hear this, good luck. always sucks on a fri.
Re:Hold off on AWS Aurora and Postgres until further notice by BallinBige on Friday December 29, 2017 @02:11PM (#16031268)
Sorry