Interface OpenSearchConfig


  • @ConfigMapping(prefix="quarkus.opensearch")
    @ConfigRoot(phase=RUN_TIME)
    public interface OpenSearchConfig
    • Method Detail

      • protocol

        @WithDefault("http")
        String protocol()
        The protocol to use when contacting OpenSearch servers. Set to "https" to enable SSL/TLS.
      • username

        Optional<String> username()
        The username for basic HTTP authentication.
      • password

        Optional<String> password()
        The password for basic HTTP authentication.
      • connectionTimeout

        @WithDefault("15S")
        Duration connectionTimeout()
        The connection timeout.
      • socketTimeout

        @WithDefault("30S")
        Duration socketTimeout()
        The socket timeout.
      • maxConnections

        @WithDefault("20")
        int maxConnections()
        The maximum number of connections to all the OpenSearch servers.
      • maxConnectionsPerRoute

        @WithDefault("10")
        int maxConnectionsPerRoute()
        The maximum number of connections per OpenSearch server.
      • ioThreadCounts

        Optional<Integer> ioThreadCounts()
        The number of IO thread. By default, this is the number of locally detected processors.

        Thread counts higher than the number of processors should not be necessary because the I/O threads rely on non-blocking operations, but you may want to use a thread count lower than the number of processors.