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

Stop making unnecessary requests to etcd #735

Merged
merged 3 commits into from
Aug 5, 2014
Merged

Conversation

bcwaldon
Copy link
Contributor

@bcwaldon bcwaldon commented Aug 3, 2014

This mostly fixes #733. It takes the number of requests down in the EtcdRegistry.Jobs() codepath from 7N+3 to 2N+3 (where N is # jobs). The remaining 2N can still be simplified down to a constant 2, but I do not want to conflict with any of the work being done by @jonboulle right now.

Remove two unnecessary etcd requests by using the data
that is already available on the Job model passed
to determineJobState.
@bcwaldon bcwaldon added this to the v0.6.2 milestone Aug 4, 2014
@jonboulle
Copy link
Contributor

ok lgtm

bcwaldon added a commit that referenced this pull request Aug 5, 2014
Stop making unnecessary requests to etcd
@bcwaldon bcwaldon merged commit 544942a into coreos:master Aug 5, 2014
@bcwaldon bcwaldon deleted the 733 branch August 5, 2014 16:56
@bcwaldon bcwaldon removed this from the v0.6.2 milestone Aug 5, 2014
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.

fleet makes too many etcd requests
2 participants