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

Improve Kafka alert throughput #1989

Merged
merged 1 commit into from
Jul 3, 2018
Merged

Improve Kafka alert throughput #1989

merged 1 commit into from
Jul 3, 2018

Conversation

nathanielc
Copy link
Contributor

@nathanielc nathanielc commented Jun 28, 2018

With this change the Async mode is used to write messages to Kafka. This mode allows for greater throughput at the cost of not blocking on the acknowledgment of the writes. As such new statistics are added for each configured kafka cluster and topic.

  • write_errors - Reports the number of errors writing to Kafka for a given topic and cluster.
  • write_messages - Reports the number of messages written to Kafka for a given topic and cluster.
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated

@nathanielc nathanielc force-pushed the nc-kafka-perf branch 2 times, most recently from 94b039f to 0450048 Compare June 28, 2018 17:00
@nathanielc nathanielc requested a review from aanthony1243 June 28, 2018 17:03
@nathanielc
Copy link
Contributor Author

@stevebang This PR update the docs for the Kafka alert handler, can you incorporate these changes into the docs site?

Copy link
Contributor

@aanthony1243 aanthony1243 left a comment

Choose a reason for hiding this comment

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

overall looks good. might be missing some cleanup code.

cluster: c.cfg.ID,
topic: topic,
}
w.Open()
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need a routine to cleanup and close all the writers at some point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Writers already had logic to close them. This change just creates the companion Open method since now the initialization is more complex than creating the type.

@nathanielc nathanielc merged commit de90dd9 into master Jul 3, 2018
nathanielc added a commit that referenced this pull request Jul 3, 2018
@nathanielc nathanielc deleted the nc-kafka-perf branch July 3, 2018 23:01
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.

2 participants