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

Use fluentd helper function #65

Merged
merged 1 commit into from
Jul 9, 2019
Merged

Use fluentd helper function #65

merged 1 commit into from
Jul 9, 2019

Conversation

maimaisie
Copy link
Contributor

It is found that having the while loop in the main thread blocks fluentd from running multiple input sources simultaneously. @samjsong found the timer_execute helper function from timer helper being used in the tail input source, which works with multiple tail sources.

The while loops in events and service monitor are replaced by timer_execute. The sleep for the timer is determined by the sleep used in the while loops before (which is different from how often watcher recreates)

Copy link
Contributor

@samjsong samjsong left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Maisie!

Copy link
Contributor

@yuting-liu yuting-liu left a comment

Choose a reason for hiding this comment

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

The idea of using timer_execute is awesome! It looks a lot cleaner now 😄

@maimaisie maimaisie merged commit 8abf330 into master Jul 9, 2019
@maimaisie maimaisie deleted the maisie-timer branch July 9, 2019 23:54
psaia pushed a commit to psaia/sumologic-kubernetes-collection that referenced this pull request May 25, 2021
…Logic#65)

* Add a few collectors and sources

* Remove extra quotes

* Change bool strings to bools

* Add a few more sources

* Revert "Change bool strings to bools"

This reverts commit f09b7d6e8e4888daec74686f9ce1ac8fe0c06684.

* Test tf plan

* Remove dummy file
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.

None yet

3 participants