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

chore: improve distributed indexing metrics and logging #981

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

frrist
Copy link
Member

@frrist frrist commented Jun 8, 2022

What

  • Improves logging and tracing around distributed indexing - include taskIDs in log messages and traces
  • Add lily_info metric that contains a label with the lily version
  • Add job_running metric indicating which jobs are running and their type (alk, watch, fill, find, watch-notify, walk-notify, etc.)
  • Add tipset_worker_concurrency indicating concurrency configuration of tipset workers
  • Add tipset_worker_queue_priority indicating tipset worker queue priorities configuration.

@frrist frrist self-assigned this Jun 8, 2022
@frrist frrist linked an issue Jun 8, 2022 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Merging #981 (fa8eadc) into master (0464ef6) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@          Coverage Diff           @@
##           master    #981   +/-   ##
======================================
  Coverage    34.0%   34.1%           
======================================
  Files          30      30           
  Lines        2020    2023    +3     
======================================
+ Hits          687     690    +3     
  Misses       1256    1256           
  Partials       77      77           

@frrist frrist force-pushed the frrist/distributed-metrics branch from fa8eadc to f831aed Compare June 8, 2022 17:57
@frrist frrist requested review from placer14 and kasteph June 8, 2022 18:15
// HasTraceCarrier returns true iff payload contains a trace.
func (i *IndexTipSetPayload) HasTraceCarrier() bool {
func (i IndexTipSetPayload) HasTraceCarrier() bool {
return !(i.TraceCarrier == nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is access by value to prevent race conditions on i.TraceCarrier state here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's because we only ever use it as a value within methods. e.g. its instantiated as a value here: https://github.com/filecoin-project/lily/pull/981/files#diff-583b89249d2ef998d0f072521baf5ae75d506958a317c2ea3e6b6ad74ac7551eR75

@frrist frrist merged commit d0712f5 into master Jun 9, 2022
@frrist frrist deleted the frrist/distributed-metrics branch June 9, 2022 03:31
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.

Lily exports metric indicating its configuration as a notifier or worker
3 participants