Page MenuHomePhabricator

Add an "--ignore-locality" flag to "bin/repository pull"
ClosedPublic

Authored by epriestley on Feb 4 2021, 6:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 20 2024, 6:03 AM
Unknown Object (File)
Jan 9 2024, 7:59 AM
Unknown Object (File)
Dec 27 2023, 1:41 PM
Unknown Object (File)
Dec 22 2023, 3:29 AM
Unknown Object (File)
Dec 20 2023, 7:52 AM
Unknown Object (File)
Nov 30 2023, 5:12 AM
Unknown Object (File)
Nov 18 2023, 9:29 AM
Unknown Object (File)
Sep 10 2023, 7:09 PM
Subscribers
None

Details

Summary

Ref T13600. When migrating observed repositories between cluster services, impact can be better controlled by fetching a copy of the repository on the target host before clusterizing it.

In particular, in the Phacility cluster, migrations are generally from one shared shard to one dedicated shard. It's helpful to perform these migrations synchronously without waiting for the cluster to sync in the background (helpful in the sense that there are fewer steps and fewer commands to run).

This supports an "--observe" mode to the internal "bin/services load-repository" workflow, which transfers repository data by refetching it from the remote rather than by getting it from the older host. This fetch occurs before cluster configuration is adjusted.

Test Plan

Ran locally as a sanity check, will apply in production.

Diff Detail

Repository
rP Phabricator
Branch
local1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25095
Build 34629: Run Core Tests
Build 34628: arc lint + arc unit