The following example shows a file system cluster binary configuration with a custom file store directory.
<config version="2"> <chain> <!--template="cluster-file-system"--> <provider id="cache-fs" type="cache-fs"> <provider id="sharding-cluster" type="sharding-cluster"> <sub-provider id="state-aware" type="state-aware"/> <dynamic-provider id="remote-fs" type="remote"/> </provider> </provider> </chain> <provider id="cache-fs" type="cache-fs"> <cacheProviderDir>/opt/jfrog/artifactory/var/data/artifactory/cache</cacheProviderDir> <maxCacheSize>500000000</maxCacheSize> </provider> <provider id="state-aware" type="state-aware"> <zone>local</zone> <fileStoreDir>/opt/jfrog/artifactory/var/data/artifactory/filestore</fileStoreDir> </provider> <!-- Shard dynamic remote provider configuration --> <provider id="remote-fs" type="remote"> <zone>remote</zone> </provider> <provider id="sharding-cluster" type="sharding-cluster"> <readBehavior>crossNetworkStrategy</readBehavior> <writeBehavior>crossNetworkStrategy</writeBehavior> <redundancy>2</redundancy> <lenientLimit>1</lenientLimit> <property name="zones" value="local,remote"/> </provider> </config>