Bugzilla – Attachment 89781 Details for
Bug 22705
Change default value of Elasticsearch cxn_pool to 'Static'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22705: Change default value of cxn_pool to 'Static'
Bug-22705-Change-default-value-of-cxnpool-to-Stati.patch (text/plain), 1.58 KB, created by
Julian Maurice
on 2019-05-15 06:45:15 UTC
(
hide
)
Description:
Bug 22705: Change default value of cxn_pool to 'Static'
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2019-05-15 06:45:15 UTC
Size:
1.58 KB
patch
obsolete
>From e0104780423f227fafb19e16a43b9b9c393d13a2 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 15 May 2019 08:41:01 +0200 >Subject: [PATCH] Bug 22705: Change default value of cxn_pool to 'Static' > >'Static' is the default value of Search::Elasticsearch and for a good >reason : it works in most cases, unlike the 'Sniff' option >--- > Koha/SearchEngine/Elasticsearch.pm | 2 +- > etc/koha-conf.xml | 3 +++ > 2 files changed, 4 insertions(+), 1 deletion(-) > >diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm >index b46537d112..8a52d574ec 100644 >--- a/Koha/SearchEngine/Elasticsearch.pm >+++ b/Koha/SearchEngine/Elasticsearch.pm >@@ -144,7 +144,7 @@ sub get_elasticsearch_params { > > $es->{key_prefix} = 'es_'; > $es->{client} //= '5_0::Direct'; >- $es->{cxn_pool} //= 'Sniff'; >+ $es->{cxn_pool} //= 'Static'; > $es->{request_timeout} //= 60; > > return $es; >diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml >index b6c9d52f13..c8473c6c6b 100644 >--- a/etc/koha-conf.xml >+++ b/etc/koha-conf.xml >@@ -165,6 +165,9 @@ __PAZPAR2_TOGGLE_XML_POST__ > <elasticsearch> > <server>localhost:9200</server> > <index_name>koha___DB_NAME__</index_name> >+ >+ <!-- See https://metacpan.org/pod/Search::Elasticsearch#cxn_pool --> >+ <cxn_pool>Static</cxn_pool> > </elasticsearch> > <!-- Uncomment the following line if you want to override the Elasticsearch default index settings --> > <!-- <elasticsearch_index_config>__KOHA_CONF_DIR__/searchengine/elasticsearch/index_config.yaml</elasticsearch_index_config> --> >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22705
:
89781
|
89897
|
90033