Page MenuHomeSoftware Heritage

Upgrade postgresql to 9.5
Closed, MigratedEdits Locked

Description

We should upgrade our main postgresql install to 9.5, now that the final version has been released.

Considering our current space usage, we should probably do a database-per-database upgrade.

We should probably use this opportunity to setup pgpool or another connection proxy in front of the main databases.

Event Timeline

olasd raised the priority of this task from to Normal.
olasd updated the task description. (Show Details)
olasd added a project: System administrators.
olasd added a subscriber: olasd.

The latest pgbouncer release (1.7) supports TLS, hba and unix peer authentification so looks like a good candidate. I submitted a bug to Debian to ask for an update of the package : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810816

Agreed, pgbouncer would be nice (and IIRC also the choice that Dimitri recommended to us a while back).

While we are at it, I also wonder if we should consider moving some databases to a different cluster, not backed by SSD disks. While both swh and swh-log DBs can stay on the main cluster for now, I guess all "mirror" DBs (e.g., snapshot.d.o, antelink, etc.) might go to a different DB, possibly even on banco.

That sounds sensible. We should be able to export a LV from our spinning rust storage to prado for that "mirrors" postgresql cluster.

To be honest, I'm not even sure that having swh-log or even the swh snapshot databases on the same cluster as the main database is sensible. We don't care about point in time recovery for those, and we don't really want the tests we're doing there to affect what's going on in the main database.

I'd be in favor of working with three clusters then:

  • ssd-main (contains the softwareheritage database)
  • ssd-sec (contains the user databases, snapshots, logs)
  • hdd-mirrors (contains the mirror databases)

And putting pgbouncer on top of that to smooth things out.

I'd be in favor of working with three clusters then:

Ack!

olasd changed the status of subtask T266: Setup pgbouncer on prado from Open to Work in Progress.Jan 18 2016, 4:37 PM
olasd changed the status of subtask T267: Migrate databases to postgres 9.5 from Open to Work in Progress.Jan 18 2016, 5:59 PM
olasd claimed this task.

PostgreSQL has now been updated to 9.5 (and split into three clusters).

PgBouncer has been setup on port 5432 and proxies to the three clusters transparently.

olasd changed the visibility from "All Users" to "Public (No Login Required)".May 13 2016, 5:08 PM
gitlab-migration changed the status of subtask T267: Migrate databases to postgres 9.5 from Resolved to Migrated.