increased replicas
This commit is contained in:
BIN
stress-test/__pycache__/locustfile.cpython-313.pyc
Normal file
BIN
stress-test/__pycache__/locustfile.cpython-313.pyc
Normal file
Binary file not shown.
16
stress-test/locustfile.py
Normal file
16
stress-test/locustfile.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
from locust import HttpUser, task, between
|
||||||
|
|
||||||
|
class MojServisUser(HttpUser):
|
||||||
|
wait_time = between(1, 3)
|
||||||
|
|
||||||
|
def on_start(self):
|
||||||
|
# ignoriraj SSL probleme
|
||||||
|
self.client.verify = False
|
||||||
|
|
||||||
|
@task(10)
|
||||||
|
def root(self):
|
||||||
|
self.client.get("/")
|
||||||
|
|
||||||
|
@task(5)
|
||||||
|
def health(self):
|
||||||
|
self.client.get("/health")
|
||||||
Reference in New Issue
Block a user