es urls
This commit is contained in:
parent
7145f7b2f2
commit
12ebae519a
|
@ -53,7 +53,7 @@ public class LiteratureBrokerServiceConfiguration extends AbstractElasticsearchC
|
|||
@Bean
|
||||
public RestHighLevelClient elasticsearchClient() {
|
||||
final ClientConfiguration clientConfiguration = ClientConfiguration.builder()
|
||||
.connectedTo(elasticSearchProperties.getClusterNodes())
|
||||
.connectedTo(elasticSearchProperties.getClusterNodes().split(","))
|
||||
.withConnectTimeout(elasticSearchProperties.getConnectionTimeout())
|
||||
.withSocketTimeout(elasticSearchProperties.getSocketTimeout())
|
||||
.build();
|
||||
|
|
|
@ -47,8 +47,6 @@ lbs.task.deleteOldEvents.cron = 0 0 4 1/1 * ?
|
|||
lbs.task.deleteOldNotifications.cron = 0 0 5 1/1 * ?
|
||||
lbs.task.subscriptionEventsMatcher.cron = 0 0 6 1/1 * ?
|
||||
|
||||
spring.data.elasticsearch.cluster-name = ${lbs.elastic.clusterName}
|
||||
spring.data.elasticsearch.cluster-nodes = ${lbs.elastic.clusterNodes}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ public class BrokerConfiguration extends AbstractElasticsearchConfiguration {
|
|||
@Bean
|
||||
public RestHighLevelClient elasticsearchClient() {
|
||||
final ClientConfiguration clientConfiguration = ClientConfiguration.builder()
|
||||
.connectedTo(elasticSearchProperties.getClusterNodes())
|
||||
.connectedTo(elasticSearchProperties.getClusterNodes().split(","))
|
||||
.withConnectTimeout(elasticSearchProperties.getConnectionTimeout())
|
||||
.withSocketTimeout(elasticSearchProperties.getSocketTimeout())
|
||||
.build();
|
||||
|
|
|
@ -39,8 +39,6 @@ lbs.task.deleteOldEvents.cron = 0 0 4 1/1 * ?
|
|||
lbs.task.deleteOldNotifications.cron = 0 0 5 1/1 * ?
|
||||
lbs.task.subscriptionEventsMatcher.cron = 0 0 6 1/1 * ?
|
||||
|
||||
spring.data.elasticsearch.cluster-name = ${lbs.elastic.clusterName}
|
||||
spring.data.elasticsearch.cluster-nodes = ${lbs.elastic.clusterNodes}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue