LUNA Streams configuration#
This section describes the parameters of the LUNA Streams service.
You can configure the service using the LUNA Configurator service.
For LUNA PLATFORM services settings, see the LUNA PLATFORM administrator manual.
LUNA_STREAMS_DB section#
This section sets connection settings to the created LUNA Streams database.
Db_type parameter#
The parameter sets the type of database used. Two options are available - "postgres" or "oracle".
The default type is "postgres".
"db_type": "postgres"
Db_user parameter#
The parameter specifies the database username.
The default username is "luna".
"db_user": "luna"
Db_password parameter#
The parameter sets the database password.
The default password is "luna".
"db_password": "luna"
Db_name parameter#
The parameter sets the database name for type "postgres" and the name of the SID for type "oracle" to connect to.
The default name is "luna_streams".
"db_name": "luna_streams"
Db_host parameter#
The parameter sets the IP address of the server with the LUNA Streams database.
The default address is "127.0.0.1". This address means that the LUNA Streams database located on the server with LUNA Configurator will be used. If the database is located on another server, then in this parameter you should specify the correct IP address of the server with the database.
"db_host": "luna_streams"
Db_port parameter#
The parameter sets LUNA Streams database listener port.
The default port is "5432" for "postgres" and "1521" for "oracle".
"db_port": 5432
Connection_pool_size parameter#
The parameter sets the database connection pool size.
The default value is "5".
"db_settings": {
"connection_pool_size": 5
}
LUNA_STREAMS_LOGGER section#
This section sets the logging settings for the LUNA Streams service.
Log_level parameter#
The parameter sets the level of debug printing, by priority: "ERROR", "WARNING", "INFO", "DEBUG".
"log_level": "INFO"
The default value is "INFO".
Folder_with_logs parameter#
The parameter sets the folder where the logs are stored (the relative path starts from the directory with the application).
The default value is "./".
"folder_with_logs": "./"
Log_time parameter#
The parameter sets the time format used in log entries: "LOCAL" or "UTC".
"log_time": "LOCAL"
The default value is "LOCAL".
Log_to_stdout parameter#
The parameter enables you to send the log to standard output (stdout). Two options are available - "true" or "false".
"log_to_stdout": true
The default value is "true".
Log_to_file parameter#
The parameter enables you to send the log to a file. Two options are available - "true" or "false".
"log_to_file": true
The default value is "true".
Multiline_stack_trace parameter#
The parameter enables or disables multi-line traces in logs. Two options are available - "true" or "false".
"multiline_stack_trace": true
The default value is "true".
LUNA_LICENSES_ADDRESS section#
This section sets the settings for connecting to the LUNA Licenses service.
Origin parameter#
The parameter sets the protocol, IP address and port of the LUNA Licenses service. The IP address "127.0.0.1" means that the LUNA Licenses service located on the server with LUNA Configurator will be used. If the service is located on another server, then in this parameter you need to specify the correct IP address of the server running the LUNA Licenses service.
"origin": "http://127.0.0.1:5120",
The default value is "http://127.0.0.1:5120".
Api_version parameter#
This parameter sets the API version of the LUNA Licenses service. The available API version is "1".
"api_version": 1
STREAM_WORKER_ASYNC_LOCK_TIMEOUT parameter#
Parameter sets timeout of the LUNA Streams instance to lock a row in a database table in seconds in the range (0, 1]. The value of this setting should be increased if the stream statuses are not updated, which may be due to a slow connection from the service to the database.
The default value is "10".
STREAM_STATUS_OBSOLETING_PERIOD parameter#
Parameter sets stream status obsolescence period in seconds in range (0, 86400]. For this period of time, the FaceStream worker should transfer the LUNA Streams report. Otherwise, the status of the stream will be changed to "restart", and the belated report will be rejected.
The default value is "0.1".
LUNA_STREAMS_ACTIVE_PLUGINS parameter#
Parameter sets the list of active plugins (see the information about plugins workflow in the LUNA PLATFORM 5 administrator manual).
The default value is "[]".
STORAGE_TIME parameter#
Parameter sets time format used in LUNA Streams database records: "LOCAL" or "UTC".
The default value is "LOCAL".
INFLUX_MONITORING section#
In this section, settings for monitoring LUNA PLATFORM services are set.
Send_data_for_monitoring parameter#
The parameter enables you to enable or disable sending monitoring data to InfluxDB. Two options are available - "0" or "1".
"send_data_for_monitoring": 1
The default value is "1".
Use_ssl parameter#
The parameter enables you to use HTTPS to connect to InfluxDB. Two options are available - "0" or "1".
"use_ssl": 0
The default value is "0".
Flushing_period parameter#
Parameter sets frequency of sending monitoring data to InfluxDB (in seconds).
"flushing_period": 1
The default is 1 second.
Host parameter#
Parameter sets IP address of server with InfluxDB 2.x.
The default address is "127.0.0.1". This address means that InfluxDB 2.x will be used, located on the server with LUNA Configurator. If InfluxDB 2.x is located on a different server, then you should specify the correct InfluxDB 2.x IP address in this parameter.
"host": "127.0.0.1"
Port parameter#
Parameter sets InfluxDB 2.x port.
"port": 8086
The default value is "8086".
Bucket parameter#
Parameter sets InfluxDB 2.x bucket name.
"bucket": "luna_monitoring"
The default bucket name is "luna_monitoring".
Organization parameter#
Parameter sets InfluxDB 2.x workspace.
"organization": "luna"
The default value is "luna".
Token parameter#
Parameter sets InfluxDB 2.x authentication token.