generated from google/new-project
-
Notifications
You must be signed in to change notification settings - Fork 11
/
example_gcsb.yaml
94 lines (85 loc) · 3.43 KB
/
example_gcsb.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# GCP Project ID
project: YOUR_PROJECT_ID
# Spanner Instance ID
instance: YOUR_SPANNER_INSTANCE_ID
# Spanner Database Name
database: YOUR_SPANNER_DATABASE
# Number of threads (goroutines) used to generate load
threads: 50
# Number of GCP connections to establish to spanner
num_conns: 30
# Spanner Connection Pool Settings
pool:
# MaxOpened is the maximum number of opened sessions allowed by the session pool
max_opened: 1000
# MinOpened is the minimum number of opened sessions that the session pool tries to maintain
min_opened: 100
# MaxIdle is the maximum number of idle sessions that are allowed in the session pool
max_idle: 0
# WriteSessions is the fraction of sessions we try to keep prepared for write
write_sessions: 0.2
# HealthCheckWorkers is number of workers used by health checker for this pool
healthcheck_workers: 10
# HealthCheckInterval is how often the health checker pings a session
# Values such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
healthcheck_interval: 50m
# TrackSessionHandles determines whether the session pool will keep track
# of the stacktrace of the goroutines that take sessions from the pool
track_session_handles: false
# Maximum execution time. If set, we will run until we hit operation count, or this time limit. Whichever comes first.
# Values such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
# NOT CURRENTLY SUPPORTED
max_execution_time: 1h
operations:
# Total number of operations
total: 5000
# Read operation weight
read: 100
# Write operation weight
write: 0
# The percentage of rows to sample for generating read operations
sample_size: 10
# Perform stale read operations. Default: false (meaning perform strong reads)
read_stale: false
# If read_stale is true, use exact staleness time duration for read operations
# See: https://cloud.google.com/spanner/docs/reads#perform-stale-read
# Values such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
staleness: 15s
# If a table has a composite primary key [Example: (UserID, FirstName)], we will generate point reads
# for both columns making up the key. When this value is 'true', we will only generate values for the
# first column of the key.
# # NOT CURRENTLY SUPPORTED
partial_keys: true
# If table exists, we will detect the column types of the table and use DEFAULT data generators
# Here is where you can override those generators
tables:
- name: SingleSingers
columns:
- name: SingerId
generator:
type: UUID_V4
- name: FirstName
generator:
length: 10
range:
begin: AAA
end: ZZZ
- name: LastName
generator:
length: 10
- name: ByteField
generator:
length: 10