Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Locust testing scripts and configurations #50

Merged
merged 7 commits into from
Dec 2, 2024
Merged

Conversation

milank94
Copy link
Contributor

Adding scripts to run Locust server load testing. The purpose of the Locust tests is to provide detailed server metrics such as Requests Per Second (RPS).

# Set test parameters
network_timeout = NETWORK_TIMEOUT
connection_timeout = CONNECTION_TIMEOUT
headers = {"Authorization": get_authorization()}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
headers = {"Authorization": get_authorization()}
headers = {"Authorization": f"Bearer {get_authorization()}"}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With adding "Bearer " to the Auth header locust tests ran fine with JWT auth turned on for me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Copy link
Contributor

@tstescoTT tstescoTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After adding the Auth header change the locust tests are running as expected. Tested with tests/mock_vllm_api_server.py. Approved on condition we add that minor fix.

@milank94 milank94 merged commit 8054abb into main Dec 2, 2024
1 check passed
@milank94 milank94 deleted the mkordic/locust branch December 2, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants