Skip to content

Commit

Permalink
gossip: update gossip default port
Browse files Browse the repository at this point in the history
  • Loading branch information
andydunstall committed May 5, 2024
1 parent 0d41f1d commit 0740976
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/deploy/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ This includes Prometheus metrics at `/metrics` and a status API at `/status`
which is used by the `pico status` CLI. It defaults to port `8002`.

Finally the gossip port is used for inter-node traffic to propagate the cluster
state which defaults to port `7000`.
state which defaults to port `8003`.
14 changes: 7 additions & 7 deletions server/gossip/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ func (c *Config) RegisterFlags(fs *pflag.FlagSet) {
fs.StringVar(
&c.BindAddr,
"gossip.bind-addr",
":7000",
":8003",
`
The host/port to listen for inter-node gossip traffic.
If the host is unspecified it defaults to all listeners, such as
'--gossip.bind-addr :7000' will listen on '0.0.0.0:7000'`,
'--gossip.bind-addr :8003' will listen on '0.0.0.0:8003'`,
)

fs.StringVar(
Expand All @@ -41,12 +41,12 @@ If the host is unspecified it defaults to all listeners, such as
Gossip listen address to advertise to other nodes in the cluster. This is the
address other nodes will used to gossip with the node.
Such as if the listen address is ':7000', the advertised address may be
'10.26.104.45:7000' or 'node1.cluster:7000'.
Such as if the listen address is ':8003', the advertised address may be
'10.26.104.45:8003' or 'node1.cluster:8003'.
By default, if the bind address includes an IP to bind to that will be used.
If the bind address does not include an IP (such as ':7000') the nodes
private IP will be used, such as a bind address of ':7000' may have an
advertise address of '10.26.104.14:7000'.`,
If the bind address does not include an IP (such as ':8003') the nodes
private IP will be used, such as a bind address of ':8003' may have an
advertise address of '10.26.104.14:8003'.`,
)
}

0 comments on commit 0740976

Please sign in to comment.