Page MenuHomePhabricator

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

Authored by epriestley on Apr 10 2016, 12:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 7:44 PM
Unknown Object (File)
Sat, Apr 20, 7:44 PM
Unknown Object (File)
Sat, Apr 20, 7:44 PM
Unknown Object (File)
Fri, Apr 19, 4:25 PM
Unknown Object (File)
Tue, Apr 16, 11:54 AM
Unknown Object (File)
Sun, Apr 7, 10:41 AM
Unknown Object (File)
Wed, Apr 3, 12:24 AM
Unknown Object (File)
Tue, Mar 26, 10:20 AM
Subscribers
None

Details

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).

Diff Detail

Repository
rP Phabricator
Branch
readonly9
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/infrastructure/cluster/PhabricatorDatabaseRef.php:357XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 11633
Build 14553: Run Core Tests
Build 14552: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to When no master database is configured, automatically degrade to read-only mode.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 10 2016, 3:50 PM
This revision was automatically updated to reflect the committed changes.