Nginx for Postgres servers

I know nginx is designed to handle web and mail servers. Does it make
sense to use to handle multiple (in our case 2) PostgreSQL database
servers?

Tom Ekberg
Senior Computer Specialist, Lab Medicine
University of Washington Medical Center
1959 NE Pacific St, MS 357110
Seattle WA 98195
work: (206) 598-8544
email: [email protected]

You mean something like: https://github.com/FRiCKLE/ngx_postgres ?

Hello Tom,

If you want to proxy PostgreSQL connections with nginx, you can use
the stream (tcp) proxy for this. Obviously, it will not keep a
persistent connection to the database server, but will open a new
connection for each client.

http://nginx.org/en/docs/stream/ngx_stream_core_module.html

email: [email protected]


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx


Roman A.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs