Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agents #83

Merged
merged 28 commits into from
Mar 19, 2019
Merged

Agents #83

merged 28 commits into from
Mar 19, 2019

Conversation

gdiazlo
Copy link
Contributor

@gdiazlo gdiazlo commented Mar 18, 2019

Clean up agents before its transformation.

Copy link
Contributor

@aalda aalda left a comment

Choose a reason for hiding this comment

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

LGTM

monitor.executionTicker = time.NewTicker(conf.TaskExecutionInterval)
go monitor.runTaskDispatcher()

return &monitor, nil
}

type Task interface {
Do()
func (m Monitor) RegisterMetrics(r *prometheus.Registry) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If you're going to change the way we register metrics IMHO, you should change every occurrence of this code, or at least make an Issue, tech debt post-it or whatever to end this task.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is changed in all processors.

gossip/monitor/monitor.go Outdated Show resolved Hide resolved
}

func newSnapStore() *snapStore {
return &snapStore{segments: append([]Segment{}, Segment{})}
return &snapStore{
data: freecache.NewCache(2 << 30),
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a small comment of this "magic number"? (why it's 2<<30 at least)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a gigabyte of cache. Its not a magic number. Seems good enough for our testing environment. No other particular reason.

…tes, clean up design, implement out queue as a timedout channel, simplify stop code
…esides in the agent code and not in the processor
…cessors get their cusrtom metrics registered into the agent server
@gdiazlo gdiazlo merged commit daa0759 into BBVA:master Mar 19, 2019
suizman pushed a commit to jllucas/qed that referenced this pull request Jun 4, 2019
Agents, metrics and some tests refactor

Former-commit-id: daa0759
suizman pushed a commit that referenced this pull request Sep 30, 2019
Agents, metrics and some tests refactor

Former-commit-id: c4df21b [formerly daa0759]
Former-commit-id: c3e9cf9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants