Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0
    • Component/s: Artifact Storage
    • Labels:
      None

      Description

      • Each checksum file saved once and only once onto one of the mount point.
      • On each deploy event a round-robin deployment is done.
      • Read event is looking for the file named sha1 under each mount point (no DB of where the file is).

      One default storage template provided:

          <!-- Simple Sharding with 2 shards default chain -->
          <chain template="double-shards">
              <provider id="cache-fs" type="cache-fs">
                  <provider id="sharding" type="sharding">
                      <sub-provider id="shard-fs-1" type="file-system"/>
                      <sub-provider id="shard-fs-2" type="file-system"/>
                  </provider>
              </provider>
          </chain>
      
          <!-- Shards FS provider configuration -->
          <provider id="shard-fs-1" type="file-system">
              <dir>shard-fs-1</dir>
          </provider>
          <provider id="shard-fs-2" type="file-system">
              <dir>shard-fs-2</dir>
          </provider>
      

      That can be activated by placing the following in (ect or ha-etc)/binarystore.xml:

      <config version="2">
          <chain template="double-shards"/>
      </config>
      

      And more complex sharding with customizing (ect or ha-etc)/binarystore.xml like:

      <config version="2">
          <chain>
              <provider id="cache-fs" type="cache-fs">
                  <provider id="sharding" type="sharding">
                      <sub-provider id="shard-fs-1" type="file-system"/>
                      <sub-provider id="shard-fs-2" type="file-system"/>
                      <sub-provider id="shard-fs-3" type="file-system"/>
                      <sub-provider id="shard-fs-4" type="file-system"/>
                      <sub-provider id="shard-fs-5" type="file-system"/>
                  </provider>
              </provider>
          </chain>
          <provider id="sharding" type="sharding">
              <writeBehavior>roundRobin|freeSpace</writeBehavior>
          </provider>
          <provider id="shard-fs-1" type="file-system">
              <dir>shard-fs-1</dir>
          </provider>
          <provider id="shard-fs-2" type="file-system">
              <dir>shard-fs-2</dir>
          </provider>
          <provider id="shard-fs-3" type="file-system">
              <dir>shard-fs-3</dir>
          </provider>
          <provider id="shard-fs-4" type="file-system">
              <dir>shard-fs-4</dir>
          </provider>
          <provider id="shard-fs-5" type="file-system">
              <dir>shard-fs-5</dir>
          </provider>
      </config>
      

        Attachments

          Activity

            People

            • Assignee:
              freds Fred Simon
              Reporter:
              freds Fred Simon
              Assigned QA:
              Dima Nevelev (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: