-
Notifications
You must be signed in to change notification settings - Fork 259
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
cannot reach clickhouse host? #92
Comments
We are meet same question, our chproxy version is v1.14.0, any body know how to fix it ? |
Can you verify if this request works without using agent, maybe via |
Facing the same issue intermittently? Are there updates on this? |
+1 [502] [ Id: 161FB3A842CE4135; User "default"(1) proxying as "default"(1) to "CHCluster03:8123"(6); RemoteAddr: "10.0.0.24:51324"; LocalAddr: "10.0.0.12:9090"; Duration: 16798 μs]: cannot reach CHCluster03:8123; query: .. CHProxy 1.14 |
@hagen1778 ,Verify that CK service is ok to request |
@sidanasparsh Try to adjust the timeout, but it doesn't seem to work |
Have you found the cause of this problem? |
Have you found the cause of this problem? |
+1, how to fix it? |
Proxy returns "cannot reach" error when it unable to establish connection to the given address https://github.com/Vertamedia/chproxy/blob/1758e7399fe57c97aeec8e55dd13c6300399969b/proxy.go#L186-L193. I do not know what causes this because a lot of things can be involved to affect reachability between "your_application"<=>"chproxy"<=>"clickhouse" scheme. |
We are experiencing the same kind of connection issues
We have done a full network check simulating the healthchecks with curl and checking for packet loss with mtr with no luck. The network is working flawless with not even a single packet lost or a failed curl. |
We have same problem with three clickhouse nodes. |
The default keepalive-timeout in CH is 3 seconds, while the default keepalive time used by net.Dialer is 15 seconds. That won't work. |
Using
seems to work fine so far. Based on #121 - but just lowering keepalive time/timeouts. |
Seems to make things better, but doesn't fix them unfortunately. |
|
@bzed I also found the similar phenomenon, but I think the HTTP param so I tune the |
@mchades very good |
client keepalive should substantially bigger than server keepalive ClickHouse/ClickHouse#52571 (comment) ClickHouse/ClickHouse#53068 -- |
That Did work! The following code demonstrates the related settings for HTTP Transport in the CH proxy. |
When using agents, what are the causes of the following problems?
Caused by: java.lang.Throwable: [ Id: 160857F337DC563A; User "tmplarge"(1) proxying as "default"(1) to "d085126100.aliyun.com:8123"(6); RemoteAddr: "10.13.56.73:51080"; LocalAddr: "10.85.129.101:9090"; Duration: 825 ?s]: cannot reach d085126100.aliyun.com:8123; query: "select timezone()\nFORMAT TabSeparatedWithNamesAndTypes;"
The text was updated successfully, but these errors were encountered: