The double-shards template is used for pure sharding configuration that uses 2 physical mounts with 1 copy (which means each artifact is saved only once).
double-shards template configuration
If you choose to use the double-shards template, your binarystore.xml configuration file should look like this:
<config version="4"> <chain template="double-shards"/> </config>
What's in the template
While you don't need to configure anything else in your binarystore.xml, this is what the double-shards template looks like under the hood.
<chain> <!-- template="double-shards" -->
<provider id="cache-fs" type="cache-fs">
<provider id="sharding" type="sharding">
<redundancy>1</redundancy>
<sub-provider id="shard-fs-1" type="state-aware"/>
<sub-provider id="shard-fs-2" type="state-aware"/>
</provider>
</provider>
</chain>
<provider id="shard-fs-1" type="state-aware">
<fileStoreDir>shard-fs-1</fileStoreDir>
</provider>
<provider id="shard-fs-2" type="state-aware">
<fileStoreDir>shard-fs-2</fileStoreDir>
</provider>For details about the cache-fs provider, see Cached Filesystem Binary Provider.
For details about the sharding provider, see Sharding-Cluster Binary Provider .
For details about the state-aware sub-provider, see State-Aware Binary Provider.