[Python] uwsgi in docker: come interpretare questi log?

Alessandro Dentella sandro.dentella a gmail.com
Mar 15 Set 2020 16:44:41 CEST


On Tue, Sep 15, 2020 at 02:27:38PM +0200, Riccardo Magliocchetti wrote:
> > Poi mi rendo conto che non so come interpretare i log:
> > che significa "app: 0" o alternativamente "app: -1"?
> > ieri credevo che app: -1 fosse quando andava in errore, ma vedo che ho molte
> > richiestecon app: -1 che sono andate a buon fine.

Aggiungo questi log caldi caldi...

[pid: 7|app: -1|req: -1/502] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:21 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
[pid: 6|app: 0|req: 66/503] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:28 2020] GET / => generated 19217 bytes in 252 msecs (HTTP/1.1 200) 8 headers in 339 bytes (1 switches on core 0)
[pid: 7|app: -1|req: -1/504] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:28 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
[pid: 6|app: 0|req: 67/505] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:28 2020] GET / => generated 19217 bytes in 36 msecs (HTTP/1.1 200) 7 headers in 310 bytes (1 switches on core 0)
[pid: 7|app: -1|req: -1/506] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:28 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/507] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:29 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
[pid: 6|app: 0|req: 68/508] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:29 2020] GET / => generated 19217 bytes in 90 msecs (HTTP/1.1 200) 7 headers in 310 bytes (1 switches on core 0)
[pid: 7|app: -1|req: -1/509] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:29 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/510] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:29 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
[pid: 7|app: -1|req: -1/511] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:29 2020] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
[pid: 6|app: 0|req: 69/512] 172.24.0.5 () {42 vars in 562 bytes} [Tue Sep 15 14:36:29 2020] GET / => generated 19217 bytes in 34 msecs (HTTP/1.1 200) 7 headers in 310 bytes (1 switches on core 0)

Qui si vede chiaramente che a fronte della stessa richiesta il pid 7 va in
errore ed il pid 6 no. Quando la richiesta va in errore vedo "app: -1", ma in
altre circostanze non è così vanno a buon fine richieste che hanno "app: -1"


sandro


Maggiori informazioni sulla lista Python