Skip to content

Set Dynamo bind port with environment variable#4189

Draft
mjeremicTT wants to merge 1 commit into
mainfrom
mjeremic/add-dynamo-bind-port
Draft

Set Dynamo bind port with environment variable#4189
mjeremicTT wants to merge 1 commit into
mainfrom
mjeremic/add-dynamo-bind-port

Conversation

@mjeremicTT

Copy link
Copy Markdown
Contributor

This PR adds a DYNAMO_BIND_PORT environment variable so the cpp_server's Dynamo generate endpoint can bind to a stable, predeclared TCP port instead of an OS-assigned one. Useful for k8s deployments where a sidecar, service or other deployment needs to know the port up front rather than discovering it after the fact.

The change is fully backward compatible: when DYNAMO_BIND_PORT is unset (or empty, or non-numeric), it falls back to defaults::DYNAMO_BIND_PORT = 0, which preserves today's behavior of letting the kernel pick a free ephemeral port. The resolved port is still advertised through discovery exactly as before, so frontends don't care which path was taken.

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

Successfully merging this pull request may close these issues.

1 participant