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_CONFIGURATOR
| Parameter name |
Default value |
Description |
| USE_CONFIGURATOR |
0 |
Load configs from LUNA Configurator. |
| LUNA_CONFIGURATOR_ORIGIN |
http://127.0.0.1:5070 |
LUNA Configurator protocol, IP address, and port. |
| LUNA_CONFIGURATOR_API |
1 |
API version of the LUNA Configurator. |
LUNA_STREAMS_DB
| Parameter name |
Default value |
Description |
| DB_TYPE |
postgres |
[string] Type of database: "postgres" or "oracle"; "postgres" type is used by default. |
| DB_USER |
luna |
[string] Database username. |
| DB_PASSWORD |
luna |
[string] Database password. |
| DB_HOST |
127.0.0.1 |
[string] Database IP address. |
| DB_PORT |
5432 |
[integer] Database listener port, 5432 - default for "postgres" type, 1521 - default for "oracle" type. |
| DB_NAME |
luna_streams |
[string] Database name for "postgres" type, SID name for "oracle" type. |
LUNA_STREAMS_DB.DB_SETTINGS
| Parameter name |
Default value |
Description |
| CONNECTION_POOL_SIZE |
5 |
[integer] Database connection pool size. |
LUNA_LICENSES_ADDRESS
| Parameter name |
Default value |
Description |
| origin |
http://127.0.0.1:5120 |
LUNA Faces protocol, IP address, and port. |
| api_version |
1 |
API version of the LUNA Faces. |
LUNA_STREAMS_LOGGER
| Parameter name |
Default value |
Description |
| LOG_LEVEL |
INFO |
[string] Level of debug print, by priority: "ERROR", "WARNING", "INFO", "DEBUG". |
| FOLDER_WITH_LOGS |
./ |
[string] Folder, where logs are saved (relative path begins in directory with application). |
| LOG_TIME |
LOCAL |
[string] Time format used in log records: "LOCAL" or "UTC". |
| MAX_LOG_FILE_SIZE |
1024 |
[integer] Maximum log file size in megabytes before performing rotation (0 - without rotation). |
| LOG_TO_STDOUT |
1 |
Send log to stdout. |
| LOG_TO_FILE |
1 |
Send log to file. |
| MULTILINE_STACK_TRACE |
1 |
Allow multiline stack trace in logs. |
INFLUX_MONITORING
| Parameter name |
Default value |
Description |
| SEND_DATA_FOR_MONITORING |
0 |
[integer] Send data for monitoring to InfluxDB. |
| ORGANIZATION |
|
[string] InfluxDB 2.x workspace. |
| TOKEN |
|
[string] InfluxDB 2.x authentication token. |
| BUCKET |
luna_monitoring |
[string] InfluxDB 2.x bucket name. |
| HOST |
127.0.0.1 |
[string] InfluxDB IP address. |
| PORT |
8086 |
[integer] InfluxDB port. |
| USE_SSL |
0 |
[integer] Use HTTPS to connect to InfluxDB. |
| FLUSHING_PERIOD |
1 |
[integer] Frequency of sending monitoring data to InfluxDB (in seconds). |
OTHER
| Parameter name |
Default value |
Description |
| STORAGE_TIME |
UTC |
[string] Time format used in database records: "LOCAL" or "UTC". |
| LUNA_STREAMS_ACTIVE_PLUGINS |
[] |
List of active plugins. |
| STREAM_STATUS_OBSOLETING_PERIOD |
20 |
[float] 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. |
| STREAM_WORKER_ASYNC_LOCK_TIMEOUT |
0.1 |
[float] 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. |