Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

fleetd: try ports 2379 and 4001 by default for etcd#1177

Merged
jonboulle merged 1 commit into
coreos:masterfrom
crawford:etcd
Apr 8, 2015
Merged

fleetd: try ports 2379 and 4001 by default for etcd#1177
jonboulle merged 1 commit into
coreos:masterfrom
crawford:etcd

Conversation

@crawford
Copy link
Copy Markdown
Contributor

@crawford crawford commented Apr 7, 2015

Fixes #1171.

@crawford crawford mentioned this pull request Apr 7, 2015
21 tasks
Comment thread etcd/client.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would rather just define defaultEndpoints as a []string

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@jonboulle
Copy link
Copy Markdown
Contributor

LGTM, with the (discussed) caveat that it will result in suboptimal performance in scenarios where it isn't listening on both ports. Probably get an ack from @bcwaldon

@bcwaldon
Copy link
Copy Markdown
Contributor

bcwaldon commented Apr 7, 2015

Could we switch the ordering to prefer 4001 for the time-being? I believe the client is so dumb it will always start at the beginning of the list of endpoints for every request, ignoring the last known healthy node.

@crawford
Copy link
Copy Markdown
Contributor Author

crawford commented Apr 7, 2015

Done.

@bcwaldon
Copy link
Copy Markdown
Contributor

bcwaldon commented Apr 7, 2015

@crawford Please update fleet.conf.sample and Documentation/deployment-and-configuration.md with this new behavior. grep for 4001

@crawford
Copy link
Copy Markdown
Contributor Author

crawford commented Apr 7, 2015

@bcwaldon updated.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of the default here is backwards.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the order that fleetctl uses. (yes, it's opposite of the daemon)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@bcwaldon
Copy link
Copy Markdown
Contributor

bcwaldon commented Apr 7, 2015

@crawford so close, crawfish. LGTM after my two comments are addressed

@bcwaldon
Copy link
Copy Markdown
Contributor

bcwaldon commented Apr 7, 2015

LGTM

jonboulle added a commit that referenced this pull request Apr 8, 2015
fleetd: try ports 2379 and 4001 by default for etcd
@jonboulle jonboulle merged commit da52421 into coreos:master Apr 8, 2015
@crawford crawford deleted the etcd branch April 8, 2015 02:23
@bcwaldon bcwaldon added this to the v0.10.0 milestone Apr 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attempt to connect to etcd via both the legacy and IANA ports

3 participants