Redundant Shards Binary Provider
redundant-shards template: two mounts with redundancy=2, each artifact copied to both shards for redundant storage.
The redundant-shards template is used for pure sharding configuration that uses 2 physical mounts with 2 copies (which means each shard stores a copy of each artifact). To learn more about the different sharding capabilities, refer to Filestore Sharding.
redundant-shards template configuration
If you choose to use the redundant-shards template, your binarystore.xml configuration file should look like this:
<config version="4">
<chain template="redundant-shards"/>
</config>What's in the template?
While you do not need to configure anything else in your binarystore.xml, this is what the redundant-shards template looks like under the hood.
<chain> <!-- template="redundant-shards" -->
<provider id="cache-fs" type="cache-fs">
<provider id="sharding" type="sharding">
<redundancy>2</redundancy>
<sub-provider id="shard-state-aware-1" type="state-aware"/>
<sub-provider id="shard-state-aware-2" type="state-aware"/>
</provider>
</provider>
</chain>
<provider id="shard-state-aware-1" type="state-aware">
<fileStoreDir>shard-state-aware-1</fileStoreDir>
</provider>
<provider id="shard-state-aware-2" type="state-aware">
<fileStoreDir>shard-state-aware-2</fileStoreDir>
</provider>For details about the sharding provider see Configure a Sharding Binary Provider.
For details about the state-aware sub-provider, see State-Aware Binary Provider.
Updated 24 days ago
