Whenever we run the program, it throws an error read: connection reset by peer. We have increased the postgres max_connections to 10000. We even added pgbouncer, but it looks like (based on logs) the connections are not going thru pgbouncer, rather they are directly hitting the database.
Hi All,We are trying to do 10K simultaneous reads from postgres.
For this, we are spawning 10K goroutines. The code is https://github.com/mahendrakariya/postgis_spike/blob/master/src/read_write.goWhenever we run the program, it throws an error read: connection reset by peer. We have increased the postgres max_connections to 10000. We even added pgbouncer, but it looks like (based on logs) the connections are not going thru pgbouncer, rather they are directly hitting the database.Could someone guide us how to do this? Also, is there a better approach other than spawning 10K goroutines?