File: http-s3.fio

package info (click to toggle)
fio 3.41-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,012 kB
  • sloc: ansic: 82,290; python: 9,862; sh: 6,067; makefile: 813; yacc: 204; lex: 184
file content (51 lines) | stat: -rw-r--r-- 1,483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Example test for the HTTP engine's S3 support against Amazon AWS.
# Obviously, you have to adjust the S3 credentials; for this example,
# they're passed in via the environment.
# For non-AWS S3 implementations, refer to your S3 vendor's region 
# settings. Note that the region value appears twice, in http_host and 
# http_s3_region.
# This example uses virtual-hosted-style requests:
# https://bucket-name.s3.region-code.amazonaws.com/k/e.y
# For path-style, prefix the key with the bucket name in the filename
# so that filename=/bucket-name/k/e.y:
# https://s3.region-code.amazonaws.com/bucket-name/k/e.y
#
# IMPORTANT: filename needs to begin with a '/':
# FIO formats the url as `"http://%s%s", o->host, object`, so if 
# filename does not begin with a '/' DNS will fail. For example, if
# http_host=amazonaws.com and filename=k/1, URL will be set to 
# amazonaws.comk/1 and curl will attempt to resolve amazonaws.comk
# which will fail.

# Reference for Virtual-hosted-style vs. Path-style URLs:
# https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html

[global]
ioengine=http
name=test
direct=1
filename=/k/e.y
http_verbose=0
https=on
http_mode=s3
http_s3_key=${S3_KEY}
http_s3_keyid=${S3_ID}
http_host=bucket-name.s3.eu-central-1.amazonaws.com
http_s3_region=eu-central-1
group_reporting

# With verify, this both writes and reads the object
[create]
rw=write
bs=4k
size=64k
io_size=4k
verify=sha256

[trim]
stonewall
rw=trim
bs=4k
size=64k
io_size=4k