R
R
raiboon2015-02-12 17:56:32
Profiling
raiboon, 2015-02-12 17:56:32

How and with what to profile python, postgresql, hardware, etc?

Here we have an abstract application in a vacuum. Flask, postgresql, redis.
How to profile? How to find out what "rests" performance? I often read about this on habr / etc, but I did not find anything understandable.
From knowledge - I turned on the log of slow postgres requests - everything is fine, everything is fast, by indexes.
How do you figure out when you can put up with performance and sigh to buy more servers, and when to look for bottles necks?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yeletsky, 2015-02-13
@raiboon

If you need to watch in production, then strictly newrelic is an excellent service.
And when developing, you can start with this: www.vrplumber.com/programming/runsnakerun is a good profiler for Python. Run a load test and see what is eating how much.

D
Dmitry, 2015-02-12
@dmtrrr

First, understand what load you expect. And do load testing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question