Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public class NacosRegistryConfiguration {
@ConfigFiled(field = PropertyKeyConst.CLUSTER_NAME)
private String clusterName;

@ConfigFiled(field = PropertyKeyConst.NAMESPACE)
private String namespace;

@ConfigFiled(field = PropertyKeyConst.NAMING_POLLING_THREAD_COUNT)
private Integer pollingThreadCount = Runtime.getRuntime().availableProcessors() / 2 + 1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ private Properties buildProperties() {
Optional.ofNullable(logLevel).ifPresent(value -> properties.put(UtilAndComs.NACOS_NAMING_LOG_LEVEL, logLevel));
Integer pollingThreadCount = nacosConfig.getPollingThreadCount();
Optional.ofNullable(pollingThreadCount).ifPresent(value -> properties.put(PropertyKeyConst.NAMING_POLLING_THREAD_COUNT, pollingThreadCount));
String namespace = nacosConfig.getNamespace();
Optional.ofNullable(namespace).ifPresent(value -> properties.put(PropertyKeyConst.NAMESPACE, namespace));
return properties;
}

Expand Down
1 change: 1 addition & 0 deletions eventmesh-runtime/conf/eventmesh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ eventMesh.registry.plugin.password=nacos
#eventMesh.registry.nacos.accessKey=
#eventMesh.registry.nacos.secretKey=
#eventMesh.registry.nacos.clusterName=
#eventMesh.registry.nacos.namespace=
# The default value is half of CPU's num
#eventMesh.registry.nacos.namingPollingThreadCount=5

Expand Down