Found it - the server name was wrong in the Flask config.

> On 12 Nov 2014, at 12:00, [email protected] wrote:
> 
> Send uWSGI mailing list submissions to
>       [email protected]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
> or, via email, send a message with subject or body 'help' to
>       [email protected]
> 
> You can reach the person managing the list at
>       [email protected]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of uWSGI digest..."
> 
> 
> Today's Topics:
> 
>   1. Server can't see app and I can't figure out why (Rui Pacheco)
>   2. Re: Server can't see app and I can't figure out why
>      (Damjan Georgievski)
>   3. Monitoring utilization of uwsgi workers (George Necula)
>   4. Re: Monitoring utilization of uwsgi workers (Dincer Kavraal)
>   5. Memory leak when streaming in psgi (uwsgi 2.0.8)
>      ([email protected])
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 11 Nov 2014 15:34:47 +0100
> From: Rui Pacheco <[email protected]>
> To: [email protected]
> Subject: [uWSGI] Server can't see app and I can't figure out why
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=utf-8
> 
> I have a Flask app running behind uwsgi 2.0.8. Startup logs seem to be ok 
> except for a problem: whenever I hit a URI on my app I always get a 404. I 
> can see in the uwsgi logs that 0 bytes were returned and on the nginx logs 
> that the URI was not found. To confuse things further, this happens in my 
> test server but not my production server.
> 
> What?s the best way to debug this?
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 11 Nov 2014 15:58:07 +0100
> From: Damjan Georgievski <[email protected]>
> To: uWSGI developers and users list <[email protected]>
> Subject: Re: [uWSGI] Server can't see app and I can't figure out why
> Message-ID:
>       <caek1yh7vc5_o_vqbrd3itdqxddomqf56zgvqvo4znzjbdrn...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> On 11 November 2014 15:34, Rui Pacheco <[email protected]> wrote:
>> I have a Flask app running behind uwsgi 2.0.8. Startup logs seem to be ok 
>> except for a problem: whenever I hit a URI on my app I always get a 404. I 
>> can see in the uwsgi logs that 0 bytes were returned and on the nginx logs 
>> that the URI was not found. To confuse things further, this happens in my 
>> test server but not my production server.
>> 
>> What?s the best way to debug this?
> 
> post your nginx (if you use it) and uwsgi config files,
> also the full log output of uwsgi.
> 
> 
> 
> 
> -- 
> damjan
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Tue, 11 Nov 2014 11:01:03 -0800
> From: George Necula <[email protected]>
> To: [email protected]
> Subject: [uWSGI] Monitoring utilization of uwsgi workers
> Message-ID:
>       <caczrfmwnu08uwq3wx2qowtnu-a6q-pkjtda8si9zdhw9pgz...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi,
> 
>  I would like to monitor in a given time interval (e.g., 1min, 5min,
> 15min) the utilization of the worker pool. I think that this can be
> reflected by some moving average of how many tasks are either waiting or
> being processed (like is done for CPU load in Unix systems). If this
> average approaches the number of processes I know that I need to do
> something.
> 
>  Alternatively, I could use a measure of what percentage of the time
> interval there was an available worker.
> 
>  Note that CPU utilization of the machine is not enough, because some of
> my tasks have a fair bit of IO.
> 
>  I suspect that this can be done with the stats, snmp, or metrics
> subsystems, but the documentation is very sparse. I see things like "By
> default uWSGI creates a lot of metrics (and more are planned)" (metrics
> page). But where are these metrics explained.
> 
> Thanks,
> George.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.unbit.it/pipermail/uwsgi/attachments/20141111/27007a9d/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 4
> Date: Tue, 11 Nov 2014 21:39:05 +0200
> From: Dincer Kavraal <[email protected]>
> To: uWSGI developers and users list <[email protected]>, George
>       Necula <[email protected]>
> Subject: Re: [uWSGI] Monitoring utilization of uwsgi workers
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="utf-8"
> 
> Not exact answer to your question. But, you might missed this one:?
> [2]?http://stackoverflow.com/questions/17163091/how-to-read-uwsgi-stats-output
> 
> At least you could combine the information here [1] with the given 
> description on stack overflow answer [2]
> 
> [1]?http://uwsgi-docs.readthedocs.org/en/latest/StatsServer.html
> 
> 
> Hope helps.
> 
> Dincer
> 
> 
> On 11 Nov 2014 at 21:01:54, George Necula ([email protected]) wrote:
> 
> Hi,
> ?
> ? I would like to monitor in a given time interval (e.g., 1min, 5min, 15min) 
> the utilization of the worker pool. I think that this can be reflected by 
> some moving average of how many tasks are either waiting or being processed 
> (like is done for CPU load in Unix systems). If this average approaches the 
> number of processes I know that I need to do something.?
> 
> ? Alternatively, I could use a measure of what percentage of the time 
> interval there was an available worker.?
> 
> ? Note that CPU utilization of the machine is not enough, because some of my 
> tasks have a fair bit of IO.
> 
> ? I suspect that this can be done with the stats, snmp, or metrics 
> subsystems, but the documentation is very sparse. I see things like "By 
> default uWSGI creates a lot of metrics (and more are planned)" (metrics 
> page). But where are these metrics explained.?
> 
> Thanks,
> George.?
> _______________________________________________  
> uWSGI mailing list  
> [email protected]  
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi  
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.unbit.it/pipermail/uwsgi/attachments/20141111/1132a053/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 5
> Date: Wed, 12 Nov 2014 00:28:18 +0100
> From: [email protected]
> To: [email protected]
> Subject: [uWSGI] Memory leak when streaming in psgi (uwsgi 2.0.8)
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
> 
> Hi,
> 
> Perhaps, I am doing something wrong, but this code:
> 
> ---snip---
> use strict;
> use warnings;
> 
> sub streamer {
>     my $responder = shift;
>     my $writer = $responder->([200, ['Content-Type' => 'text/plain']]);
>     $writer->write("Oops...\n");
>     $writer->close();
> }
> 
> my $app = sub {
>     my $env = shift;
>     return \&streamer;
> };
> ---snip---
> 
> when run as: uwsgi --http-socket :9090 --http-socket-modifier1 5 --psgi 
> psgi-streamer.pl --master --disable-logging
> and tortured with: ab -n1000000 -c64 http://127.0.0.1:9090/
> 
> produces memory leak - ca. 100M consumed after 1 million requests (-c is 
> irrelevant, actually).
> 
> When $writer is not used (i.e. $responder called with content), and also 
> without streaming (just return with content from app), there is no leak.
> 
> uswsgi 2.0.8, compiled on CentOS 7 with "-b psgi" (no Plack::Util 
> installed).
> 
> So, is it me or a bug? :)
> 
> Regards,
> Alexander.
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
> 
> 
> End of uWSGI Digest, Vol 62, Issue 11
> *************************************


--
Rui Pacheco
[email protected]




_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to