m
curl http://192.168.10.21:8124?query=select%201
?
Size: a a a
m
curl http://192.168.10.21:8124?query=select%201
AK
AK
curl -v http://192.168.10.21:8123/ping
* Trying 192.168.10.21:8123...
* TCP_NODELAY set
* Connected to 192.168.10.21 (192.168.10.21) port 8123 (#0)
> GET /ping HTTP/1.1
> Host: 192.168.10.21:8123
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Date: Fri, 12 Feb 2021 08:41:07 GMT
< Connection: Close
<
There is no handle /ping
Use / or /ping for health checks.
Or /replicas_status for more sophisticated health checks.
Send queries from your program with POST method or GET /?query=...
Use clickhouse-client:
For interactive data analysis:
clickhouse-client
For batch query processing:
clickhouse-client --query='SELECT 1' > result
clickhouse-client < query > result
* Closing connection 0
❌
RESTART REPLICA
. в след раз попробуюAK
D
RESTART REPLICA
. в след раз попробуюD
❌
AK
D
AB
D
AK
AK
AK
AB
E
AK
AB
AK