-
Notifications
You must be signed in to change notification settings - Fork 2
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
wsgi tuning setup config #1947
wsgi tuning setup config #1947
Conversation
I will say the only reason the locustfile.py is here right now is so locust starts (you need a valid user). Don't worry about the test passing, not, etc - just make sure you can load it and stuff happens when you hit the button :) We'll critique the test itself in the last PR |
@@ -126,3 +126,4 @@ celerybeat-schedule | |||
docker-compose.*.yml | |||
|
|||
.python-version | |||
/locustfile.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just so that when we DO add locustfiles, they don't accidentally go to prod - locust won't run without one, so we won't accidentally... ddos production somehow?
@@ -0,0 +1,92 @@ | |||
import logging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again - we're not looking at this with heavy scrutiny yet (or ever really - adjust this to your needs - this is just what I'm using this time around). But feel free to take a look and check out the output as things run (yes, 2 endpoints are angry and I'm still deciding what to do about it)
It seems a very user-friendly guide. I gave it a quick peek. Here's a few points I thought:
I know that the testing instructions are still in progress, but I thought these stuff might be helpful to consider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to follow the instruction in the RST file and set it up successfully. 👍
What are the relevant tickets?
Updates #1682
Description (What does it do?)
Installs uwsgitop which we'll need on rc to run this
has instructions and an example file to set up locust locally which will be used to generate both local and RC traffic
How can this be tested?
Using the information provided, get locust running and sending requests to your local application and rc - if you can use this to set it up, I've done my job.
Additional Context
This is essentially this: mitodl/ocw-studio#1898 with a little more information around the locust setup