Skip to content

Commit 2669156

Browse files
kayvontadjKayvon Tadj
andauthored
PostgreSQL HammerDB Redesign (#295)
* updated PostgreSQLServerInstallation * relocated files * added new directories for sql redesign. added unit tests for postgresql * updated PostgreSQLServerInstallationUnitTests to reflect redesign * updated PostgreSQL installation and configuration and starting to write unit tests for both * created PostgresSQLServerAlterPassword component * added HammerDBConfiguration * created HammerDBExecutor * added HammerDB Client Executor * added HammerDB Server Executor * Updated HammerDBConfiguration * Updated PostgreSQLServerInstallation * created HammerDBMetricsParser * deleted unnecessary file * introduced password generation * updated HammerDB Executors * updated unit tests for PostgreSQL * updated actions project to include hammerdb executor. updated hammerdbclientexecutor to align python script names * update python script name * merged alter password into configuration * updated server configuration * completed server configuration tests - all passed * created HammerDB unit tests directory and initiated files * edited files to fix build issues * fixed null ref error for state manager. unit tests pass * wrote all tests and added example .txt output files * created hammer db postgresql profile * created postgresql hammerdb tpcc profile * ad functional tests and profile * updated postgres hammerdb profile and functional tests * updated tests * updated functional tests and made code changes to support * all tests passing * all done? * made updates to fix bugs * change package name * grab platform specific package for hammerdb * change order of dependencies - create db THEN distribute * finished linux support of hammerdb tpcc postgres * fixed indentation in prfile * removed do-nothing setup method in test * iterated vc version * hammer db distributes across disks * updated formulas * iterated vc version * updated tests * updated to fix calculations * removed old postgresql * HammerDBClientExecutor unit tests passing * hammerdbserver executor test is passing * fixed postgresql configuration tests --------- Signed-off-by: kayvontadj <[email protected]> Co-authored-by: Kayvon Tadj <[email protected]>
1 parent 2ae4ce3 commit 2669156

36 files changed

+2649
-3639
lines changed

.pipelines/azure-pipelines-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resources:
1616
options: --entrypoint=""
1717

1818
variables:
19-
VcVersion : 1.14.18
19+
VcVersion : 1.14.19
2020
ROOT: $(Build.SourcesDirectory)
2121
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
2222
ENABLE_PRS_DELAYSIGN: 1

.pipelines/azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pool:
1818
vmImage: windows-latest
1919

2020
variables:
21-
VcVersion : 1.14.18
21+
VcVersion : 1.14.19
2222
ROOT: $(Build.SourcesDirectory)
2323
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
2424
ENABLE_PRS_DELAYSIGN: 1
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
HammerDB CLI v4.5
2+
Copyright (C) 2003-2022 Steve Shaw
3+
Type "help" for a list of commands
4+
SETTING CONFIGURATION
5+
Database set to PostgreSQL
6+
Benchmark set to TPC-C for PostgreSQL
7+
Error: Invalid number of arguments
8+
Usage: diset dict key value
9+
Type "print dict" for valid dictionaries and keys for PostgreSQL
10+
Value 5432 for connection:pg_port is the same as existing value 5432, no change made
11+
Value postgres for tpcc:pg_superuser is the same as existing value postgres, no change made
12+
Value postgres for tpcc:pg_superuserpass is the same as existing value postgres, no change made
13+
Value postgres for tpcc:pg_defaultdbase is the same as existing value postgres, no change made
14+
Value nmalkapuramuser for tpcc:pg_user is the same as existing value nmalkapuramuser, no change made
15+
Value 1234 for tpcc:pg_pass is the same as existing value 1234, no change made
16+
Value tpcc for tpcc:pg_dbase is the same as existing value tpcc, no change made
17+
Value timed for tpcc:pg_driver is the same as existing value timed, no change made
18+
Changed tpcc:pg_duration from 5 to 2 for PostgreSQL
19+
Changed tpcc:pg_duration from 2 to 5 for PostgreSQL
20+
Value true for tpcc:pg_vacuum is the same as existing value true, no change made
21+
Dictionary Settings for PostgreSQL
22+
connection {
23+
pg_host = localhost
24+
pg_port = 5432
25+
pg_sslmode = prefer
26+
}
27+
tpcc {
28+
pg_count_ware = 1
29+
pg_num_vu = 1
30+
pg_superuser = postgres
31+
pg_superuserpass = postgres
32+
pg_defaultdbase = postgres
33+
pg_user = nmalkapuramuser
34+
pg_pass = 1234
35+
pg_dbase = tpcc
36+
pg_tspace = pg_default
37+
pg_vacuum = true
38+
pg_dritasnap = false
39+
pg_oracompat = false
40+
pg_cituscompat = false
41+
pg_storedprocs = false
42+
pg_partition = false
43+
pg_total_iterations = 10000000
44+
pg_raiseerror = false
45+
pg_keyandthink = false
46+
pg_driver = timed
47+
pg_rampup = 2
48+
pg_duration = 5
49+
pg_allwarehouse = false
50+
pg_timeprofile = false
51+
pg_async_scale = false
52+
pg_async_client = 10
53+
pg_async_verbose = false
54+
pg_async_delay = 1000
55+
pg_connect_pool = false
56+
}
57+
Script loaded, Type "print script" to view
58+
SEQUENCE STARTED
59+
1 VU TEST
60+
Vuser 1 created MONITOR - WAIT IDLE
61+
Vuser 2 created - WAIT IDLE
62+
Logging activated
63+
to /tmp/hammerdb.log
64+
2 Virtual Users Created with Monitor VU
65+
Vuser 1:RUNNING
66+
Vuser 1:Beginning rampup time of 2 minutes
67+
Vuser 2:RUNNING
68+
Vuser 2:Processing 10000000 transactions with output suppressed...
69+
Vuser 1:Rampup 1 minutes complete ...
70+
Timer: 1 minutes elapsed
71+
Vuser 1:Rampup 2 minutes complete ...
72+
Timer: 2 minutes elapsed
73+
Vuser 1:Rampup complete, Taking start Transaction Count.
74+
Vuser 1:Timing test period of 5 in minutes
75+
Timer: 3 minutes elapsed
76+
Vuser 1:1 ...,
77+
Timer: 4 minutes elapsed
78+
Vuser 1:2 ...,
79+
Timer: 5 minutes elapsed
80+
Vuser 1:3 ...,
81+
Timer: 6 minutes elapsed
82+
Vuser 1:4 ...,
83+
Timer: 7 minutes elapsed
84+
Vuser 1:5 ...,
85+
Vuser 1:Test complete, Taking end Transaction Count.
86+
Vuser 1:1 Active Virtual Users configured
87+
Vuser 1:TEST RESULT : System achieved 11400 NOPM from 26163 PostgreSQL TPM
88+
Vuser 1:Checkpoint and Vacuum
89+
Vuser 2:FINISHED SUCCESS
90+
Vuser 1:Checkpoint and Vacuum Complete
91+
Vuser 1:FINISHED SUCCESS
92+
ALL VIRTUAL USERS COMPLETE
93+
vudestroy success
94+
TEST SEQUENCE COMPLETE

0 commit comments

Comments
 (0)