Publication date : 05/14/2024

Course : PostgreSQL, high availability

Practical course - 3d - 21h00 - Ref. PGH
Price : 1740 € E.T.

PostgreSQL, high availability




This course provides PostgreSQL administrators with an understanding of high availability mechanisms and an overview of existing solutions. It teaches them how to implement an operational solution with PostgreSQL, detailing the different types of replication and load balancing.


INTER
IN-HOUSE
CUSTOM

Practical course in person or remote class
Disponible en anglais, à la demande

Ref. PGH
  3d - 21h00
1740 € E.T.




This course provides PostgreSQL administrators with an understanding of high availability mechanisms and an overview of existing solutions. It teaches them how to implement an operational solution with PostgreSQL, detailing the different types of replication and load balancing.


Teaching objectives
At the end of the training, the participant will be able to:
Implement physical replication between instances
Reinforce replication in conjunction with physical backups
Modify replication topology
Implement logical replication between databases
Controlling load distribution
Create and test failure scenarios

Intended audience
Database administrators and system administrators.

Prerequisites
Good knowledge of PostGreSQL administration or knowledge equivalent to that acquired in the course "PostgreSQL, administration" (ref. PGA). Basic knowledge of Linux administration

Course schedule

1
Introduction and reminders

  • Backup modes: physical, logical.
  • PostgreSQL transaction logs: WALs.
  • Physical backup.
  • Archivage continu.
  • Restore an instance - PITR.
  • Tools: pg_basebackup, pg_receivewal.
Hands-on work
Hot backup and partial restoration.

2
Physical replication

  • Creation of a physical backup server.
  • Replication configuration.
  • Synchronous/asynchronous replication.
  • Replication slots.
  • Replication monitoring.
  • Controlled tilt.
  • Failover and backup server promotion.
Hands-on work
Implementing replication. Manipulating configuration parameters.

3
Logical replication

  • Differences from physical replication.
  • PUBLISH/SUBSCRIBE model.
  • Slots de réplication logique.
  • Integrated logical replication.
Hands-on work
Setting up logical replication.

4
Load balancing and failover

  • Installation and configuration of a load balancing tool.
  • Test with pgbench.
  • Recovery procedure.
Hands-on work
Configuration, testing and failure scenarios.

5
The session manager: pgbouncer

  • Installation of pgbouncer.
  • Pool and session configuration.
  • Gestion de la sécurité.
  • Implementation.
  • Cas d'utilisation.
Hands-on work
Implementation of a load balancing solution with pgbouncer.

6
Automatic switchover: the Patroni case

  • Concepts, DCS, raft protocol.
  • Mise en place de pgBackRest.
  • Installation and configuration of the first Patroni node.
  • Set up the other Patroni nodes.
  • Application access point: pgbouncer or haproxy.
  • Controlled tilt.
  • Bascule sur incident.
Hands-on work
Restore test and automatic Patroni/haproxy switchover on scenarios.


Customer reviews
3,9 / 5
Customer reviews are based on end-of-course evaluations. The score is calculated from all evaluations within the past year. Only reviews with a textual comment are displayed.
LIRA GABRIEL M.
06/10/25
3 / 5

Theory OKWork environment very good, no particular worries. Too many errors in the course exercises. For a subject as complicated as this, I'm generally disappointed with the practical exercises because manipulation is the basis of the developer's skills. Even though I learnt a lot, I'm still disappointed.
CHRISTOPHE G.
06/10/25
4 / 5

The practical exercises are not sufficiently prepared before the course. For several exercises (pgbouncer, pgbackrest via patroni), we had problems installing it. We were unable to complete the course.
BRUN MIKAËL L.
06/10/25
4 / 5

The practical work was complicated to follow and to carry out



Dates and locations
Select your location or opt for the remote class then choose your date.
Remote class

Dernières places
Date garantie en présentiel ou à distance
Session garantie

REMOTE CLASS
2026 : 11 Mar., 15 June, 28 Sep., 23 Nov.

PARIS LA DÉFENSE
2026 : 11 Mar., 15 June, 28 Sep., 23 Nov.