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

slow_cooker version load test script #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

slow_cooker version load test script #56

wants to merge 2 commits into from

Conversation

aasssddd
Copy link
Contributor

No description provided.

id = uuid.uuid1()
response = requests.post(
url=urljoin(args[0][0],
"/slowcooker/benchmark"),
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we can let slow cooker support sending multiple scenarios, and allow slow_cooker to choose internally how each scenario should be ran and with what weight?

url=urljoin(args[0][0],
"/slowcooker/benchmark"),
json={
"runId": id.__str__(),
Copy link
Contributor

Choose a reason for hiding this comment

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

runId is now part of the URL instead

@@ -0,0 +1,198 @@
"""Slow cooker load testing."""
Copy link
Contributor

Choose a reason for hiding this comment

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

How is this file being used with the demo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i wrap this file into Docker, and it can launch by tech-demo-ui (i've send a PR to tech-demo-ui).
or run locally by this command:
python slow_cooker.py -c hi_lo_config.json --slow-cooker-host http://<endpoint.elb.aws.slow-cooker>:<port> --host http://<endpoint.goddd.k8s.dn>:<port>

Copy link
Contributor

Choose a reason for hiding this comment

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

Where can we find this docker image? Can you add the Dockerfile into the images folder in tech-demo?

…w_cooker.py, change image repo in deploy-k8s.json

extract slow-cooker-host and target-host to command argument

move slow_cooker benchmark id to path parameter
@@ -1,12 +1,9 @@
{
"userId": "william",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this field.

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.

3 participants