Skip to content

slow_cooker version load test script#56

Open
aasssddd wants to merge 2 commits intoHyperpilotio:masterfrom
aasssddd:slow_cooker-dev
Open

slow_cooker version load test script#56
aasssddd wants to merge 2 commits intoHyperpilotio:masterfrom
aasssddd:slow_cooker-dev

Conversation

@aasssddd
Copy link
Copy Markdown
Contributor

No description provided.

id = uuid.uuid1()
response = requests.post(
url=urljoin(args[0][0],
"/slowcooker/benchmark"),
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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,11 +1,8 @@
{
"userId": "william",
Copy link
Copy Markdown
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