All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ickhouse.client_3.1.2.2.source-code.reference.conf Maven / Gradle / Ivy

####################################
# Crobox Clickhouse Client Reference Config File #
####################################

# This is the reference config file that contains all the default settings.
# Make your edits/overrides in your application.conf.

crobox.clickhouse {
  # config for the client
  client {
    # can be single-host, cluster-aware, balancing-hosts
    connection {
      type = "single-host"
      host = "localhost"
      port = 8123
      # this is only used for cluster aware connection
      cluster = "cluster"
      health-check {
        # the minimum time between 2 health checks on the same host
        interval = 10 seconds
        # max idle connection timeout on a health check connection, if exceed the health check will fail
        timeout = 1 second
      }
      # interval between queries on the clusters table to update the clients cluster hosts
      scanning-interval = 60 seconds
      # when using cluster discovery if this is set to true then the
      # `crobox.clickhouse.client.connection.(host and port)` will be returned for get connection messages
      # until the first `system.clusters` query is returned
      # if set to false then we will stash the getConnection messages and unstash them after
      # the first `system.cluster` query is returned
      fallback-to-config-host-during-initialization = false
    }
    # how many times to retry the query if we had a stream/connection exception.
    # will not retry if clickhouse itself returns an error
    retries = 3
    # timeout for the query from clusters table to return a response
    host-retrieval-timeout = 1 second
    # size of the internal queue being used for the queries. If the queue is full then any new queries will be dropped
    buffer-size = 1024
    # maximum size that a single row can be when querying a source from clickhouse
    maximum-frame-length = 1048576
    # clickhouse http interface settings.
    settings {
      authentication {
        user = "default"
        password = ""
      }
      # profile = "default"
      http-compression = ${?crobox.clickhouse.client.http-compression} #backwards compatibility
      http-compression = false
      # https://clickhouse.yandex/docs/en/operations/settings/settings/
      custom {
      }
    }
  }
  # configs for the clickhouse indexing sink. Can be overriden by providing specific keys for the indexer name.
  # ex for name `important-indexer` indexer.important-indexer.flush-interval = 1 second
  indexer {
    # maximum number of items to buffer before doing an insert
    batch-size = 10000
    # number of max insert operations on each individual table
    concurrent-requests = 1
    # maximum time to buffer the data before doing an insert
    flush-interval = 5 seconds
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy