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

fix: prom sink changed to PoolingHttpClientConnectionManager for idle connection eviction #195

Merged
merged 5 commits into from Oct 27, 2022

Conversation

mayankrai09
Copy link
Contributor

We have recently started using Prom Sink, We are seeing NoHttpResponseException in log-

2022-09-28T12:20:59,632Z [pool-2-thread-1] WARN i.o.f.sink.prometheus.PromSink - caught class org.apache.http.NoHttpResponseException p-gopaydata-id-radar-router.gtfdata.io:80 failed to respond 2022-09-28T12:20:59,632Z [pool-2-thread-1] WARN i.o.f.sink.prometheus.PromSink - xxxxxxxxxxxxxxx.gtfdata.io:80 failed to respond org.apache.http.NoHttpResponseException: xxxxxxxxxxxxxxxxxx.gtfdata.io:80 failed to respond at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)

Fix - PoolingHttpClientConnectionManager will evict partially closed connection by default.

@mayankrai09
Copy link
Contributor Author

@lavkesh - Can we merge this PR?

@lavkesh lavkesh merged commit 3124615 into raystack:main Oct 27, 2022
sumitaich1998 added a commit that referenced this pull request Oct 31, 2022
… connection eviction (#195) (#197)

* fix: prom sink changed to BasicHttpClientConnectionManager for idle connection eviction

* fix: update default SINK_PROM_MAX_CONNECTIONS

* fix: changed default value for max prom connection to use default PoolingHttpClientConnectionManager

* fix: styling

* fix: added default value in doc

Co-authored-by: Mayank Rai <mayank.rai@gojek.com>

Co-authored-by: Mayank Rai <92782366+mayankrai09@users.noreply.github.com>
Co-authored-by: Mayank Rai <mayank.rai@gojek.com>
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

2 participants