[Chicago] Thoughts on Virtual Hosting

Aaron Elmquist elmq0022 at umn.edu
Mon Dec 19 10:46:11 EST 2016


Thank you for point out Nginx -> Gunicorn -> Flask  as the standard.  I see
DigitalOcean has a tutorial on this and I'll start there.  Thanks!

On Mon, Dec 19, 2016 at 9:29 AM, Jordan Bettis <jordanb at hafd.org> wrote:

> Apache will work, but these days the "standard" way to setup a wsgi python
> service is to start nginx and use it as a gateway, then have Flask running
> in a pool of wsgi servers like gunicorn. So your setup would look like this:
>
> internet -> nginx (http gateway) port 80/443 -> gunicorn (Flask app)
> listening on a pool of localhost only ports, say 5000-5010.
>
> Nginx then does the load balancing between workers, terminating TLS, etc.
> You can do this with apache too of course, but it's pretty heavy for this
> architecture.
>
>
> On 12/19/2016 09:18 AM, Aaron Elmquist wrote:
>
> Thanks again for all your thoughts on virtual hosting.  I spun up my first
> Ubuntu droplet on DigitalOcean this weekend.  It was super simple.  Also, a
> quick web search for a promo code provided a $15 credit towards the new
> account.
>
> I have final question related to this topic.  What web server should I
> pick for a flask application that will see little traffic, but be
> computational intensive?  I'm guessing Apache just because it has a
> threaded architecture, but that's probably too simplistic.
>
> On Thu, Dec 15, 2016 at 11:21 PM, Lane Campbell <lane at strapr.com> wrote:
>
>> I've been using DO for years and had nothing but positive experiences
>> with their platform.
>>
>> It's also easy to learn their dashboard compared to nearly every other
>> cloud provider out there.
>>
>>
>> Regards,
>> Lane Campbell
>> (312) 775-2632 <%28312%29%20775-2632>
>>
>> On Thu, Dec 15, 2016 at 6:02 PM, Jordan Bettis <jordanb at hafd.org> wrote:
>>
>>> The only bad thing I ever heard about DO is apparently at the beginning
>>> they weren't zeroing the disk between customers and, when caught, were
>>> evasive and defensive. I don't have personal experience with them though
>>> and if that was their only "hiccup" it's pretty mild compared to all the
>>> things that have gone down at linode.
>>>
>>>
>>> On 12/15/2016 03:14 PM, Carl Karsten wrote:
>>>
>>>
>>> On Thu, Dec 15, 2016 at 2:51 PM, Jordan Bettis <jordanb at hafd.org> wrote:
>>>
>>>> I'm a longtime linode user, slowly transitioning away. I would not
>>>> recommend them. They've had an absolutely horrible security track
>>>> record.
>>>>
>>>
>>> Jordan - any thoughts on Digital Ocean?
>>>
>>> Aaron - Ubutu, or really I would say Debian for a server unless you know
>>> you need something else, in which case you would not be asking ;)
>>>
>>> for a little write up on why Ubuntu, look at the bottom for "Which
>>> Distro?"
>>> https://wiki.ubuntu.com/CarlKarsten
>>>
>>> --
>>> Carl K
>>>
>>>
>>>
>>> _______________________________________________
>>> Chicago mailing listChicago at python.orghttps://mail.python.org/mailman/listinfo/chicago
>>>
>>>
>>>
>>> _______________________________________________
>>> Chicago mailing list
>>> Chicago at python.org
>>> https://mail.python.org/mailman/listinfo/chicago
>>>
>>>
>>
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> https://mail.python.org/mailman/listinfo/chicago
>>
>>
>
>
> _______________________________________________
> Chicago mailing listChicago at python.orghttps://mail.python.org/mailman/listinfo/chicago
>
>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20161219/ac727600/attachment.html>


More information about the Chicago mailing list