Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
ef62a4f1
Commit
ef62a4f1
authored
Dec 12, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(statis):性能
1.大屏接口优化
parent
c863c6fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
ElasticSearchClientConfig.java
.../boot/module/jg/biz/config/ElasticSearchClientConfig.java
+3
-1
ElasticSearchClientConfig.java
...oot/module/jyjc/biz/config/ElasticSearchClientConfig.java
+6
-1
ElasticSearchClientConfig.java
...boot/module/tcm/biz/config/ElasticSearchClientConfig.java
+3
-4
ElasticSearchClientConfig.java
...boot/module/ymt/biz/config/ElasticSearchClientConfig.java
+3
-4
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/config/ElasticSearchClientConfig.java
View file @
ef62a4f1
...
...
@@ -36,7 +36,9 @@ public class ElasticSearchClientConfig {
RestClientBuilder
builder
=
RestClient
.
builder
(
httpHosts
);
builder
.
setHttpClientConfigCallback
(
httpClientBuilder
->
{
httpClientBuilder
.
disableAuthCaching
();
return
httpClientBuilder
.
setDefaultCredentialsProvider
(
credentialsProvider
);
return
httpClientBuilder
.
setDefaultCredentialsProvider
(
credentialsProvider
)
.
setMaxConnTotal
(
200
)
.
setMaxConnPerRoute
(
60
);
});
// 该方法接收一个RequestConfig.Builder对象,对该对象进行修改后然后返回。
builder
.
setRequestConfigCallback
(
requestConfigBuilder
->
{
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/config/ElasticSearchClientConfig.java
View file @
ef62a4f1
...
...
@@ -34,7 +34,11 @@ public class ElasticSearchClientConfig {
try
{
HttpHost
[]
httpHosts
=
Arrays
.
stream
(
uris
.
split
(
","
)).
map
(
HttpHost:
:
create
).
toArray
(
HttpHost
[]::
new
);
RestClientBuilder
builder
=
RestClient
.
builder
(
httpHosts
);
builder
.
setHttpClientConfigCallback
(
httpClientBuilder
->
httpClientBuilder
.
setDefaultCredentialsProvider
(
credentialsProvider
));
builder
.
setHttpClientConfigCallback
(
httpClientBuilder
->
httpClientBuilder
.
setDefaultCredentialsProvider
(
credentialsProvider
)
.
setMaxConnTotal
(
200
)
.
setMaxConnPerRoute
(
50
));
// 该方法接收一个RequestConfig.Builder对象,对该对象进行修改后然后返回。
builder
.
setRequestConfigCallback
(
requestConfigBuilder
->
{
// 连接超时(默认为1秒)
...
...
@@ -43,6 +47,7 @@ public class ElasticSearchClientConfig {
.
setSocketTimeout
(
60
*
1000
);
});
return
new
RestHighLevelClient
(
builder
);
}
catch
(
Exception
e
)
{
throw
new
IllegalStateException
(
"Invalid ES nodes "
+
"property '"
+
uris
+
"'"
,
e
);
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/config/ElasticSearchClientConfig.java
View file @
ef62a4f1
...
...
@@ -34,10 +34,9 @@ public class ElasticSearchClientConfig {
try
{
HttpHost
[]
httpHosts
=
Arrays
.
stream
(
uris
.
split
(
","
)).
map
(
HttpHost:
:
create
).
toArray
(
HttpHost
[]::
new
);
RestClientBuilder
builder
=
RestClient
.
builder
(
httpHosts
);
builder
.
setHttpClientConfigCallback
(
httpClientBuilder
->
{
httpClientBuilder
.
disableAuthCaching
();
return
httpClientBuilder
.
setDefaultCredentialsProvider
(
credentialsProvider
);
});
builder
.
setHttpClientConfigCallback
(
httpClientBuilder
->
httpClientBuilder
.
disableAuthCaching
()
.
setDefaultCredentialsProvider
(
credentialsProvider
).
setMaxConnTotal
(
200
)
.
setMaxConnPerRoute
(
60
));
// 该方法接收一个RequestConfig.Builder对象,对该对象进行修改后然后返回。
builder
.
setRequestConfigCallback
(
requestConfigBuilder
->
{
// 连接超时(默认为1秒)
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/config/ElasticSearchClientConfig.java
View file @
ef62a4f1
...
...
@@ -34,10 +34,9 @@ public class ElasticSearchClientConfig {
try
{
HttpHost
[]
httpHosts
=
Arrays
.
stream
(
uris
.
split
(
","
)).
map
(
HttpHost:
:
create
).
toArray
(
HttpHost
[]::
new
);
RestClientBuilder
builder
=
RestClient
.
builder
(
httpHosts
);
builder
.
setHttpClientConfigCallback
(
httpClientBuilder
->
{
httpClientBuilder
.
disableAuthCaching
();
return
httpClientBuilder
.
setDefaultCredentialsProvider
(
credentialsProvider
);
});
builder
.
setHttpClientConfigCallback
(
httpClientBuilder
->
httpClientBuilder
.
disableAuthCaching
().
setDefaultCredentialsProvider
(
credentialsProvider
)
.
setMaxConnTotal
(
200
)
.
setMaxConnPerRoute
(
60
));
// 该方法接收一个RequestConfig.Builder对象,对该对象进行修改后然后返回。
builder
.
setRequestConfigCallback
(
requestConfigBuilder
->
{
// 连接超时(默认为1秒)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment