You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2019/06/20 19:33:57 UTC

[couchdb] branch dreyfus-by-default created (now 0d32708)

This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a change to branch dreyfus-by-default
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at 0d32708  Document config settings related to search system

This branch includes the following new commits:

     new 7dbd4d5  Further improve detection of Search system
     new 0d32708  Document config settings related to search system

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/02: Further improve detection of Search system

Posted by ko...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a commit to branch dreyfus-by-default
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 7dbd4d5a0cd67927e8ae030ec027db8699c5e1b5
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Tue Jun 18 23:14:57 2019 -0400

    Further improve detection of Search system
    
    The clouseau_rpc:version() call actually takes a few milliseconds to
    complete, so instead we first check for a hidden clouseau node already
    connected to our node. If we don't find it, we do the version() RPC.
---
 src/dreyfus/src/clouseau_rpc.erl | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/dreyfus/src/clouseau_rpc.erl b/src/dreyfus/src/clouseau_rpc.erl
index 38d6142..38247ff 100644
--- a/src/dreyfus/src/clouseau_rpc.erl
+++ b/src/dreyfus/src/clouseau_rpc.erl
@@ -93,11 +93,18 @@ version() ->
     rpc({main, clouseau()}, version).
 
 connected() ->
-    case version() of
-        {'EXIT', noconnection} ->
-            false;
-        _ ->
-            true
+    HiddenNodes = erlang:nodes(hidden),
+    case lists:member(clouseau(), HiddenNodes) of
+        true ->
+            true;
+        false ->
+            % We might have just booted up, so let's send a test RPC
+            case (catch version()) of
+                {ok, _} ->
+                    true;
+                _Err ->
+                    false
+            end
     end.
 
 rpc(Ref, Msg) ->


[couchdb] 02/02: Document config settings related to search system

Posted by ko...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a commit to branch dreyfus-by-default
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 0d32708d68432b127154757643f28efd20066330
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Thu Jun 20 14:43:42 2019 -0400

    Document config settings related to search system
---
 rel/overlay/etc/default.ini | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index 0d7ac6d..5a8d0f9 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -481,3 +481,32 @@ min_priority = 2.0
 
 [smoosh.ratio_views]
 min_priority = 2.0
+
+[dreyfus]
+; The name and location of the Clouseau Java service required to
+; enable Search functionality.
+; name = clouseau@127.0.0.1
+
+; CouchDB will try to re-connect to Clouseau using a bounded
+; exponential backoff with the following number of iterations.
+; retry_limit = 5
+
+; The default number of results returned from a global search query.
+; limit = 25
+
+; The default number of results returned from a search on a partition
+; of a database.
+; limit_partitions = 2000
+ 
+; The maximum number of results that can be returned from a global
+; search query (or any search query on a database without user-defined
+; partitions). Attempts to set ?limit=N higher than this value will
+; be rejected.
+; max_limit = 200
+
+; The maximum number of results that can be returned when searching
+; a partition of a database. Attempts to set ?limit=N higher than this
+; value will be rejected. If this config setting is not defined,
+; CouchDB will use the value of `max_limit` instead. If neither is
+; defined, the default is 2000 as stated here.
+; max_limit_partitions = 2000
\ No newline at end of file