Обсуждение: SLOW Remote Connection to PostgreSQL Database
Hello, I am running a Rails app on server1 that connects to dbserver where the database is. There is another server, server2, that connects to dbserver quickly and returns quickly no matter how high dbserver's load is. Doing "psql -h dbserver.domain.com database username" from server1 times out every time. The same command from server2 returns quickly. dbserver is located in a remote location but server1 and server2 are in the same building using the same internet connection. Requests directly to server1 return quickly as well. What do I need to look at to make it move quickly? Thanks!
Matt White wrote: > Hello, > > I am running a Rails app on server1 that connects to dbserver where > the database is. There is another server, server2, that connects to > dbserver quickly and returns quickly no matter how high dbserver's > load is. Doing "psql -h dbserver.domain.com database username" from > server1 times out every time. My guess is a firewall. telnet server.domain.com 5432 and see if that works. -- Postgresql & php tutorials http://www.designmagick.com/
On 10/4/07, Chris <dmagick@gmail.com> wrote: > Matt White wrote: > > Hello, > > > > I am running a Rails app on server1 that connects to dbserver where > > the database is. There is another server, server2, that connects to > > dbserver quickly and returns quickly no matter how high dbserver's > > load is. Doing "psql -h dbserver.domain.com database username" from > > server1 times out every time. > > My guess is a firewall. > > telnet server.domain.com 54332 I believe we've seen this problem as well when reverse lookups were enabled and misconfigured.