1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-04 03:41:01 +01:00
phorge-phorge/src/infrastructure/storage
epriestley 5a0b7398ca Give bin/storage some replica-aware options
Summary:
Fixes T10758.

  - Adds a "--host" flag. If you specify this, we read your cluster config. This lets you dump from a replica.
  - Adds a "--for-replica" flag to `storage dump`. This makes `mysqldump` include a `CHANGE MASTER ...` statement in the output, which is useful when setting up a replica for the first time.

Test Plan:
  - Dumped master and replica cluster databases.
  - Dumped non-cluster databases.
  - Ran various other commands (help, status, etc).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10758

Differential Revision: https://secure.phabricator.com/D15714
2016-04-14 13:23:35 -07:00
..
__tests__ phtize all the things 2015-05-22 21:16:39 +10:00
configuration Extend from Phobject 2015-06-15 18:02:27 +10:00
lisk Automatically degrade to read-only mode when unable to connect to the master 2016-04-10 12:20:13 -07:00
management Give bin/storage some replica-aware options 2016-04-14 13:23:35 -07:00
patch Rename XHPAST database 2015-11-14 21:41:28 +11:00
schema Record how long storage patches took to apply 2015-10-24 05:58:44 -07:00