forked from SachinNinganure-zz/benchmark-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cr.yaml
70 lines (67 loc) · 2.31 KB
/
cr.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: ripsaw.cloudbulldozer.io/v1alpha1
kind: Benchmark
metadata:
name: pgbench-benchmark
namespace: benchmark-operator
spec:
clustername: myk8scluster
elasticsearch:
url: http://my.elasticsearch.server:80
#test_user: milton
workload:
name: "pgbench"
args:
## Standard pgbench command options. See pgbench(1).
# Note: clients is provided as a list of client counts to iterate through in multiple tests.
# clients must be a multiple of threads, not the other way around.
clients:
- 2
- 4
- 8
threads: 2
# Notes: 'transactions' and 'run_time' are mutually exclusive command flags
# 'transactions' will supersede 'run_time'
# 'run_time' is defined in seconds
transactions: 10
run_time:
scaling_factor: 1
# String of other pgbench benchmark command flags not defined above
# to pass to the benchmark clients
cmd_flags: ''
# String of other pgbench init command flags to pass to the pgbench clients
init_cmd_flags: ''
## Ripsaw-specific options
samples: 1
# TODO: test_sequential not yet implemented; all tests are currently parallel
# Tests of multiple databases will be done in parallel unless
# test_sequential is set to True
#test_sequential: False
# num_databases_pattern takes a pattern definition, one of:
# 'add1' (1,2,3,...), 'add2' (2,4,6,...), 'log2' (1,2,4,8,...), or 'all'
# The default if left blank or undefined is 'all'
num_databases_pattern: 'all'
## List of databases to test
# Note: 'databases' below is a list structures to identify multiple
# databases against which benchmarks tests will be run
databases:
- host: # hostname or IP
user:
# FIXME: Get passwords other than by plain text here
password:
db_name:
# port will default to 5432 if left blank or undefined
port:
# pin_node is an optional kubernetes hostname to which the pgbench pod will be pinned
pin_node:
#- host:
# user:
# password:
# db_name:
# port:
# pin_node:
#- host:
# user:
# password:
# db_name:
# port:
# pin_node: