I'm using clustered clickhouse database. I want to define a wildfly datasource to connect clustered clickhouse. How should I define Connection URL
in wildfly datasource?
Need to use one of the existing JDBC drivers and define connection URL like this:
<datasources ..>
<datasource ..>
<!-- .. -->
<connection-url>jdbc:clickhouse://<host>:<port>[/<database>]</connection-url>
<!-- .. -->
</datasource ..>
</datasources>
I found chproxy , This allows me to load balancing clickhouse cluster. You can configure it to which nodes are in the cluster and use it with one connection url.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.