Can NGINX Dynamically Reload Upstream Servers from External File?

Hi all,

I’m currently using NGINX OSS as a reverse proxy in front of several upstream microservices. I’d like to know if there’s a clean way to dynamically update the list of upstream servers from an external file or endpoint—without doing a full nginx -s reload.

Use case: Some of our upstream nodes are dynamic (via container scaling), and I’m exploring ways to automate upstream changes with minimal downtime. I know about NGINX Plus’s API for dynamic reconfiguration, but is there a community workaround for OSS?

Appreciate any guidance or patterns that have worked for you.

Thanks!
Jhonn Mick

Heya @jhonnmick! As of NGINX OSS 1.27.3 you can resolve DNS names in upstream blocks using NGINX OSS too Dynamic DNS Resolution Open Sourced in NGINX – NGINX Community Blog. You should be able to adapt this to a micro services environment :slightly_smiling_face:

1 Like

Thanks @alessandro, didn’t realize dynamic DNS was now in OSS too. Super helpful, I’ll dive into that blog post!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.