S3 imporved Config

<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Artifactory is a binaries repository manager.
  ~ Copyright (C) 2016 JFrog Ltd.
  ~
  ~ Artifactory is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU Affero General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Artifactory is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU Affero General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Affero General Public License
  ~ along with Artifactory.  If not, see <http://www.gnu.org/licenses/>.
  -->
<!--
    This file configures Artifactory's binary provider
-->

<!--
  ~ TAKE CARE! Making changes to this file may result in losing binaries stored in Artifactory!
  ~ If you are not sure of what you are doing, please contact JFrog Support for assistance.
  -->

<config  version="v1">
<chain>                             //This filestore is based on the S3 default chain based on jets3t
   <provider id="cache-fs" type="cache-fs">       //It first tries to read from the cache
       <provider id="eventual" type="eventual">   //It is eventually persistent so writes are also written directly to persistent storage
           <provider id="retry" type="retry">     // If a read or write fails, retry
               <provider id="s3" type="s3"/>      // Actual storage is S3
           </provider>
       </provider>
   </provider>
</chain>

<provider id="cache-fs" type="cache-fs">
    <maxCacheSize>10000000000</maxCacheSize>    // The maximum size of the cache in bytes
    <cacheProviderDir>cache</cacheProviderDir>  // The cache
</provider>

<provider id="eventual" type="eventual">
    <numberOfThreads>20</numberOfThreads>       // The maximum number of threads for parallel upload of files
</provider>

<provider id="retry" type="retry">
    <maxTrys>10</maxTrys>                       // Try any read or write a maximum of 10 times
</provider>

    <provider id="s3" type="s3">
        <roleName>tools-engineering-admin</roleName>
        <endpoint>s3.amazonaws.com</endpoint>                  // Credentials and endpoint for your Amazon S3 storage
        <bucketName>artifactory-s312</bucketName>
        <refreshCredentials>true</refreshCredentials>
    </provider>

</config>

Comments

Popular posts from this blog

S3 Configuration - With Artifactory