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

[Deploy] Finalize Gateway/Proxy port during device binding. #2167

Merged
merged 6 commits into from
Jun 13, 2024

Conversation

Raphael-Jin
Copy link
Collaborator

No description provided.

@Raphael-Jin Raphael-Jin changed the title [Deploy] Initial Gateway/Proxy based on the env variables. [Deploy] Initialize Gateway/Proxy based on the env variables. Jun 12, 2024
inference_port = model_config_parameters.get("server_internal_port",
ServerConstants.MODEL_INFERENCE_DEFAULT_PORT)
inference_port_external = model_config_parameters.get("server_external_port", inference_port)
inference_port_external = os.environ.get(ServerConstants.ENV_MASTER_INFERENCE_PORT_KEY,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about centralizing the reads by adding static methods, one in Server Constant for master port and another in Client Constants for worker port?

@Raphael-Jin Raphael-Jin changed the title [Deploy] Initialize Gateway/Proxy based on the env variables. [Deploy] Finalize Gateway/Proxy port during device binding. Jun 12, 2024
@alaydshah
Copy link
Contributor

Looks good to me 👍🏻

@Raphael-Jin Raphael-Jin merged commit bec28a6 into dev/v0.7.0 Jun 13, 2024
1 of 37 checks passed
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.

3 participants