You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Product: Tarantool Since: 3.1 Root document: not created yet (#4129) SME: @ ImeevMA
Details
The new mode option is now supported by the call() and filter()
functions from the experimental.connpool module. This option allows to
filter candidates based on their read-only status.
The filter() function supports three values of the mode option:
nil means that the read_only status of the instance is not
checked;
ro means that only instances with read_only == true are
considered;
rw means that only instances with read_only == false are
considered.
The call() function supports five values of the mode option:
nil means that the read_only status of the instance is not
checked when instance is selected to execute call();
ro means that only instances with read_only == true are
considered when instance is selected to execute call();
rw means that only instances with read_only == false are
considered when instance is selected to execute call().
prefer_ro means that call() will only be executed on instances
with read_only == false if it is not possible to execute it on
instances with read_only == true;
prefer_rw means that call() will only be executed on instances
with read_only == true if it is not possible to execute it on
instances with read_only == false.
Note that if this option is not nil, a connection will be attempted to
each instance in the config if a connection does not exist. This means
that any of these functions can potentially block for a maximum of <number of instances> * 10 seconds.
Requested by @ ImeevMA in tarantool/tarantool@60fdffb.
The text was updated successfully, but these errors were encountered:
Related dev. issue(s): tarantool/tarantool#9930
Parent doc. issue(s): #4129
Product: Tarantool
Since: 3.1
Root document: not created yet (#4129)
SME: @ ImeevMA
Details
The new
mode
option is now supported by thecall()
andfilter()
functions from the
experimental.connpool
module. This option allows tofilter candidates based on their
read-only
status.The
filter()
function supports three values of themode
option:nil
means that theread_only
status of the instance is notchecked;
ro
means that only instances withread_only == true
areconsidered;
rw
means that only instances withread_only == false
areconsidered.
The
call()
function supports five values of themode
option:nil
means that theread_only
status of the instance is notchecked when instance is selected to execute
call()
;ro
means that only instances withread_only == true
areconsidered when instance is selected to execute
call()
;rw
means that only instances withread_only == false
areconsidered when instance is selected to execute
call()
.prefer_ro
means thatcall()
will only be executed on instanceswith
read_only == false
if it is not possible to execute it oninstances with
read_only == true
;prefer_rw
means thatcall()
will only be executed on instanceswith
read_only == true
if it is not possible to execute it oninstances with
read_only == false
.Note that if this option is not
nil
, a connection will be attempted toeach instance in the config if a connection does not exist. This means
that any of these functions can potentially block for a maximum of
<number of instances> * 10
seconds.Requested by @ ImeevMA in tarantool/tarantool@60fdffb.
The text was updated successfully, but these errors were encountered: