shchoi
shchoi

Reputation: 23

Request is too slow with nginx, uwsgi, django, pgpool, postgresql

I have deployed a service.
It is served by nginx, uwsgi, django, pgpool, postgresql stack.

The page that has no db access is no problem.
However, the page that has some data from postgres is tpo slow.

Actually, db query time is quite fast. under 10 ms.

But result to client is over the 120000 ms

My settings are below
Please check my settings and solve my problems

Please help me out!
It's too slow.....

Upvotes: 0

Views: 2939

Answers (1)

lqez
lqez

Reputation: 3008

Use profiler to find out the slowest point while processing request. It looks like the problem was not caused by postgresql or uwsgi things.

See ProfilingDjango wiki page.

Upvotes: 0

Related Questions