8000 fleet engine constantly running by jonboulle · Pull Request #742 · coreos/fleet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

fleet engine constantly running #742

Merged
merged 2 commits into from
Aug 5, 2014
Merged

fleet engine constantly running #742

merged 2 commits into from
Aug 5, 2014

Conversation

jonboulle
Copy link
Contributor

The fleet engine is triggered at a 2s interval, but also by any events generated by an etcd watch on the /_coreos.com/fleet/ namespace. Given the amount of heartbeating going on (machines, jobs, states, etc) that doesn't represent actual changes, this causes the engine to be triggered constantly.

We should figure out a way to only trigger the engine when an event represents an actual change that the to-which the engine could respond.

@jonboulle
Copy link
Contributor

Per discussion, we should revert to the earlier behaviour of only triggering the engine on specific events (e.g. dd6636c)

@bcwaldon
Copy link
Contributor Author
bcwaldon commented Aug 5, 2014

@jonboulle this is reasonable for fixing the engine side of things, but we've got the same problem with the agent. All of the job-state events are causing a lot of unnecessary reconciliation for the Agents. Could we replace JobEvent with JobTargetChangeEvent and have the agents listen to both JobTargetChangeEvent and JobTargetStateChangeEvent? That feels like the 80% solution here.

@bcwaldon bcwaldon added this to the v0.6.2 milestone Aug 5, 2014
@jonboulle
Copy link
Contributor

Original ticket makes no mention of the agent 😞

Will add after lunch.

@bcwaldon
Copy link
Contributor Author
bcwaldon commented Aug 5, 2014

@jonboulle yeah, well, I was testing you

@jonboulle
Copy link
Contributor

updated

@bcwaldon
Copy link
Contributor Author
bcwaldon commented Aug 5, 2014

One nit, but LGTM if you don't care.

@jonboulle
Copy link
Contributor

I'm getting wary of using pointers unless really necessary, and I think the ok approach is idiomatic enough so I'm going to stick with it for now.

jonboulle added a commit that referenced this pull request Aug 5, 2014
fleet engine constantly running
@jonboulle jonboulle merged commit 45797af into coreos:master Aug 5, 2014
@jonboulle jonboulle deleted the 742 branch August 5, 2014 22:59
@bcwaldon
Copy link
Contributor Author
bcwaldon commented Aug 5, 2014

@jonboulle I'd like to be on the same page w.r.t. this sort of stuff in fleet. Maybe we should discuss offline.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0