nginx-s3-gateway icon indicating copy to clipboard operation
nginx-s3-gateway copied to clipboard

Periodic DNS resolution

Open onlynone opened this issue 2 years ago • 3 comments

This should allow both the oss and plus versions to do periodic DNS resolution by using a variable in the proxy_pass and eliminating the jump through an upstream.

onlynone avatar May 30 '23 20:05 onlynone

Thank you for taking the time to put together this PR.

Unfortunately, there are some invisible side-effects of this change:

  • Loss of keep-alive connections
  • Loss of statistics for upstream

Also, DNS resolution for OSS is currently in review, so first-class support for it should be coming in the near term.

Out of the above issue, the loss of keep-alive connections is a significant drawback for the S3 use case. Please let me know what your thoughts are.

dekobon avatar Jun 01 '23 17:06 dekobon

By the way, I cherry-picked in the commit for fixing the $s3uri case.

dekobon avatar Jun 01 '23 17:06 dekobon

Also, DNS resolution for OSS is currently in review, so first-class support for it should be coming in the near term.

That would be great. I hope that feature gets merged soon.

Out of the above issue, the loss of keep-alive connections is a significant drawback for the S3 use case. Please let me know what your thoughts are.

Can you explain how significant the keep-alive connections are with S3? Is there no way to get keep-alive connections without going through an upstream?

onlynone avatar Jun 01 '23 20:06 onlynone