forked from phoenix/litellm-mirror
fix - load test
This commit is contained in:
parent
0ae6b337a3
commit
0b3c21b114
2 changed files with 3 additions and 15 deletions
6
.github/workflows/load_test.yml
vendored
6
.github/workflows/load_test.yml
vendored
|
@ -27,9 +27,9 @@ jobs:
|
||||||
uses: BerriAI/locust-github-action@master
|
uses: BerriAI/locust-github-action@master
|
||||||
with:
|
with:
|
||||||
LOCUSTFILE: ".github/workflows/locustfile.py"
|
LOCUSTFILE: ".github/workflows/locustfile.py"
|
||||||
URL: "https://litellm-database-docker-build-production.up.railway.app/"
|
URL: "https://post-release-load-test-proxy.onrender.com/"
|
||||||
USERS: "100"
|
USERS: "20"
|
||||||
RATE: "10"
|
RATE: "20"
|
||||||
RUNTIME: "300s"
|
RUNTIME: "300s"
|
||||||
- name: Process Load Test Stats
|
- name: Process Load Test Stats
|
||||||
run: |
|
run: |
|
||||||
|
|
12
.github/workflows/locustfile.py
vendored
12
.github/workflows/locustfile.py
vendored
|
@ -28,15 +28,3 @@ class MyUser(HttpUser):
|
||||||
response = self.client.post("chat/completions", json=payload, headers=headers)
|
response = self.client.post("chat/completions", json=payload, headers=headers)
|
||||||
|
|
||||||
# Print or log the response if needed
|
# Print or log the response if needed
|
||||||
|
|
||||||
@task(10)
|
|
||||||
def health_readiness(self):
|
|
||||||
start_time = time.time()
|
|
||||||
response = self.client.get("health/readiness")
|
|
||||||
response_time = time.time() - start_time
|
|
||||||
|
|
||||||
@task(10)
|
|
||||||
def health_liveliness(self):
|
|
||||||
start_time = time.time()
|
|
||||||
response = self.client.get("health/liveliness")
|
|
||||||
response_time = time.time() - start_time
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue