Skip to content

Commit 18c735f

Browse files
authored
Make search connection pool configurable (#3811)
* Make search connection pool configurable * Fix property comment in config
1 parent ca509db commit 18c735f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/resources/crafter/studio/studio-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,12 @@ studio.search.timeout.connect: -1
740740
studio.search.timeout.socket: -1
741741
# The number of threads to use, if set to -1 the default will be used
742742
studio.search.threads: -1
743-
# The number of threads to use, if set to -1 the default will be used
743+
# Whether to enable TCP keep-alive on search sockets (boolean)
744744
studio.search.keepAlive: false
745+
# The max total connections, if set to -1 the default will be used
746+
studio.search.maxTotalConnections: -1
747+
# The max connections per route, if set to -1 the default will be used
748+
studio.search.maxConnectionsPerRoute: -1
745749
# Suffix added to the name for authoring indexes
746750
studio.search.index.suffix: -authoring
747751
# Name of the field for paths

src/main/resources/crafter/studio/studio-search-context.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
<property name="socketTimeout" value="#{studioConfiguration.getProperty('studio.search.timeout.socket')}"/>
2828
<property name="threadCount" value="#{studioConfiguration.getProperty('studio.search.threads')}"/>
2929
<property name="socketKeepAlive" value="#{studioConfiguration.getProperty('studio.search.keepAlive')}"/>
30+
<property name="maxTotalConnections" value="#{studioConfiguration.getProperty('studio.search.maxTotalConnections')}"/>
31+
<property name="maxConnectionsPerRoute" value="#{studioConfiguration.getProperty('studio.search.maxConnectionsPerRoute')}"/>
3032
</bean>
3133

3234
<bean id="authoringSearchService" class="org.craftercms.studio.impl.v2.service.search.PermissionAwareSearchService">

0 commit comments

Comments
 (0)