Error: psql.bin: could not connect to server: Cannot assign requested address
Is the server running on host "abchost.corp.xyz.com" (xxx.xxx.xxx.xxx) and accepting
TCP/IP connections on port 5432?
Jmeter is the tool we are using for orchestrating the tests. It executes a shell script on 50 concurrent threads.
The shell script does the following:
a) Connects to postgres database server using psql.
b) Issues a single select statement on table with 200 rows .
c) Writes the results to a text file.
Jmeter client and database host are sitting in the same data center.
Database OS: RedHat 6.x,
DB Version: Postgres 9.6
Database is of decent config. 16 CPU, 64GB RAM, SAN storage.
While some calls are failing with the error: psql.bin: could not connect to server: Cannot assign requested address
Other calls are successful around the same timeframe may be one to two seconds later..