Closed pseymournutanix closed 11 months ago
Hi
The short answer is that there is another field we must set, the blob replicator. See the proto defintion with helpful documentation here, https://github.com/buildbarn/bb-storage/blob/master/pkg/proto/configuration/blobstore/blobstore.proto#L314 . I'll see if I can whip up a little example too.
You can use a simple replicator, 'local'
, or use a more advanced option, described in the proto: https://github.com/buildbarn/bb-storage/blob/master/pkg/proto/configuration/blobstore/blobstore.proto#L708
contentAddressableStorage: {
sharding: {
hashInitialization: 11946695773637837490,
shards: [
{
backend: {
mirrored: {
backendA: { grpc: { address: 'storage-0:8981' } },
backendB: { grpc: { address: 'storage-1:8981' } },
replicatorAToB: { 'local': {} },
replicatorBToA: { 'local': {} },
},
},
weight: 1,
},
{
backend: {
mirrored: {
backendA: { grpc: { address: 'storage-2:8981' } },
backendB: { grpc: { address: 'storage-3:8981' } },
replicatorAToB: { 'local': {} },
replicatorBToA: { 'local': {} },
},
},
weight: 1,
},
],
},
},
Oh that's great thank you so much. I am a little bad at reading those .proto
files and mapping them back to camelcase configuration items ! Now just the error with the remote_asset service but that is for another place.
Appreciate the help. Thank you.
As per https://github.com/buildbarn/bb-adrs/blob/master/0002-storage.md
Setting up configuration with this doesn't seem to match (tbf that doc is a few years old) for example in my
common.libsonnet
I haveThis results in errors in the frontend / browser services as