-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade PostgreSQL from 9.6 to something more modern #1097
Comments
Heya, thanks a lot for the feedback! We are aware of this and are actively working on it: https://forum.sentry.io/t/roadmap-postgresql-update/14161/2?u=byk |
Hey, folks. Is there any estimated for this? We are starting to look into Hosted Sentry as an alternative, since RDS is deprecating Postgres v9 in Jan 2022. Also, in that forum BYK linked, someone states that a custom postgres plugin is being added. This will make onpremise non-compatible with RDS and other alike services. Are planning on offering any alternative / backwards compatibility to avoid the need of using that custom plugin? |
Hey @marin-h, thanks for escalating (here, too).
No, but we're close enough now that we had better get on this. @jasonious Can you fill us in on the current state of Sentry on Postgres >9 from the Ops perspective?
Awesome, that is certainly a solid plan. :)
I believe the forum link you shared @tanmaymohan is the source of truth for this, yes?
That certainly sounds drastic. Question: has anyone tried running Sentry on PostgreSQL 12 already? How did it go? |
I read about users trying the upgrade in Sentry on-premise forum saying it didn't worked (they said something about missing columns upon creating / altering tables) |
@marin-h Link? Not jumping out at me on https://forum.sentry.io/t/roadmap-postgresql-update/14161. |
Found it! It was on this thread |
@marin-h Good find! So it looks from one report at least that there are indeed some issues running against Postgres 11 (cc: @dcramer):
That said, 11 is two hops. The minimum requirement to meet the February 22 RDS deadline is Postgres 10. Does Sentry work against Postgres 10? 🧐 Sidebar on CDCThere was a concern (1, 2) that the introduction of CDC will mean Sentry no longer works on RDS because CDC introduces a custom extension, but afaict the only extension required by CDC is the well-established @fpacifici Please correct me if I'm wrong. Soooooo ... Postgres 10? 😬Postgres 9.6 is EOL as of last week. Last word we have on upgrading from the Sentry side is from June:
@jasonious @dbennett-sentry Can you bring us up to speed on our internal timeline for a Postgres upgrade? If we can't commit to February 22, then the community will need to step up with fixes to meet the RDS deadline. |
Haven't tried it yet, did you? I might give it a shot next week
This is great news! |
I have not, no. If you're able to try it out that would be great! :-) |
Hmm I do have the same issue @marin-h @BYK @chadwhitacre |
Awesome, keep us posted. 👍
I pinged @jasonious internally to see if we can get an update here. Also fyi @BYK has moved on to his next adventure (as they say ;), he's still hanging around here but no longer full-time with Sentry. |
I was able to connect with @jasonious, we don't really have any movement on our side on this or plans to tackle this in the near term. If folks need this to meet the AWS deadline we'll have to see the community step up. |
I've been following this for a while, and this is quite worrisome. We're currently using RDS however like many we go into a forced break over the holidays, which results in even less time to implement any significant architectural changes, which it's sounding like will be required. |
@lindsaygrace et al. I've pinned this issue in the repo for visibility, and I've started #1213 to start to get a sense of how much work this will be. Can someone else try out #1213 and see if it works for you? |
#1213 ran green. 👍 Testing out with |
When I remember correctly there was an unintentionally upgrade try som time ago and the "db migration in install.sh" was the "topic" why it was rolled back or such ... but this is somehow deep from rememberings |
@Apollon77 Was this on an old forum thread or something? Or your personal experience? Or ... ? |
This is exactly the question ... I now searched for several time but can not find it anymore :-( Sorry for pot. confusion. maybe it was just a wrong remembering? :-( In fact the DB migration will in fact be the interesting point in that I assume |
Checks passed on getsentry/sentry#30782! 💃 Here's what I propose:
What do we need to consider in terms of upgrade instructions? Also, I would love to see someone upgrade to Postgres 10 asap so we can get some real-world signal. Who is going to be our pioneer / guinea pig / beta tester? 😁 |
In my eyes the "install.sh" needs to handle that automatically - or at least need to "block" an update and refer to instructions (I'm no PostgreSQL expert, so I can not tell what needed) |
We can put this in the changelog for 22.1.0 one way or another, even if we don't land any code changes in that version we can say "we tested this on Postgres 10 and it seems to work, if you're using RDS be aware of the Jan 18 soft deadline and the Feb 22 hard deadline to upgrade." Between that and this ticket what further communication should we do? |
@chadwhitacre Sorry for missing that detail before. |
Thanks @fpacifici, scheduling a discussion internally to coordinate. Will report back here ... |
Via @aminvakil at #1213 (comment), consolidating here for visibility:
|
Circling back from our internal call:
For our use-case where we have a battle-tested SaaS installation, we should pin to the Postgres version in that environment as our default, though others are of course free to target different versions for their own circumstances.
It will be the latter.
I'll backpedal now and say that Postgres 9.6 should remain the default until SaaS is on 10. Once we flip the That's the status for now. I added an update to the ticket description here. If you have suggestions for other places to communicate about this, lmk. It would be super-helpful for someone from the community to take the plunge and migrate to Postgres 10 and report back with their experience. 🙏 Thanks everyone! :) |
Hey, I've just accomplished postgres v10.17 upgrade (from v9.6.22) following RDS official guide and everything seems to be working smoothly. I'm using I'll be reporting here if anything comes up. |
Woo-hoo! Thanks for taking this on and for sharing back out @marin-h! That's good news! 👍 |
I believe the last action item to complete before closing this ticket is to add Postgres 10 to the CI matrix for |
If/when we get to upgrading to Postgres 10, we should pay attention to the |
FWIW https://github.com/tianon/docker-postgres-upgrade/tree/master/9.6-to-10 is available. |
Done. |
The new date is April 26. |
Hey, I already changed my prod and dev stage to the latest sentry version and afterwards from aws rds postgre 9.6 to 10.19 a week ago. I haven't detected any issues yet. |
Nice! Thanks for posting back, @pharindoko. I've added a shout-out along with @marin-h in our monthly newsletter which should be going out in the next few days. :) |
Lolsob I just found this ticket over in the There we have reports of Sentry running on Postgres 11 and 12. I've updated the Update in the description here accordingly.
I guess let's look at 11 and 12 as well when we get to this. |
For what it's worth, we've configured Sentry to run against AWS RDS Postgres 13.3 and it seems to work fine? Or should I test specific scenario that doesn't work on newer versions? |
Thanks for the report, @pavelbrylov! I haven't heard of specific failures we would want to test. I've updated the ticket description to note your success with 13. 👍 |
We started running CI against 14 a few weeks ago, in getsentry/sentry#33041. |
Gonna go ahead and close this out now that we have getsentry/sentry#33041. Looks like we're on our way! 💃 |
Picking up with #1610 now that SaaS is on 14. |
Original Report
Problem Statement
Hello
I have been using Sentry 21.9.0 for production use for a python based api , and I am using AWS RDS Postgres 9.6 as the database server for the sentry application. I have been getting a warning message from AWS regarding the EOL date of Postgres9.6 and its deprecation is nearby but your docker-compose and other tools still list postgres:9.6 as the db server. Are there any plans for upgrade to a newer version of postgres ?
Solution Brainstorm
Here's an excerpt : https://forums.aws.amazon.com/ann.jspa?annID=8499
Update from Sentry
sentry
CI against Postgres 9.6 and 14.The text was updated successfully, but these errors were encountered: