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

Allow environment to inject base node ports #11

Open
asladeofgreen opened this issue Apr 15, 2024 · 1 comment
Open

Allow environment to inject base node ports #11

asladeofgreen opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@asladeofgreen
Copy link
Collaborator

Currently the node port numbers are derived by adding a node's ordinal identifier to a static constant.

  • E.G. $CCTL_BASE_PORT_RPC + node_idx where CCTL_BASE_PORT_RPC=11000 and <=1 node_idx <= 10.

There is a requirement to allow the deployment environment to override the static constant. This can be achieved via the use of an environment variable per port type. If the env-var is declared then it will be utilised, otherwise the default constant is utilised.

@asladeofgreen asladeofgreen added the enhancement New feature or request label Apr 15, 2024
@asladeofgreen asladeofgreen self-assigned this Apr 15, 2024
@asladeofgreen
Copy link
Collaborator Author

Adding support for the following env vars that override the static constant:

  • CSPR_BASE_PORT_NETWORK
  • CSPR_BASE_PORT_BINARY
  • CSPR_BASE_PORT_SPEC_EXEC
  • CSPR_BASE_PORT_REST
  • CSPR_BASE_PORT_RPC
  • CSPR_BASE_PORT_SSE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant