What is the use of pconn_use_lmt?
Created by Dmitry Kurochkin
- Keywords:
- pconn_use_lmt
Pconn_use_lmt specifies the maximum number of requests per
connection. By default Polygraph does not use persistent HTTP
connections, i.e. every connection is closed after transaction is
completed and each new transaction opens a new connection. Setting
pconn_use_lmt to, say, const(10) would make Polygraph use HTTP
persistent connections and limit the number of requests per connection
to 10. If persistent connection use limit is not reached after
transaction completes, the connection is put into idle queue. Next
transaction that needs a connection to the same destination would use
the idle connection instead of opening a new one.