You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2026/03/24 18:11:28 UTC
(solr-mcp) branch main updated: feat: enable virtual threads (#67)
This is an automated email from the ASF dual-hosted git repository.
epugh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-mcp.git
The following commit(s) were added to refs/heads/main by this push:
new 168a72e feat: enable virtual threads (#67)
168a72e is described below
commit 168a72ead601e46818e3d7887ab0cd9c748915a0
Author: Aditya Parikh <ad...@gmail.com>
AuthorDate: Tue Mar 24 14:11:22 2026 -0400
feat: enable virtual threads (#67)
Enable Java virtual threads globally via spring.threads.virtual.enabled=true.
Virtual threads are lightweight and have negligible overhead for STDIO mode
while improving concurrency for HTTP mode where multiple MCP clients can
connect and each request blocks on Solr I/O.
Signed-off-by: Aditya Parikh <ad...@gmail.com>
Signed-off-by: adityamparikh <ad...@gmail.com>
---
src/main/resources/application.properties | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 4f4c226..1592a77 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -5,3 +5,5 @@ spring.ai.mcp.server.name=${spring.application.name}
spring.ai.mcp.server.version=1.0.0
# Solr configuration
solr.url=${SOLR_URL:http://localhost:8983/solr/}
+# Enable virtual threads for improved concurrency
+spring.threads.virtual.enabled=true