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

integrate fluentd with nats streaming #3

Open
Mostafakhedri opened this issue Oct 20, 2021 · 0 comments
Open

integrate fluentd with nats streaming #3

Mostafakhedri opened this issue Oct 20, 2021 · 0 comments

Comments

@Mostafakhedri
Copy link

Mostafakhedri commented Oct 20, 2021

Hi, I tried to integrate my pub/sub fluentd with nats streaming. I used these output and input fluentd plugins for nats streaming. Everything works and no problem. But consuming data from nats streaming and push them to elasticsearch is very very slow. I'm almost sure that in/out msgs/s in channel is equal. Everything that publish to nats channel, all of them in the other side consumed. I found this from compare of two metrics as bellow. I think publishing data in nats channel has a problem and very slow.

image

My input and output configuration as bellow too:

output:

@type nats-streaming
server "x.x.x.x:4222"
client_id "out-#{Socket.gethostname}-#{worker_id}"
cluster_id nat-streaming

<format>
  @type json
</format>

input:
@type nats-streaming
server "x.x.x.x:4222"
cluster_id nat-streaming
channel xxxx
client_id "in-#{Socket.gethostname}-#{worker_id}"
queue fluentd2
durable_name xxxx
start_at new_only
max_consume_interval 300

I'll very happy to know your answer.

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

No branches or pull requests

1 participant