Learn Labs
Foundations

Self-test

Check your understanding

Self-test7 questions

—/7
  1. Why does the Postgres 18 image need its volume mounted at /var/lib/postgresql instead of /var/lib/postgresql/data?

  2. Why does changing POSTGRES_PASSWORD after the first start do nothing?

  3. In compose_prod.yaml, why do applications connect to PgBouncer, and how does PgBouncer reach whichever node is primary?

  4. Why did new replicas take up to five minutes to appear before checkpoint: fast was set?

  5. Why did pgBackRest refuse to archive WAL after the cluster was rebuilt, and why is that refusal a good thing?

  6. You changed ttl in the bootstrap.dcs section of patroni.yml and restarted every node. Why didn't anything change, and what should you have done?

  7. Design question

    List three ways this one-laptop cluster falls short of production HA, and what each would need.