github.com/t2y/goofys@v0.19.1-0.20190123053037-27053313e616/bench/riofs.conf.xml (about) 1 <app> 2 <foreground type="boolean">True</foreground> 3 </app> 4 5 <log> 6 <!-- use syslog for error messages --> 7 <use_syslog type="boolean">False</use_syslog> 8 <use_color type="boolean">False</use_color> 9 10 <!-- log level - LOG_err = 0, LOG_msg = 1, LOG_debug = 2 --> 11 <level type="int">0</level> 12 </log> 13 14 <pool> 15 <!-- number of concurrent connections for each type of operation --> 16 <writers type="int">2</writers> 17 <readers type="int">2</readers> 18 19 <!-- number of concurrent connections for "other" operations, 20 such as directory listing, object deleting, etc --> 21 <operations type="int">4</operations> 22 23 <!-- max requests in pool queue --> 24 <max_requests_per_pool type="uint">100</max_requests_per_pool> 25 </pool> 26 27 <s3> 28 <!-- S3 endpoint, can be set to bucket's region to avoid initial redirect 29 See http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region for options. --> 30 <endpoint type="string">${ENDPOINT}</endpoint> 31 32 <!-- The maximum number of keys returned in the response body. --> 33 <keys_per_request type="uint">1000</keys_per_request> 34 35 <!-- part size for upload / download files (5mb is the minimal value) --> 36 <part_size type="uint">5242880</part_size> 37 38 <!-- compatibility with s3fs: send HEAD request to S3 if file size is 0 to check if it's a directory 39 Greatly increases directory access time. Consider to disable this option. --> 40 <check_empty_files type="boolean">False</check_empty_files> 41 42 <!-- Storage class to use for storing the object. 43 Valid Values: STANDARD | REDUCED_REDUNDANCY 44 Please read S3 documentation before changing this value ! --> 45 <storage_type type="string">STANDARD</storage_type> 46 47 <!-- Use either environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY or configuration file. 48 Uncomment these 2 lines and replace ### strings with your data: --> 49 <!-- 50 <access_key_id type="string">### AWS Access Key ID ###</access_key_id> 51 <secret_access_key type="string">### AWS Secret Access Key ###</secret_access_key> 52 --> 53 </s3> 54 55 <connection> 56 <!-- timeout value for HTTP requests (seconds) --> 57 <timeout type="int">-1</timeout> 58 59 <!-- number of retries, before giving up (-1 for infinite loop) --> 60 <retries type="int">-1</retries> 61 62 <!-- maximum redirects per HTTP request --> 63 <max_redirects type="int">20</max_redirects> 64 65 <!-- maximum retries per HTTP request --> 66 <max_retries type="int">20</max_retries> 67 </connection> 68 69 <filesystem> 70 <!-- set uid / gid of the owners of filesystem, -1 to use the current uid / gid of the calling process. --> 71 <uid type="int">-1</uid> 72 <gid type="int">-1</gid> 73 <!-- set default mode for all files and directories, -1 to use the default value --> 74 <dir_mode type="int">-1</dir_mode> 75 <file_mode type="int">-1</file_mode> 76 77 <!-- time to keep directory cache (seconds) --> 78 <dir_cache_max_time type="uint">1</dir_cache_max_time> 79 80 <!-- time to keep file attributes cache (seconds) --> 81 <file_cache_max_time type="uint">1</file_cache_max_time> 82 83 <!-- set True to enable calculating MD5 sum of file content, increases CPU load --> 84 <md5_enabled type="boolean">False</md5_enabled> 85 86 <!-- set True to enable objects caching --> 87 <cache_enabled type="boolean">True</cache_enabled> 88 89 <!-- directory for storing cache objects --> 90 <cache_dir type="string">/tmp/cache</cache_dir> 91 92 <!-- maximum size of cache directory (1Gb) --> 93 <cache_dir_max_size type="uint">10737418240</cache_dir_max_size> 94 95 <!-- maximum time of cached object, 10 min --> 96 <cache_object_ttl type="uint">600</cache_object_ttl> 97 </filesystem> 98 99 <statistics> 100 <!-- set True to enable statistics server, disabled by default. --> 101 <enabled type="boolean">False</enabled> 102 103 <!-- set host to bind server to, or 0.0.0.0 to bind on all available interfaces --> 104 <host type="string">127.0.0.1</host> 105 <port type="int">8011</port> 106 107 <!-- URI path --> 108 <stats_path type="string">/stats</stats_path> 109 <history_size type="uint">1000</history_size> 110 </statistics>