优化配置

This commit is contained in:
zhouhao 2022-07-30 11:36:08 +08:00
parent b459f66925
commit 9c7a7a5afb
1 changed files with 3 additions and 10 deletions

View File

@ -18,10 +18,10 @@ spring:
elasticsearch:
client:
reactive:
endpoints: ${elasticsearch.client.host}:${elasticsearch.client.port}
endpoints: localhost:9201
max-in-memory-size: 100MB
socket-timeout: ${elasticsearch.client.socket-timeout}
connection-timeout: ${elasticsearch.client.socket-timeout}
socket-timeout: 5000
connection-timeout: 8000
easyorm:
default-schema: PUBLIC # 数据库默认的schema
dialect: h2 #数据库方言
@ -31,13 +31,6 @@ elasticsearch:
data-path: ./data/elasticsearch
port: 9201
host: 0.0.0.0
client:
host: localhost
port: 9201
max-conn-total: 128
connect-timeout: 5000
socket-timeout: 5000
connection-request-timeout: 8000
index:
default-strategy: time-by-month #默认es的索引按月进行分表, direct则为直接操作索引.
settings: