Repository navigation
Add migration to create logical replication slot - #4946
Conversation
a778ebf to
95f43b1
Compare
|
Can we test this on a dev env? It seems like we're going to run into the problem of |
Good point, Will run another test.
I noticed that I missed the default ones, it should have been: I'll have a look at adding this in. |
|
Dude before we consider enabling this for production we need to choose and set a |
Yeah - I'm avoiding merging this in before the processing code (#4930). |
A PR was merged to fix the concourse test dbs - #4955 |
@klssmith additional test ran on |
|
Todo before merging this in:
|
|
@risicle - looks like there is a default limit set of 2GB already:
(from dev d)
|
|
I realised this will work in our environments now because we're using Postgres 15.17, and the restriction on |
That's not the same config setting. |
PR added: https://github.com/alphagov/notifications-aws/pull/3094 |
|
#3094 has been merged in but requires reboot to apply changes |
Restart not required: https://github.com/alphagov/notifications-aws/pull/3096 |
|
It doesn't block this, but I still think we need a definite plan or PR for when we'll change |
PR added to support this: |
95f43b1 to
247589b
Compare
38c43f5 to
194a659
Compare
|
So ... are we happy we have |
risicle
left a comment
There was a problem hiding this comment.
You'll need to rebase though.
8ca8bb0 to
60ed784
Compare
|
|
||
| revision = "0576_create_replacation_slot" | ||
| down_revision = "0575_invusr_srv_id_null_valid" | ||
| slot_name = "notify_dashboard_replication_slot" |
There was a problem hiding this comment.
Not crazy about this name. I'd call it dbstreamer_replication_slot because dbstreamer is what we probably want to call the daemon that we eventually run to consume this.
There was a problem hiding this comment.
I think it makes it clear what it is - dbstreamer sounds very generic
There was a problem hiding this comment.
That's the point - we're probably going to use this for a lot more than the dashboard.
There was a problem hiding this comment.
Then a better name is probably notify_replication_slot
There was a problem hiding this comment.
But we also use replication for our read-replicas, and when we do our postgres upgrade we're going to be using it for logical replication to sync the dbs before we switch.
772005f to
2b55234
Compare
|
Just noticed the migration name misspells replication. |
|
Also |
2b55234 to
1a52e5c
Compare
Renamed it to I initially changed it to |
1a52e5c to
0122850
Compare

This creates a wal2json replication slot to allow us to listen to changes to the notifications table.