File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,23 @@ Setup your AWS credentials to meet your needs. Then run a command similar to the
5959./gradlew :performance-test:compileGatlingJava
6060```
6161
62+ ### Deploying
63+
64+ You can also create an uber-jar that has everything needed to run the Gatling performance tests so that you can
65+ deploy them easily.
66+
67+ ``` shell
68+ ./gradlew :performance-test:assemble
69+ ```
70+
71+ This will create an uber jar in ` performance-test/build/libs ` with the name ` opensearch-data-prepper-performance-test-${VERSION}.jar `
72+
73+ You can run this using a command similar to the following.
74+
75+ ``` shell
76+ java -jar performance-test/build/libs/opensearch-data-prepper-performance-test-2.11.0-SNAPSHOT.jar -s org.opensearch.dataprepper.test.performance.StaticRequestSimulation
77+ ```
78+
6279# Gatling Documentation
6380[ Gatling Quickstart] ( https://gatling.io/docs/gatling/tutorials/quickstart/ )
6481[ Gatling Advanced Simulations] ( https://gatling.io/docs/gatling/tutorials/advanced/ )
Original file line number Diff line number Diff line change 66plugins {
77 id ' java'
88 id ' io.gatling.gradle' version ' 3.10.4'
9+ id ' com.gradleup.shadow' version ' 8.3.6'
910}
1011
1112configurations. all {
@@ -47,6 +48,28 @@ dependencies {
4748 }
4849}
4950
51+ jar {
52+ from(sourceSets. gatling. output)
53+ }
54+
55+ tasks. shadowJar {
56+ archiveBaseName = " ${ project.rootProject.name} -${ project.name} "
57+ archiveClassifier = ' '
58+ archiveVersion = " ${ project.rootProject.version} "
59+ configurations = [project. configurations. gatlingRuntimeClasspath]
60+ manifest {
61+ attributes ' Main-Class' : ' io.gatling.app.Gatling'
62+ }
63+ }
64+
65+ tasks. named(' shadowJar' ). configure {
66+ dependsOn ' jar'
67+ }
68+
69+ tasks. named(' assemble' ). configure {
70+ dependsOn(' shadowJar' )
71+ }
72+
5073test {
5174 useJUnitPlatform()
52- }
75+ }
You can’t perform that action at this time.
0 commit comments