202ea3ff2a
Avoid `git-annex sync --content` etc from operating on cluster nodes by default since syncing with a cluster implicitly syncs with its nodes. This avoids a lot of unncessary work when a cluster has a lot of nodes just in checking if each node's preferred content is satisfied. And it avoids content being sent to nodes individually, so instead syncing with clusters always fanout uploads to nodes. The downside is that there are situations where a cluster's preferred content settings can be met, but those of its nodes are not. Or where a node does not contain a key, but the cluster does, and there are not enough copies of the key yet, so it would be desirable the send it there. I think that's an acceptable tradeoff. These kind of situations are ones where the cluster itself should probably be responsible for copying content to the node. Which it can do much less expensively than a client can. Part of the balanced preferred content design that I will be working on in a couple of months involves rebalancing clusters, so I expect to revisit this. The use of annex-sync config does allow running git-annex sync with a specific node, or nodes, and it will sync with it. And it's also possible to set annex-sync git configs to make it sync with a node by default. (Although that will require setting up an explicit git remote for the node rather than relying on the proxied remote.) Logs.Cluster.Basic is needed because Remote.Git cannot import Logs.Cluster due to a cycle. And the Annex.Startup load of clusters happens too late for Remote.Git to use that. This does mean one redundant load of the cluster log, though only when there is a proxy. |
||
---|---|---|
.. | ||
Chunk | ||
Cluster | ||
ContentIdentifier | ||
Difference | ||
Export | ||
MetaData | ||
PreferredContent | ||
Presence | ||
Remote | ||
SingleValue | ||
Trust | ||
Activity.hs | ||
AdjustedBranchUpdate.hs | ||
Chunk.hs | ||
Cluster.hs | ||
Config.hs | ||
ContentIdentifier.hs | ||
Difference.hs | ||
EquivilantKeys.hs | ||
Export.hs | ||
File.hs | ||
FsckResults.hs | ||
Group.hs | ||
Import.hs | ||
Line.hs | ||
Location.hs | ||
MapLog.hs | ||
MetaData.hs | ||
Migrate.hs | ||
Multicast.hs | ||
NumCopies.hs | ||
PreferredContent.hs | ||
Presence.hs | ||
Proxy.hs | ||
Remote.hs | ||
RemoteState.hs | ||
Restage.hs | ||
Schedule.hs | ||
SingleValue.hs | ||
Smudge.hs | ||
Transfer.hs | ||
Transitions.hs | ||
Trust.hs | ||
Unused.hs | ||
Upgrade.hs | ||
UUID.hs | ||
UUIDBased.hs | ||
View.hs | ||
Web.hs |