drizzle-nginx-module
drizzle-nginx-module copied to clipboard
resolver support for Amazon RDS
With Amazon RDS, the ip address can change after certain modifications (upgrade to more powerful instance, add more disk space, etc). It seems like drizzle-nginx-module resolves the hostname on startup only. Is it possible to get it to use http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver?
Otherwise, I think I can live with writing a bash script that does periodic dig and reloads nginx when the address changes, just to continue using openresty :)
@sayap You're welcome to submit patches to this module :)
But I'd suggest you take a look at the lua-resty-mysql
library instead which does what you want:
https://github.com/openresty/lua-resty-mysql#readme