You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/02/13 06:03:53 UTC
[GitHub] wu-sheng commented on issue #2244: Support to register different
host/port at cluster coordinator
wu-sheng commented on issue #2244: Support to register different host/port at cluster coordinator
URL: https://github.com/apache/incubator-skywalking/pull/2244#issuecomment-463071438
In default setting, the register data like this
```
{"name":"remote","id":"1bd7fb14-22f7-40a4-ad87-e5b4c7d93fbe","address":"0.0.0.0","port":11800,"payload":{"address":{"host":"0.0.0.0","port":11800,"isSelf":true}},"registrationTimeUTC":1550036632697,"serviceType":"DYNAMIC","enabled":true}
```
Then I set the internal host/port
```
zookeeper:
nameSpace: ${SW_NAMESPACE:""}
hostPort: ${SW_CLUSTER_ZK_HOST_PORT:localhost:2181}
#Retry Policy
baseSleepTimeMs: ${SW_CLUSTER_ZK_SLEEP_TIME:1000} # initial amount of time to wait between retries
maxRetries: ${SW_CLUSTER_ZK_MAX_RETRIES:3} # max number of times to retry
internalComHost: 172.10.4.10
internalComPort: 8080
```
The register info turns to
```
{"name":"remote","id":"f70d5e92-d104-48d6-9a45-2ae6babdb8f7","address":"172.10.4.10","port":8080,"payload":{"address":{"host":"172.10.4.10","port":8080,"isSelf":true}},"registrationTimeUTC":1550036761783,"serviceType":"DYNAMIC","enabled":true}
```
`address` and `port` changed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services