Skip to content

Commit 3b7069b

Browse files
Create README.md
1 parent 247dfa6 commit 3b7069b

File tree

1 file changed

+134
-0
lines changed
  • data-platform/core-converged-db/tooling/run-plan

1 file changed

+134
-0
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# Run plan
2+
3+
This utility has been made to run benchmarks against Autonomous Databases. It could be easily adapted to run against any Oracle Database.
4+
5+
Create a JSON file describing your test plan, and run it against ADB.
6+
7+
A test plan is made of runs and steps.
8+
Each test plan has 1-N runs.
9+
Each run has 1..M steps.
10+
11+
When you run your test plan, each run is executed sequentially. In each run, the steps are run sequentially or in parallel.
12+
For example, consider the following test plan
13+
14+
{
15+
"IDPLAN": "B2-UNIT",
16+
"PlanDesc": "B2 unitary con 4-8 ocpu",
17+
"version": 1.0,
18+
"releaseDate": "2020-10-13T00:00:00.000Z",
19+
"runs":
20+
[
21+
{
22+
"name": "Run1",
23+
"Label": "RUN1",
24+
"ocpu": "4",
25+
"storageTB": "5",
26+
"parallel": "Y",
27+
"steps":
28+
[
29+
{
30+
"name": "ScaleUpAdw",
31+
"type": "SCALE",
32+
"command": "/home/opc/PPL/scale-ADW.sh"
33+
},
34+
{
35+
"name": "CollectAWR",
36+
"type": "AWR",
37+
"command": "/home/opc/PPL/create-AWR-snapshot.sh"
38+
},
39+
{
40+
"name": "step1",
41+
"type": "SH",
42+
"command": "/home/opc/PPL/run.B2.DM_CONFIG0.sh"
43+
},
44+
{
45+
"name": "Waiting",
46+
"type": "WAIT",
47+
"command": "/home/opc/PPL/check-for-completion.sh"
48+
},
49+
{
50+
"name": "CollectAWR",
51+
"type": "AWR",
52+
"command": "/home/opc/PPL/create-AWR-snapshot.sh"
53+
}
54+
]
55+
},
56+
{
57+
"name": "Run2",
58+
"Label": "RUN2",
59+
"ocpu": "8",
60+
"storageTB": "5",
61+
"parallel": "Y",
62+
"steps":
63+
[
64+
{
65+
"name": "ScaleUpAdw",
66+
"type": "SCALE",
67+
"command": "/home/opc/PPL/scale-ADW.sh"
68+
},
69+
{
70+
"name": "CollectAWR",
71+
"type": "AWR",
72+
"command": "/home/opc/PPL/create-AWR-snapshot.sh"
73+
},
74+
{
75+
"name": "step1",
76+
"type": "SH",
77+
"command": "/home/opc/PPL/run.B2.DM_CONFIG0.sh"
78+
},
79+
{
80+
"name": "Waiting",
81+
"type": "WAIT",
82+
"command": "/home/opc/PPL/check-for-completion.sh"
83+
},
84+
{
85+
"name": "CollectAWR",
86+
"type": "AWR",
87+
"command": "/home/opc/PPL/create-AWR-snapshot.sh"
88+
}
89+
]
90+
},
91+
]
92+
}
93+
94+
This plan is named B2-UNIT and has 2 runs:
95+
Run1 will do the following:
96+
Scale ADB to 4 OCPU
97+
Create an AWR snapshot
98+
Execute "/home/opc/PPL/run.B2.DM_CONFIG0.sh"
99+
Wait until completion
100+
Create an AWR snapshot and generate the AWR report
101+
102+
Run2 will do the following:
103+
Scale ADB to 8 OCPU
104+
Create an AWR snapshot
105+
Execute "/home/opc/PPL/run.B2.DM_CONFIG0.sh"
106+
Wait until completion
107+
Create an AWR snapshot and generate the AWR report
108+
109+
At the end of all the runs, a notification will be sent to a topic in OCI. If this topic is associated to anemail address, you'll receive somnething like this:
110+
111+
"As of 20/12/2022-10h19mn02s, plan with ID B1-IB.Consulta88.20221220101727 completed with the following results:
112+
113+
Now starting plan B1-IB.Consulta88 at 20221220101727
114+
Plan description: Consulta88 4 ocpu
115+
116+
/home/opc/PPL/log/B1-IB.Consulta88.20221220101727.RUN1.step1.4.10.ADMIN.log:Elapsed: 00:01:08.30 ("Consulta88")
117+
Now scaling down to 4 ocpu.
118+
No need to scale ...
119+
Plan B1-IB.Consulta88 completed.
120+
121+
Please review file /home/opc/PPL/log/B1-IB.Consulta88.20221220101727.log for detailed information.
122+
123+
Kind regards,"
124+
125+
So this tool enables to automate long test plans and run them unattented.
126+
127+
128+
# License
129+
130+
Copyright (c) 2023 Oracle and/or its affiliates.
131+
132+
Licensed under the Universal Permissive License (UPL), Version 1.0.
133+
134+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/folder-structure/LICENSE) for more details.

0 commit comments

Comments
 (0)