-
Notifications
You must be signed in to change notification settings - Fork 309
Add ForcedEndpoints documentation for MessageBrokerConfig #6269
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
Open
lustpieter
wants to merge
5
commits into
SkylineCommunications:main
Choose a base branch
from
lustpieter:feature/forcedEndpoint
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7ada195
Add ForcedEndpoints documentation for MessageBrokerConfig
lustpieter 628fc2c
update RN
lustpieter a0ac945
Update ForcedEndpoints format description
lustpieter 1bbfed8
Address comments
lustpieter b648aef
Update BrokerGateway_Migration.md
MariekeGO File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...er/Administrator_guide/DataMiner_Systems/MessageBrokerConfig_ForcedEndpoints.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| --- | ||
| uid: MessageBrokerConfig_ForcedEndpoints | ||
| --- | ||
|
|
||
| # Configuring forced NATS endpoints | ||
|
|
||
| The `ForcedEndpoints` setting allows all processes on a server to connect to specific custom NATS endpoints instead of the ones automatically provided by BrokerGateway. | ||
| The `CredentialsUrl` is still used to fetch credentials from BrokerGateway, but the endpoints returned in that response are ignored. | ||
| This setting can be configured in `MessageBrokerConfig.json`. | ||
|
|
||
| This is useful in scenarios where a process must reach NATS through a fixed set of endpoints — for example, when connecting through a proxy, a DMZ, or a load balancer. | ||
|
|
||
| > [!NOTE] | ||
| > - From DataMiner 10.6.7<!-- RN 45491 --> onwards, this is supported for DataMiner server processes. | ||
| > - For DxMs, check the release notes of the specific DxM to find out from which version this is supported. | ||
|
|
||
| ## Configuration | ||
|
|
||
| To override the NATS endpoints for all processes on a server, add a `ForcedEndpoints` array to the `BrokerGatewayConfig` section in `C:\ProgramData\Skyline Communications\DataMiner\MessageBrokerConfig.json`: | ||
|
|
||
| ```json | ||
| { | ||
| "BrokerGatewayConfig": { | ||
| "CredentialsUrl": "https://<hostname>/BrokerGateway/api/natsconnection/getnatsconnectiondetails", | ||
| "APIKeyPath": "C:\\Program Files\\Skyline Communications\\DataMiner BrokerGateway\\appsettings.runtime.json", | ||
| "ForcedEndpoints": [ "custom-host-1:4222", "custom-host-2:4222", "custom-host-3" ] | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| Each entry in `ForcedEndpoints` can be a string in the format `"host:port"` or `"host"`. | ||
|
|
||
| When `ForcedEndpoints` is set, the process will: | ||
|
|
||
| - Still call `CredentialsUrl` to retrieve the NATS credentials. | ||
| - Use only the endpoints listed in `ForcedEndpoints` to connect to NATS, ignoring any endpoints returned by BrokerGateway. | ||
| - The order of endpoints determines the connection preference and fallback order. | ||
| - These endpoints do not need to be a subset of the known IPs of BrokerGateway. | ||
|
|
||
| When `ForcedEndpoints` is absent or empty, normal behavior applies and the endpoints are resolved through BrokerGateway. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 information doesn't seem to really belong here. This section is an overview of the actions during the migration, so what the user can configure afterwards should not be explained in any detail here. Also, on the main "Configuring forced NATS endpoints" page, I don't see this compatibility info (e.g., the fact that this should only be used in combination with a server that does not run a DataMiner Agent), while that is where I'd really expect to find it.
Could you adjust this so that here there is only a short reference to the possible forced endpoints config, with a link to the main page with more info, and so that on the main page about this configuration the user will find all the information they need related to it?