-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Tenzo/feature/performance-tools
Feature/performance tools
- Loading branch information
Showing
7 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Configure id="Server" class="org.eclipse.jetty.server.Server"> | ||
|
||
<!-- =========================================================== --> | ||
<!-- Configure the Server Thread Pool. --> | ||
<!-- --> | ||
<!-- Consult the javadoc of o.e.j.util.thread.QueuedThreadPool --> | ||
<!-- for all configuration that may be set here. --> | ||
<!-- =========================================================== --> | ||
<Get name="ThreadPool"> | ||
<Set name="minThreads" type="int">10</Set> | ||
<Set name="maxThreads" type="int">200</Set> | ||
<Set name="idleTimeout" type="int">60000</Set> | ||
<Set name="detailedDump">false</Set> | ||
</Get> | ||
</Configure> | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
java -jar jetty-runner-9.1.0.M0.jar --port 8081 ../build/libs/restBalancer-0.1.war | ||
java -jar jetty9.3.jar --port 8081 --config jetty-config.xml ../build/libs/restBalancer-0.1.war |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
To run performance test install locoust: | ||
|
||
# pip install locustio | ||
|
||
and run (in directory containing locustfile.py): | ||
|
||
# locust --host=http://hostname:port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from locust import HttpLocust, TaskSet, task | ||
|
||
class GetGroup(TaskSet): | ||
|
||
@task | ||
def group(self): | ||
for i in range(1000000): | ||
self.client.get("/group?userId=user%i" % i, name="/group?userId=[userId]") | ||
|
||
class WebsiteUser(HttpLocust): | ||
task_set = GetGroup | ||
min_wait=5000 | ||
max_wait=9000 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters