Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolver support for Amazon RDS #21

Open
sayap opened this issue May 28, 2014 · 1 comment
Open

resolver support for Amazon RDS #21

sayap opened this issue May 28, 2014 · 1 comment

Comments

@sayap
Copy link

sayap commented May 28, 2014

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 :)

@agentzh
Copy link
Member

agentzh commented May 30, 2014

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants