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

Have the ability to send log messages to a topic in Python #1353

Merged
merged 2 commits into from
Mar 7, 2018

Conversation

srkukarni
Copy link
Contributor

Motivation

We want to allow users to specify a log topic where all function logging should end up in.
This change is the first among a series of upcoming change to make that happen. Specifically this change adds the log handler in python

Modifications

Describe the modifications you've done.

Result

After your change, what will change.

@srkukarni
Copy link
Contributor Author

@merlimat @sijie

str(topic_name),
block_if_queue_full=True,
batching_enabled=True,
batching_max_publish_delay_ms=1,
Copy link
Contributor

Choose a reason for hiding this comment

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

We could use bigger timeout 10ms or even 100ms, since this is not latency sensitive, to improve efficiency.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also we should enable LZ4 compression by default. It's very light on cpu and provides good compression for basic text

block_if_queue_full=True,
batching_enabled=True,
batching_max_publish_delay_ms=1,
max_pending_messages=100000)
Copy link
Contributor

Choose a reason for hiding this comment

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

100K messages could mean a lot of memory to buffer up, I'd stick with default 1K unless there are specific needs

@srkukarni
Copy link
Contributor Author

@merlimat addressed review comments.

Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍

@merlimat merlimat merged commit a8a595d into apache:master Mar 7, 2018
@srkukarni srkukarni deleted the python_logging branch March 7, 2018 17:18
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