Homec4science

Support application partitioning across multiple masters

Authored by epriestley <git@epriestley.com> on Nov 16 2016, 00:44.

Description

Support application partitioning across multiple masters

Summary:
Ref T11044. I'm going to hold this until after the release cut, but I think it's good to go.

This allows installs to configure multiple masters in cluster.databases and partition applications across them (for example, put Maniphest on a dedicated database).

When we make a Maniphest connection we go look up which master we should be hitting first, then connect to it.

This has at least approximately been planned for many years, so the actual change is largely just making sure that your config makes sense.

Test Plan:

  • Configured db001.epriestley.com and db002.epriestley.com as master/master.
  • Partitioned applications between them.
  • Interacted with various applications, saw writes go to the correct host.
  • Viewed "Database Servers" and saw partitioning information.
  • Ran schema upgrades.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11044

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

Details

Committed
epriestley <git@epriestley.com>Nov 19 2016, 23:14
Pushed
aubortJan 31 2017, 17:16
Parents
rPH8fbb411a9a72: Respect user/pass flags to bin/storage for direct DatabaseRef-based queries
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH55e21565b593: Support application partitioning across multiple masters (authored by epriestley <git@epriestley.com>).Nov 19 2016, 23:14