-
Notifications
You must be signed in to change notification settings - Fork 68
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
[serving] Adds mutliple node cluster configuration support #2190
Conversation
binding = prop.getProperty(INFERENCE_ADDRESS, "http://127.0.0.1:8080"); | ||
} else { | ||
binding = prop.getProperty(CLUSTER_ADDRESS, "http://127.0.0.1:8888"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't correct for ConnectorType.BOTH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change to switch case to make it more readable
private String error; | ||
|
||
private ClusterConfig() { | ||
clusterSize = Integer.parseInt(Utils.getenv("DJL_CLUSTER_SIZE", "1")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be slightly nicer to configure this using the config manager rather than just environment variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This is configured by LWS, and it only support env var so far
- There are other code (PyEnv) is also just use this env var
f3fb43b
to
7a4fd07
Compare
@@ -1,5 +1,6 @@ | |||
inference_address=http://0.0.0.0:8080 | |||
management_address=http://0.0.0.0:8080 | |||
cluster_address=http://0.0.0.0:8888 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: any reason for choosing 8888? Should it be a closer port like 8081?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User may choose management port as 8081
Description
Brief description of what this PR is about