RedisGears Configuration ¶
RedisGears provides configuration options to control its operation. These options can be set when the module is bootstrapped and in some cases also during runtime.
The following sections describe the configuration options the means for setting them.
Bootstrap Configuration
Configuration options can be set when the module is loaded. The options are passed as a list of option names and their respective values. Configuration is supported both when using the
loadmodule
configuration directive as well as via the
Redis
MODULE LOAD
command
.
Example: Setting configuration options
For setting the module's configuration options from the command line use:
redis-server --loadmodule /path/to/redisgears.so <option> <value> ...
For setting the module's configuration options in with .conf file use the following format:
loadmodule /path/to/redisgears.so <option> <value> ...
For setting the module's configuration with the
MODULE LOAD
command use:
127.0.0.1:6379> MODULE LOAD /path/to/redisgears.so <option> <value> ...
Runtime Configuration
Some configuration options may be set at runtime. Refer to each option's description for runtime configurability.
Related commands
The following RedisGears commands are related to configuration:
MaxExecutions ¶
The MaxExecutions configuration option controls the maximum number of executions that will be saved in the executions list. Once this threshold value is reached, older executions will be deleted from the list by order of their creation (FIFO). Only executions that had finished (e.g. the 'done' or 'aborted' status ) are deleted.
Expected Value
Integer
Default Value
"1000"
Runtime Configurability
Supported.
Note
Changing this option will impact the creation of new executions only.
Examples
127.0.0.1:6379> RG.CONFIGSET MaxExecutions 10
OK
MaxExecutionsPerRegistration ¶
The MaxExecutionsPerRegistration configuration option controls the maximum number of executions that are saved in the list per registration. Once this threshold value is reached, older executions for that registration will be deleted from the list by order of their creation (FIFO). Only executions that had finished (e.g. the 'done' or 'aborted' status ) are deleted.
Expected Value
Integer
Default Value
"100"
Runtime Configurability
Supported.
Note
Changing this option will impact the creation of new executions only.
Examples
$ 127.0.0.1:6379> RG.CONFIGSET MaxExecutionsPerRegistration 10
OK
ProfileExecutions ¶
The ProfileExecutions configuration option controls whether executions are profiled.
Profiling impacts performance
Profiling requires reading the server's clock, which is a costly operation in terms of performance. Execution profiling is recommended only for debugging purposes and should be disabled in production.
Expected Value
0 (disabled) or 1 (enabled)
Default Value
"0"
Runtime Configurability
Supported
PythonAttemptTraceback ¶
The PythonAttemptTraceback configuration option controls whether the engine tries producing stack traces for Python runtime errors.
Expected Value
0 (disabled) or 1 (enabled)
Default Value
"1"
Runtime Configurability
Supported
DownloadDeps ¶
The DownloadDeps configuration option controls whether or not RedisGears will attempt to download missing Python dependencies.
Expected Value
0 (disabled) or 1 (enabled)
Default Value
"1"
Runtime Configurability
Not Supported
DependenciesUrl ¶
The DependenciesUrl configuration option controls the location from which RedisGears tries to download its Python dependencies.
Expected Value
URL-like string
Default Value
The default value is specific to the RedisGears version.
Runtime Configurability
Not Supported
DependenciesSha256 ¶
The DependenciesSha256 configuration option specifies the SHA265 hash value of the Python dependencies. This value is verified after the dependencies have been downloaded and will stop the server's startup in case of a mismatch.
Expected Value
String
Default Value
The default value is specific to the RedisGears version.
Runtime Configurability
Not Supported
PythonInstallationDir ¶
The PythonInstallationDir configuration option specifies the path for RedisGears' Python dependencies.
Expected Value
String
Default Value
/var/opt/redislabs/modules/rg
Runtime Configurability
Not Supported
CreateVenv ¶
The CreateVenv configuration option controls whether the engine will create a virtual Python environment.
Expected Value
0 (disabled) or 1 (enabled)
Default Value
"0"
Runtime Configurability
Not Supported
ExecutionThreads ¶
The ExecutionThreads configuration option controls the number of threads that will run executions.
Expected Value
Any integer greater than 0
Default Value
"3"
Runtime Configurability
Not Supported
ExecutionMaxIdleTime ¶
The ExecutionMaxIdleTime configuration option controls the maximal amount of idle time (in milliseconds) before execution is aborted. Idle time means no progress is made by the execution. The main reason for idle time is an execution that's blocked on waiting for records from another shard that had failed (i.e. crashed). In that case, the execution will be aborted after the specified time limit. The idle timer is reset once the execution starts progressing again.
Expected Value
Any integer greater than 0
Default Value
"5 seconds"
Runtime Configurability
Supported
PythonInstallReqMaxIdleTime ¶
The PythonInstallReqMaxIdleTime configuration option controls the maximal amount of idle time (in milliseconds) before Python's requirements installation is aborted. Idle time means that the installation makes no progress. The main reason for idle time is the same as for ExecutionMaxIdleTime .
The command is available as of version 1.0.1
Expected Value
Any integer greater than 0
Default Value
30000
Runtime Configurability
Supported
SendMsgRetries ¶
The SendMsgRetries configuration option controls the maximum number of retries for sending a message between RedisGears' shards. When a message is sent and the shard disconnects before acknowledging it, or when it returns an error, the message will be resent until this threshold is met. Setting the value to 0 means unlimited retries.
The command is available as of version 1.0.1
Expected Value
Any integer greater or eqaul 0
Default Value
3
Runtime Configurability
Supported