We were tuning Postgres using pgtune, but forgot there might be ulimit set. ulimit was 64kb. The machine was under utilized.
Problem 2
after the ulimit problem was solved, postgres machine was still under utilized, which led to fewer connections to the db. The no of threads on the uWSGI was less. Increased them Now the server is easily handling 100 req/s in ~7 secs with a concurrency of 10. The db utilization is ~60% at this scale. All the databases are on the same machine.
V2
V3: Discussion: 16 August 2017 -[3:00 - 5:00 PM]
π΄ - high priority π΅ - medium priority βͺοΈ - low priority β«οΈ - look for some 3rd party π - Optmise