Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
W
workload-API
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mowgli
workload-API
Commits
3af84e43
Commit
3af84e43
authored
Mar 03, 2020
by
Daniel Seybold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more fixes for tpc-c
parent
2ccc2b48
Pipeline
#74065
passed with stage
in 14 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
src/main/java/de/uulm/omi/dbms/workload/api/impl/WorkloadApiServiceImpl.java
...lm/omi/dbms/workload/api/impl/WorkloadApiServiceImpl.java
+8
-2
src/main/java/de/uulm/omi/workload/tpcc/TPCCCommandBuilder.java
...in/java/de/uulm/omi/workload/tpcc/TPCCCommandBuilder.java
+10
-6
No files found.
src/main/java/de/uulm/omi/dbms/workload/api/impl/WorkloadApiServiceImpl.java
View file @
3af84e43
...
...
@@ -119,6 +119,10 @@ public class WorkloadApiServiceImpl extends WorkloadApiService {
properties
.
getProperty
(
WorkloadApiProperties
.
WORKLOAD_RESULTS_FOLDER
)
+
TPCC_RESULT_FOLDER
+
taskId
+
".txt"
;
WorkloadProcessInstance
workloadProcessInstance
=
new
WorkloadProcessInstance
();
/*
//TODO: use this code for the future with an explicit init phase
//Init the workload
Long workloadTimestamp = System.currentTimeMillis();
...
...
@@ -131,7 +135,7 @@ public class WorkloadApiServiceImpl extends WorkloadApiService {
workloadTimestamp);
WorkloadProcessInstance
workloadProcessInstance
=
new
WorkloadProcessInstance
();
workloadProcessInstance.setTimestamp(BigDecimal.valueOf(workloadProcess.getStartTimestamp()));
workloadProcessInstance.setProcessId(workloadProcess.getProcessId());
...
...
@@ -165,8 +169,10 @@ public class WorkloadApiServiceImpl extends WorkloadApiService {
LOGGER.debug("TPC-C init finished, now starting the TPC-C execution!");
*/
//Run the workload
workloadTimestamp
=
System
.
currentTimeMillis
();
Long
workloadTimestamp
=
System
.
currentTimeMillis
();
String
startCommand
=
""
;
startCommand
=
TPCCCommandBuilder
.
buildStartCommand
(
workload
.
getTpccWorkloadConfig
(),
workload
.
getDbEndpoints
(),
TPCC_BINARY
);
...
...
src/main/java/de/uulm/omi/workload/tpcc/TPCCCommandBuilder.java
View file @
3af84e43
...
...
@@ -66,12 +66,10 @@ public class TPCCCommandBuilder {
workloadCommand
+=
" --histograms \""
+
workload
.
getHistogram
()
+
".txt\" "
;
}
//TODO: remove as this is deprecated
/*
//TODO: remove for the future as it will not be supported for CockroachDB 2.0
if
(
workload
.
isInit
()){
workloadCommand
+=
" --init "
;
}
*/
if
(
workload
.
isInterleaved
()){
...
...
@@ -122,10 +120,14 @@ public class TPCCCommandBuilder {
workloadCommand
+=
" --tolerate-errors "
;
}
//TODO: needs to be changed to expect a number!
/*
if (workload.isWait()){
workloadCommand += " --wait ";
}
*/
if
(
workload
.
getWarehouses
().
intValue
()
>
0
){
workloadCommand
+=
" --warehouses "
+
workload
.
getWarehouses
().
intValue
();
}
...
...
@@ -145,7 +147,7 @@ public class TPCCCommandBuilder {
String
connectionUrl
;
StringJoiner
dbmsEndpoints
=
new
StringJoiner
(
"
,
"
);
StringJoiner
dbmsEndpoints
=
new
StringJoiner
(
"
"
);
for
(
DBEndpoint
endpoint
:
dbEndpoints
){
String
postgresEndpoint
;
...
...
@@ -156,10 +158,12 @@ public class TPCCCommandBuilder {
postgresEndpoint
=
endpoint
.
getIpAddress
()
+
":26257"
;
}
dbmsEndpoints
.
add
(
postgresEndpoint
);
String
postgresUrl
=
"\"postgresql://"
+
postgresEndpoint
+
"?sslmode=disable\""
;
dbmsEndpoints
.
add
(
postgresUrl
);
}
connectionUrl
=
"
\"postgresql://"
+
dbmsEndpoints
.
toString
()
+
"?sslmode=disable\""
;
connectionUrl
=
"
"
+
dbmsEndpoints
.
toString
()
;
LOGGER
.
debug
(
"DBMS connection URL for TPC-C is: "
+
connectionUrl
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment