-
Notifications
You must be signed in to change notification settings - Fork 13k
【summer_issue#8313】Ecological Construction and optimization of NACOS Service Mesh #9158
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
【summer_issue#8313】Ecological Construction and optimization of NACOS Service Mesh #9158
Conversation
…e update design of the data layer、Debounce、CDE, EDS, incremental EDS, incremental MCP.
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.
Please remove irrelative code changes. And remove v2 support and empty generator for CDS/EDS.
istio/src/main/java/com/alibaba/nacos/istio/api/ApiConstants.java
Outdated
Show resolved
Hide resolved
istio/src/main/java/com/alibaba/nacos/istio/api/ApiConstants.java
Outdated
Show resolved
Hide resolved
istio/src/main/java/com/alibaba/nacos/istio/api/ApiConstants.java
Outdated
Show resolved
Hide resolved
istio/src/main/java/com/alibaba/nacos/istio/api/ApiConstants.java
Outdated
Show resolved
Hide resolved
istio/src/main/java/com/alibaba/nacos/istio/common/AbstractConnection.java
Outdated
Show resolved
Hide resolved
istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java
Outdated
Show resolved
Hide resolved
istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java
Outdated
Show resolved
Hide resolved
istio/src/main/java/com/alibaba/nacos/istio/model/PushContext.java
Outdated
Show resolved
Hide resolved
istio/src/main/java/com/alibaba/nacos/istio/api/ApiGenerator.java
Outdated
Show resolved
Hide resolved
//TODO: service data change event, instance event | ||
result.add(ClientOperationEvent.ClientRegisterServiceEvent.class); | ||
result.add(ClientOperationEvent.ClientDeregisterServiceEvent.class); | ||
result.add(InfoChangeEvent.ServiceInfoChangeEvent.class); |
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.
What's the difference between ServiceInfoChangeEvent and ServiceMetadataEvent ?
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.
The ServiceMetadataEvent is used primarily to determine whether metadata is out of date and can not determine changes to data such as weights
private int mcpPushInterval; | ||
|
||
@Value("${nacos.istio.server.full:true}") | ||
private boolean fullEnabled = true; |
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.
What is the this param does for?
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.
determine whether to use Delta
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.
But this param never be used. consider to remove it.
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 parameter is used in incremental push. If the server does not agree to incremental push even if the client support, incremental push can not be carried out
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.
Two tips need to be fixed.
} | ||
} | ||
|
||
private void init() { |
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.
When do we execute init?
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.
In the Watcher, the code has been modified
private int mcpPushInterval; | ||
|
||
@Value("${nacos.istio.server.full:true}") | ||
private boolean fullEnabled = true; |
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.
But this param never be used. consider to remove it.
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.
LGTM
…Service Mesh (alibaba#9158) * Change the polling mechanism to listen for event changes;Implement the update design of the data layer、Debounce、CDE, EDS, incremental EDS, incremental MCP. * Remove unnecessary changes and logs * Simplify the code * Simplify * Add the delta API description * Fixed a bug * Update application.properties * Modify the event merge mechanism; remove unnecessary classes * Initialize
What is the purpose of the change
Design Nacos support XDS protocol design document, and complete the module development;
Aiming at the performance problem of full push between Nacos and Istio, the incremental push method is used to optimize the design
Add the corresponding documentation for the service grid ecology to the NACOS official documentation.
Brief changelog
Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily: