-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add Orchagent ZMQ table feature flag: orch_dash_zmq_enabled and orch_route_zmq_enabled. #22451
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
aab7015
Add Orchagent ZMQ table feature flag
liuh-80 05edead
Improve config by comments
liuh-80 1d93f00
Update orch_zmq_tables.conf.j2
liuh-80 3984932
Update orch_zmq_tables.conf.j2
liuh-80 f2d73c2
Merge remote-tracking branch 'origin' into dev/liuh/orch_zmq_config
liuh-80 7f4c695
Merge branch 'master' into dev/liuh/orch_zmq_config
liuh-80 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
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,29 @@ | ||
| {% if DEVICE_METADATA.localhost.orch_dash_zmq_enabled == "false" %} | ||
| DASH_VNET_TABLE | ||
| DASH_QOS_TABLE | ||
| DASH_ENI_TABLE | ||
| DASH_ACL_IN_TABLE | ||
| DASH_ACL_OUT_TABLE | ||
| DASH_ACL_GROUP_TABLE | ||
| DASH_ACL_RULE_TABLE | ||
| DASH_HA_SET_TABLE | ||
| DASH_HA_SCOPE_TABLE | ||
| DASH_PREFIX_TAG_TABLE | ||
| DASH_ROUTING_TYPE_TABLE | ||
| DASH_APPLIANCE_TABLE | ||
| DASH_ROUTE_TABLE | ||
| DASH_ROUTE_RULE_TABLE | ||
| DASH_VNET_MAPPING_TABLE | ||
| DASH_ENI_ROUTE_TABLE | ||
| DASH_ROUTE_GROUP_TABLE | ||
| DASH_TUNNEL_TABLE | ||
| DASH_PA_VALIDATION_TABLE | ||
| DASH_METER_POLICY_TABLE | ||
| DASH_METER_RULE_TABLE | ||
| DASH_ROUTING_APPLIANCE_TABLE | ||
| DASH_ENI_FORWARD_TABLE | ||
| {% endif %} | ||
| {% if DEVICE_METADATA.localhost.orch_route_zmq_enabled == "true" %} | ||
| ROUTE_TABLE | ||
| LABEL_ROUTE_TABLE | ||
| {% endif %} |
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Now that you have a dedicated flag for dash orchs to use zmq, can we deprecate the current '-q' option with zmq_server_address that is currently passed to orchagent in smartswitch to enable zmq b/w gnmi and orchagent and use this instead? Why not have a consistent way to enable zmq b/w orchagent and all other components like gnmi, fpmsyncd etc..?
Ref: #16661
Uh oh!
There was an error while loading. Please reload this page.
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.
On current image, orchagent only enable ZMQ on Dash tables, so use -q option to control the ZMQ feature is enough.
However, we plan to improve route performance by enable ZMQ between fpmsyncd and orchagent.
Then there will be 2 features on orchagent share same ZMQ address, so using -q to control the Dash ZMQ feature is not enough.
For Dash, we plan to migrate to enable/disable with the 'orch_dash_zmq_enabled' feature flag. There will be another PR in orchagent to make Dash enable/disable ZMQ with this flag.
And for improve route performance by enable ZMQ between fpmsyncd and orchagent, it will be controlled by the 'orch_route_zmq_enabled' flag.
But the -q option will keep, because the ZMQ address is generated according to the mgmt_ip and eth0-midplane interface status.
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.
okay, please link all relevant zmq PRs together for convenience when you get a chance.