< Previous | Contents | Next >

Persistent connections

HCP supports persistent connections. Following a request for an operation, HCP keeps the connection open for 60 seconds, so a subsequent request can use the same connection.


Persistent connections enhance performance because they avoid the overhead of opening and closing multiple connections. In conjunction with persistent connections, using multiple threads so that operations can run concurrently provides still better performance.


If the persistent connection timeout period is too short, tell your tenant administrator.


image

image

Note: With persistent connections, if a single IP address has more than 254 concurrent open connections, those above the first 254 may have to wait as long as ten minutes to be serviced. This includes connections where the request explicitly targeted the IP address, as well as connections where the HCP hostname resolved to the target IP address.


To avoid this issue, either don’t use persistent connections or ensure that no more than 254 threads are working against a single node at any time.

image


Chapter 7: Usage considerations 195

Connection failure handling