@@ -5,3 +5,48 @@ run performance tests on different types of cloud storage.
5
5
6
6
Scripts and yamls assume root (sudo) access to hosts as well as administrator
7
7
access to K8s.
8
+
9
+ # Running the tests.
10
+
11
+ Approximate instructions for running tests. Sample scripts show exact commands
12
+ to format storage and run tests.
13
+
14
+ ## Disk test.
15
+ Exec to pod with kubectl exec.
16
+ ```
17
+ mkdir -p /var/lib/clickhouse/kioperf/tools
18
+ cd /var/lib/clickhouse/kioperf/tools
19
+ wget https://github.com/hodgesrm/kioperf/releases/download/v0.0.1-prerelease/kioperf
20
+ chmod +x kioperf
21
+
22
+ mkdir /var/lib/clickhouse/kioperf/test
23
+ ./kioperf disk --operation=write --size 512 \
24
+ --threads=4 --iterations=50 --files=50 \
25
+ --dir-path /var/lib/clickhouse/kioperf/test --csv
26
+ # Does not work on containers! (Caches global to the node)
27
+ sync; echo 1 > /proc/sys/vm/drop_caches
28
+ ./kioperf disk --operation=read \
29
+ --threads=4 --iterations=500 --files=50 \
30
+ --dir-path /var/lib/clickhouse/kioperf --csv
31
+ ```
32
+
33
+ ## S3 test.
34
+
35
+ ```
36
+ ./kioperf s3 --operation=write --size 512 \
37
+ --threads=4 --iterations=50 --files=50 \
38
+ --bucket=rhodges-us-west-2-playground-1 --prefix=kioperf/ \
39
+ --csv
40
+ ./kioperf s3 --operation=read \
41
+ --threads=4 --iterations=500 --files=50 \
42
+ --bucket=rhodges-us-west-2-playground-1 --prefix=kioperf/ \
43
+ --csv
44
+ ```
45
+
46
+ # ClickHouse test
47
+ copy clickbench files.
48
+
49
+ ```
50
+ kubectl -n test cp clickbench_clickhouse.tgz \
51
+ + chi-nvme-ch-0-0-0:/var/lib/clickhouse/kioperf/tools
52
+ ```
0 commit comments