Using New Relic and Heroku see how many things you can find and fix to make this app perform fast!
Get the code. The code is waiting to be forked on github
Create a virtualenv and install the dependencies.
cd newrelic-python-kata
python virtualenv.py venv
source venv/bin/activate
pip install -r requirements.txt
Install Newrelic agent.
pip install newrelic
newrelic-admin generate-config <license-key> newrelic.ini
Open the newrelic.ini file for editing. Set the "transaction_tracer.transaction_threshold" to 0.2
Set the NEW_RELIC_CONFIG_FILE environment variable.
export NEW_RELIC_CONFIG_FILE=newrelic.ini
Initialize the database.
python initialize_db.py
Start the app.
newrelic-admin run-python manage.py run_gunicorn
Fix the code / Solve as many of the Katas as you can.
-
Access the application http://localhost:8000
-
Generate traffic a.k.a. click around.
-
Discover a slow page.
-
Investigate the problem.
-
Resolve with code changes.
-
Restart application.
Repeat...
Let us know how you did, what you liked or disliked, what helped you find problems or what were the challenges, what you like about New Relic and what you don't - we just want to hear from you and see what we can do to get better. We'll even send you something for demonstrating your geek super powers when you complete the Kata - just provide us with your thoughts and a link to your forked repo.