-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[filebeat]Suspect Redis connection pool configuration issue causing discrepancy between maximum connection settings and actual results #36678
Comments
This issue doesn't have a |
@wang-qijia Thank you for opening an issue. Could you please elaborate and could you also please send the configuration? |
filebeat.inputs:
- type: redis
hosts: ["localhost:6379"]
timeout: 1
scan_frequency: 2
maxconn: 1
output.console:
pretty: true Maximum number of connections : https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-redis.html#redis-maxconn |
@wang-qijia If you see: beats/filebeat/input/redis/input.go Line 130 in e1aa970
You'd notice the Definition of // Maximum number of idle connections in the pool.
MaxIdle int // Maximum number of connections allocated by the pool at a given time.
// When zero, there is no limit on the number of connections in the pool.
MaxActive int Ref: https://pkg.go.dev/github.com/gomodule/[email protected]/redis#Pool A good thread on StackOverflow discussing about Also, if you read the definition of |
Thank you for your response. What I aim to achieve is to ensure that the maximum number of connections remains within the expected limit and that the slow log collection does not impact the core business operations. |
Hi! We're labeling this issue as |
Description:
I am experiencing an issue with the maximum connection settings in Redis not matching the expected behavior. I suspect that there might be a problem with the Redis connection pool configuration.
Specifically, I am using Filebeat to collect Redis slow logs, but the maximum number of connections that are being established does not align with the settings I have configured. This has led me to suspect that there might be an issue with the connection pool parameters for Redis.
Could someone please help me troubleshoot this issue? I would like to understand if my Redis connection pool configuration is incorrect or if there are any other potential reasons for this discrepancy.
Thank you!
The text was updated successfully, but these errors were encountered: