Homec4science

When no master database is configured, automatically degrade to read-only mode

Authored by epriestley <git@epriestley.com> on Apr 10 2016, 14:10.

Description

When no master database is configured, automatically degrade to read-only mode

Summary: Ref T4571. If cluster.databases is configured but only has replicas, implicitly drop to read-only mode and send writes to a replica.

Test Plan:

  • Disabled the master, saw Phabricator automatically degrade into read-only mode against replicas.
  • (Also tested: explicit read-only mode, non-cluster mode, properly configured cluster mode).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4571

Differential Revision: https://secure.phabricator.com/D15672

Details

Committed
epriestley <git@epriestley.com>Apr 10 2016, 21:19
Pushed
aubortJan 31 2017, 17:16
Parents
rPH071741c61da7: When Phabricator is in read-only mode, explain why
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHe0a8cac703d1: When no master database is configured, automatically degrade to read-only mode (authored by epriestley <git@epriestley.com>).Apr 10 2016, 21:19