如何在弹出引导中为Elasticsearch设置连接池

时间:2017-01-24 11:30:00

标签: spring elasticsearch spring-boot spring-data connection-pooling

我创建了一个spring boot应用程序,它使用spring boot starter data elasticsearch连接到elasticsearch。我想配置此应用程序以设置连接池。如何配置application.properties以支持它?

1 个答案:

答案 0 :(得分:1)

From the docs

  

spring.data.elasticsearch.properties。* =#用于配置客户端的其他属性。

虽然看起来默认TransportClient确实会建立池连接。