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
2ccc2b48
Commit
2ccc2b48
authored
Mar 03, 2020
by
Daniel Seybold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed Dockerfile and command building for TPC-C
parent
14c74c39
Pipeline
#74063
passed with stage
in 14 minutes and 43 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
Dockerfile
Dockerfile
+1
-5
src/main/java/de/uulm/omi/dbms/workload/api/impl/WorkloadApiServiceImpl.java
...lm/omi/dbms/workload/api/impl/WorkloadApiServiceImpl.java
+1
-0
src/main/java/de/uulm/omi/workload/tpcc/TPCCCommandBuilder.java
...in/java/de/uulm/omi/workload/tpcc/TPCCCommandBuilder.java
+7
-5
No files found.
Dockerfile
View file @
2ccc2b48
...
@@ -53,11 +53,7 @@ ADD lib/ycsb_0.15/jdbc-binding/jdbc-binding-0.15.0.jar /opt/workloads/ycsb/jdbc-
...
@@ -53,11 +53,7 @@ ADD lib/ycsb_0.15/jdbc-binding/jdbc-binding-0.15.0.jar /opt/workloads/ycsb/jdbc-
###### CockroachDB loadgen for TPC-C ######
###### CockroachDB loadgen for TPC-C ######
# downlaod cockroachdb loadgen
# downlaod cockroachdb loadgen
RUN
mkdir
/opt/workloads/cockroach/
RUN
mkdir
/opt/workloads/cockroach/
RUN
cd
/opt/workloads/cockroach
RUN
cd
/opt/workloads/cockroach
;
wget https://binaries.cockroachdb.com/cockroach-v19.2.4.linux-amd64.tgz
;
tar
fxvz cockroach-v19.2.4.linux-amd64.tgz
;
mv
cockroach-v19.2.4.linux-amd64 binary
;
rm
cockroach-v19.2.4.linux-amd64.tgz
RUN
wget https://binaries.cockroachdb.com/cockroach-v19.2.4.linux-amd64.tgz
RUN
tar
fxvz cockroach-v19.2.4.linux-amd64.tgz
RUN
mv
cockroach-v19.2.4.linux-amd64 binary
RUN
rm
cockroach-v19.2.4.linux-amd64.tgz
###### TSBS by Timescale ######
###### TSBS by Timescale ######
...
...
src/main/java/de/uulm/omi/dbms/workload/api/impl/WorkloadApiServiceImpl.java
View file @
2ccc2b48
...
@@ -43,6 +43,7 @@ public class WorkloadApiServiceImpl extends WorkloadApiService {
...
@@ -43,6 +43,7 @@ public class WorkloadApiServiceImpl extends WorkloadApiService {
private
final
String
TPCC_RESULT_FOLDER
=
"TPCC/"
;
private
final
String
TPCC_RESULT_FOLDER
=
"TPCC/"
;
private
static
final
String
TPCC_BINARY
=
"./cockroach"
;
private
static
final
String
TPCC_BINARY
=
"./cockroach"
;
//TSBS constants
//TSBS constants
private
final
String
TSBS_RESULT_FOLDER
=
"/tmp/"
;
// TODO CHANGE
private
final
String
TSBS_RESULT_FOLDER
=
"/tmp/"
;
// TODO CHANGE
private
static
final
String
TSBS_BINARY
=
"/opt/workloads/tsbs/bin/"
;
private
static
final
String
TSBS_BINARY
=
"/opt/workloads/tsbs/bin/"
;
...
...
src/main/java/de/uulm/omi/workload/tpcc/TPCCCommandBuilder.java
View file @
2ccc2b48
...
@@ -66,9 +66,13 @@ public class TPCCCommandBuilder {
...
@@ -66,9 +66,13 @@ public class TPCCCommandBuilder {
workloadCommand
+=
" --histograms \""
+
workload
.
getHistogram
()
+
".txt\" "
;
workloadCommand
+=
" --histograms \""
+
workload
.
getHistogram
()
+
".txt\" "
;
}
}
//TODO: remove as this is deprecated
/*
if (workload.isInit()){
if (workload.isInit()){
workloadCommand += " --init ";
workloadCommand += " --init ";
}
}
*/
if
(
workload
.
isInterleaved
()){
if
(
workload
.
isInterleaved
()){
workloadCommand
+=
" --interleaved "
;
workloadCommand
+=
" --interleaved "
;
...
@@ -141,7 +145,7 @@ public class TPCCCommandBuilder {
...
@@ -141,7 +145,7 @@ public class TPCCCommandBuilder {
String
connectionUrl
;
String
connectionUrl
;
StringJoiner
dbmsEndpoints
=
new
StringJoiner
(
"
"
);
StringJoiner
dbmsEndpoints
=
new
StringJoiner
(
"
,
"
);
for
(
DBEndpoint
endpoint
:
dbEndpoints
){
for
(
DBEndpoint
endpoint
:
dbEndpoints
){
String
postgresEndpoint
;
String
postgresEndpoint
;
...
@@ -152,12 +156,10 @@ public class TPCCCommandBuilder {
...
@@ -152,12 +156,10 @@ public class TPCCCommandBuilder {
postgresEndpoint
=
endpoint
.
getIpAddress
()
+
":26257"
;
postgresEndpoint
=
endpoint
.
getIpAddress
()
+
":26257"
;
}
}
String
postgresUrl
=
"\"postgresql://"
+
postgresEndpoint
+
"?sslmode=disable\""
;
dbmsEndpoints
.
add
(
postgresEndpoint
);
dbmsEndpoints
.
add
(
postgresUrl
);
}
}
connectionUrl
=
"
"
+
dbmsEndpoints
.
toString
()
;
connectionUrl
=
"
\"postgresql://"
+
dbmsEndpoints
.
toString
()
+
"?sslmode=disable\""
;
LOGGER
.
debug
(
"DBMS connection URL for TPC-C is: "
+
connectionUrl
);
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