-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support bi-directional service registry controllers (#171)
* [mesh]: Support bi-directional service registry controllers * [mesh]: Add vendor * [mesh]: Support nacos service registry * [mesh]: Complete mesh registry syncer * [mesh]: Use mutex pointer to copy * [mesh]: Add more checking * [doc]: Add NacosServiceRegistry * [doc]: Add more document * [mesh]: Add leader judgement for syncing * [proxy]: Add dynamic service test * [proxy]: Fix data race warning && Add service registry document * Fix unit test * Fix mod * Fix close client in service registry drivers * use a better name for dynamic servers
- Loading branch information
Showing
41 changed files
with
3,706 additions
and
1,553 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
kind: EtcdServiceRegistry | ||
name: etcd-service-registry-example | ||
endpoints: ['127.0.0.1:12379'] | ||
endpoints: ['127.0.0.1:2379'] | ||
prefix: "/services/" | ||
cacheTimeout: 10s | ||
cacheTimeout: 5s |
This file contains 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 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: mesh-controller-example | ||
kind: MeshController | ||
specUpdateInterval: 10s | ||
heartbeatInterval: 5s | ||
registryType: consul | ||
serviceName: service-001 | ||
externalServiceRegistry: nacos-service-registry-example |
This file contains 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,8 @@ | ||
kind: NacosServiceRegistry | ||
name: nacos-service-registry-example | ||
syncInterval: 10s | ||
servers: | ||
- scheme: http | ||
port: 8848 | ||
contextPath: /nacos | ||
ipAddr: 127.0.0.1 |
This file contains 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,7 @@ | ||
registryName: etcd-service-registry-example | ||
serviceName: service-001 | ||
instanceID: intance-001 | ||
scheme: http | ||
hostIP: 127.0.0.1 | ||
port: 9091 | ||
tags: [v1] |
This file contains 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,7 @@ | ||
registryName: etcd-service-registry-example | ||
serviceName: service-001 | ||
instanceID: intance-002 | ||
scheme: | ||
hostIP: 127.0.0.1 | ||
port: 9092 | ||
tags: [v2] |
This file contains 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,7 @@ | ||
registryName: etcd-service-registry-example | ||
serviceName: service-001 | ||
instanceID: intance-003 | ||
scheme: http | ||
hostIP: 127.0.0.1 | ||
port: 9093 | ||
tags: [v3] |
This file contains 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,5 @@ | ||
registryName: mesh-controller-example | ||
serviceName: service-002 | ||
instanceID: instance-001 | ||
ip: 127.0.0.1 | ||
port: 9094 |
This file contains 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 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.