drizzle-nginx-module icon indicating copy to clipboard operation
drizzle-nginx-module copied to clipboard

resolver support for Amazon RDS

Open sayap opened this issue 10 years ago • 1 comments

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 avatar May 28 '14 10:05 sayap

@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

agentzh avatar May 30 '14 04:05 agentzh