Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Fixing loading to account for Gunicorn's multiple instances #777

Merged
merged 2 commits into from
May 4, 2015

Conversation

geramirez
Copy link
Contributor

Moved logic out of wsgi.py to cf.sh

echo "----- Loading Agency Contacts -----"
python manage.py load_agency_contacts
fi
waitress-serve --port=$VCAP_APP_PORT foia_hub.wsgi:application
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this pull request doesn't just move the data loading and migrations to cf.sh. It also moves us from gunicorn to waitress. It's fine if that's your recommendation, but you should call that out. If we're going to move back to waitress, we're going to need to run a few more load tests and figure out our failover point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@khandelwal Actually, it should be gunicorn. I accidentally left it in after testing.

khandelwal added a commit that referenced this pull request May 4, 2015
Fixing loading to account for Gunicorn's multiple instances
@khandelwal khandelwal merged commit 6325ac2 into master May 4, 2015
@khandelwal khandelwal deleted the updated_loading branch May 4, 2015 12:52
@khandelwal
Copy link
Contributor

Now that this is merged, I'm going to a do a deploy to staging, and check for errors in the logs.

@khandelwal
Copy link
Contributor

This looks good in staging.

@khandelwal
Copy link
Contributor

Also, looks like the 2014 times were updated correctly.

@geramirez
Copy link
Contributor Author

@khandelwal has this been deployed to production?

@khandelwal
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants