-
Notifications
You must be signed in to change notification settings - Fork 20
Update ansible for installation with py3.12 and Ubuntu Noble and postgresql 16 #151
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
Conversation
Signed-off-by: Dan Mick <[email protected]>
Signed-off-by: Dan Mick <[email protected]>
Signed-off-by: Dan Mick <[email protected]>
Signed-off-by: Dan Mick <[email protected]>
not sure when this changed, but it seems like long ago Signed-off-by: Dan Mick <[email protected]>
Signed-off-by: Dan Mick <[email protected]>
as of v14, pg_stats is no more Signed-off-by: Dan Mick <[email protected]>
pip can't handle --hash and -e . at the same time see all the lovely dissent at pypa/pip#4995 include update of psycopg2 to .10 micro version Signed-off-by: Dan Mick <[email protected]>
Signed-off-by: Dan Mick <[email protected]>
Signed-off-by: Dan Mick <[email protected]>
Signed-off-by: Dan Mick <[email protected]>
When updating the hosts, the differences between configuring hot-standby on postgresql 9.5 -> 16 are just too great. I think the hot-standby feature was of questionable value anyway, and it super-complicates the update procedure, and shaman is due for some major architectural changes soon anyway. If this horribly affects performance we can circle back, but I very much doubt it will. Signed-off-by: Dan Mick <[email protected]>
|
So there is no second/backup shaman server anymore? |
Right. My judgement was that it was not worth the effort to recast/retest given how much the configuration has changed and how little I understood the management procedures. I need to circle back on the load balancer deployment ansible code too |
zmc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sane to me!
| @@ -1,4 +0,0 @@ | |||
| # {{ ansible_managed }} | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was this file even supposed to be for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was part of the hot-standby configuration that I excised. it's not present anymore; those settings got absorbed into postgresql.conf
Just a bunch of little things, mostly, except for the decision to remove the hot-standby server (because the
newer postgresql configuration is completely different, and I don't think it was ever necessary for performance
or fault-tolerance).
I've run this on a new server installed with Ubuntu Noble, and transferred the data from 1.shaman.ceph.com with pg_dumpall -> pg_restore -> psql:
1.shaman:
pg_dumpall -c --quote-all-identifiers -f dumpall.sql
(copy dumpall.sql to new server)
1.new:
dropdb shaman
pg_restore -c -C -f restore.sql dumpall.sql
psql < restore.sql
The new server provides a working web UI, and I validated the newest fix from #147 as follows:
create a project 'dmick'
create 1.json:
I should be able to schedule some downtime, bring 1.shaman and 2.shaman's service down, take a last dumpall of the DB and load it into the new server, then twiddle the server IPs to have the new server take over at 1.shaman (to avoid DNS-TTL-timeout delays for all consumers) in fairly short order.