mirror of
https://github.com/kopia/kopia.git
synced 2026-01-02 19:47:51 -05:00
* blob: support for custom blob store sharding
This is experimental.
The .shards file can reside in the root of any blob storage that uses
sharding (filesystem/sftp/webdav) and can specify rules for sharding.
{
"default": [3,2,1],
"overrides": [
{ "prefix": "p", "shards": [2,2] },
{ "prefix": "x", "shards": [1,1,1] }
],
"maxNonShardedLength": 2
}
With this in place we'll be later able to do resharding of the
repository to optimize get/put/list performance for both repositories
and caches.
* cli: command line tools to manipulate shards in a directory
12 lines
263 B
Go
12 lines
263 B
Go
package cli
|
|
|
|
type commandBlobShards struct {
|
|
modify commandBlobShardsModify
|
|
}
|
|
|
|
func (c *commandBlobShards) setup(svc appServices, parent commandParent) {
|
|
cmd := parent.Command("shards", "Manipulate shards in a blob store").Hidden()
|
|
|
|
c.modify.setup(svc, cmd)
|
|
}
|