forked from CARV-ICS-FORTH/frisbee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
8.scaledown-stop.yml
61 lines (52 loc) · 1.49 KB
/
8.scaledown-stop.yml
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
---
apiVersion: frisbee.io/v1alpha1
kind: TestPlan
metadata:
name: cockroach-scaledown-stop
spec:
actions:
# Step 0. Create individual cockroach servers
- action: Cluster
name: masters
cluster:
templateRef: cockroach.cluster.master
instances: 3
inputs:
- { join: "masters-0:26257,masters-1:26257,masters-2:26257" }
# Step 1. Create a cockroach cluster from the individual servers
- action: Call
name: boot
depends: { running: [ masters ] }
call:
callable: boot
services: [ masters-0 ]
# Step 2. Hammer the server with requests
- action: Service
depends: { success: [ boot ] }
name: loader
service:
templateRef: ycsb.cockroach.loader
inputs:
- { server: .cluster.masters.one , workload: workloada, recordcount: "100000000", threads: "4", delay: "15" }
# Periodically add new servers
- action: Cluster
name: more-servers
depends: { running: [ loader ] }
cluster:
templateRef: cockroach.cluster.master
instances: 10
inputs:
- { join: "masters-0:26257" }
# When all servers are up and running, stop some of them
- action: Call
name: stop-servers
depends: { running: [ more-servers ] }
call:
callable: "drain"
services:
- more-servers-2
- more-servers-5
- more-servers-8
- masters-2
schedule:
cron: "@every 1m"