This article is half-done without your Comment! *** Please share your thoughts via Comment ***
Sharing a very important article on the Load testing of PostgreSQL. Since last three years, I am sharing multiple articles on PostgreSQL Database Optimization Techniques and Solutions.
But for the bad performance, always database design, table design, fragmentation, indexes are not only the problem.
There are lot many other things, that we can test and measure the Performance of PostgreSQL Database Server.
First very most important is, how application or user connects to the database server, how hardware configured for the server, Is server setup for the read operation only or write operation only, there are many things that we can measure by using the PGBENCH utility.
Using pgbench, we can actually perform the load testing on PostgreSQL Server. For example, set number connection, process threads, time to complete and many more.
This is a really very cool utility with lots of examples which you can find in this wiki. For more options, please visit this.
Check the different options and try it your self.
Sharing one example:
I am checking the performance of concurrent 20 connections with 4 threads and max time is 60 seconds. here, “dbrnd” is my database and “postgres” is a DB User.
1 |
pgbench -U postgres -c 20 -j 4 -T 60 -N dbrnd |
Leave a Reply