Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space RED and version 7.1
Sv translation
languageru

Scroll Table Layout
widths60%,40%

СодержимоеОписание
{
 
    "Logging": {...},
см. Общая секция Logging
    "NookDir": "/opt/iw/tm5", 

В секции указывается рабочий каталог модуля. По умолчанию – /opt/iw/tm5.

    "Bookworm": {...},

см. Общая секция Bookworm

    "DebugBreak": false, 
Посылать ли SIGTRAP (SIGBREAK на Windows) при обработке любого исключения. Служит для отладки
    "UnsafeSignalHandlers":false,
Поддержка работы с необрабатываемыми сигналами. По умолчанию выключена (false). При установке значения true позволяется устанавливать в коде обработчики "небезопасных" сигналов (например, SIGSEVG). Добавлять, включать/выключать данную настройку не рекомендуется без предварительной консультации с разработчиками.

    "Analysis": {

 
        "Autoling": {
Секция настроек обучения автолингвиста.
            "AutolingConfigPath": "etc/config-perm/cas/autoling.conf",
Путь до конфигурационного файла технологии автолингвиста
"MinTermLength": 3, Минимальная длина терминов, найденных в тексте
  "MinTextWordCount": 10,Минимальное количество слов в тексте, которое будет анализироваться
"MinUniqueTermCount": 5, Минимальное количество найденных в тексте уникальных терминов, которое будет анализироваться
"RelevanceThreshold": 0.1Минимальный порог вероятности, ниже которого считается, что категория не сработала
        }, 
 
    "Config": {
 
        "EnableContentSchemaCheck": true, 
Включение (значение true) валидации содержимого файла cas_config.xml
        "EnableSchemaCheck": true, 
Включение проверки xml на xsd (отключение значительно увеличивает скорость загрузки конфигурации). Значение по умолчанию – true
        "SchemaPath": "etc/cas_config.xsd", 
Путь до xsd файла, по которому проверяется валидность xml конфигурации. Значение по умолчанию – etc/cas_config.xsd
        "Path": "etc/config/text_autoling",
Путь к конфигурационному файлу cas. Значение по умолчанию – etc/config/cas
        "TempDir": "tmp",
Путь до временных файлов сервиса 
        "VariativeDataDir": "var/tech/text_autoling"
 
        }, 
 
        "Curler": {
Секция настроек curl-бекэнда.

  "Active": {

 
               "AlertSocketPath": "wss://localhost/api/notify/listen/autolingUpdate", 
Адрес вебсокета, по которому приходит сигнал о смене конфигурации Active

"UpdaterHostName": "https://localhost/xapi/configurationState/autoling"

Адрес обновления конфигурации
            }, 
 
            "AlertTimeoutSec": 5, 
Таймаут, по истечении которого управление возвращается вызывающему потоку, если раньше не произошла смена конфигурации. 

"CurlOptSslVerifyHost": false,

Настройки соединения с http-сервером для загрузки обновлений конфигурации
Примечание: Служебные поля, не предназначены для редактирования пользователем




"CurlOptSslVerifyPeer": false,

  "CurlOptTcpKeepAlive": true, 

 "Sandbox": {
 
                "AlertSocketPath": "wss://localhost/api/notify/listen/autolingUpdateSb", 
Адрес вебсокета, по которому приходит сигнал о смене конфигурации Sandbox
 "UpdaterHostName": "https://localhost/xapi/configurationState/autoling_sb"
Адрес обновления конфигурации из Sand Box
  }, 
 
  "TokenPath": "/opt/iw/tm5/etc/config/access_control/tokens.list"
Путь до файла со списком токенов доступа
            },
 
    "ThriftServers": {...},
см. Общая секция ThriftServers
    "Discovery": {...}
см. Общая секция Discovery
    }
 
}
 

Unit-файл iw_text_autoling.service 

Scroll Table Layout
widths50%, 50%

Код
Описание

[Unit]

Раздел для определения метаданных демона и настройки его взаимодействия с другими демонами
Description=InfoWatch Traffic Monitor Text Automatic Classifier

Название демона

After=network-online.target iwtm-consul.service  Демоны, которые будут запущены до запуска текущего демона
  
[Service]Раздел настройки запуска демона

Type=simple

Тип запуска демона. simple - демон запускается и переходит в режим ожидания на консоли

PermissionsStartOnly=true

Запуск команд из ExecStartPre под пользователем root

ExecStartPre=/bin/bash /opt/iw/tm5/bin/check_coredumps.sh -d iw_text_autoling

Полный путь и аргументы команды, которые должны быть выполнены до запуска основного процесса

ExecStart=/opt/iw/tm5/bin/iw_text_autoling -p /opt/iw/tm5/etc

Полный путь и аргументы команды, которая должна быть выполнена для запуска демона. Запускается от пользователя, указанного в User

ExecStop=/bin/kill -s SIGTERM $MAINPID

Команда для остановки демона. Если не указано, процесс будет немедленно уничтожен, когда демон будет остановлен. Запускается от пользователя, указанного в User

ExecReload=/bin/kill -s SIGHUP $MAINPID

Команда для перезагрузки конфигурации демона, если она доступна. Запускается от пользователя, указанного в User

Restart=on-failure

Команда для рестарта демона, если он остановится или упадет. Значение on-failure означает, что демон будет перезапускаться, если он остановился с ненулевым кодом возврата или был завершен по сигналу (kill <pid_демона>)

RestartSec=5

Время ожидания перед попыткой перезапуска демона

RestartPreventExitStatus=SIGKILL

Команда, по которой можно принудительно завершить работу демона

TimeoutStopSec=0

Время, в течение которого система будет ждать остановки демона, прежде чем пометить его недоступный или завершенный принудительно

User=iwtm

Имя пользователя, от которого осуществляется запуск демона

Group=iwtm

Имя группы пользователя

LimitNOFILE=32768

Максимальное количество открытых файлов

LimitFSIZE=infinity

Максимальный размер файла (КБ). infinity - без ограничений

LimitNPROC=65536

Максимальное количество процессов

LimitCORE=infinity

Ограничение на размер coredump-файла (КБ)

LimitMEMLOCK=infinity

Максимальное заблокированное в памяти адресное пространство (КБ)
  

[Install]

Определение поведения демона, если он включен или отключен

WantedBy=multi-user.target

Запускать этот демон, когда система грузится в multi-user режиме
Sv translation
languageen

Scroll Table Layout
widths65%,35%

ContentDescription
{
 
    "Logging": {...},
see Общая секция Logging
    "NookDir": "/opt/iw/tm5", 

In this section the module working directory is specified. By default – /opt/iw/tm5.

    "Bookworm": {...},

see Общая секция Bookworm

    "DebugBreak": false, 
If SIGTRAP should be sent (SIGBREAK to Windows) while any exception handling. Used for debugging purposes
    "UnsafeSignalHandlers":false,

Supporting unprocessed signals operation. By default the option is disabled (false). When setting the true value, you can set the handler of "unsafe" signals in the code (for example, SIGSEVG). We do not recommend adding, enabling/disabling this option without pre-consultation with developers.

    "Analysis": {

 
        "Autoling": {
Section to configure autolinguist learning.
            "AutolingConfigPath": "etc/config-perm/cas/autoling.conf",
Path to autolinguist technology configuration file
"MinTermLength": 3, Minimum length of the terms, found in the text
  "MinTextWordCount": 10,Minimum number of words in the text to be analyzed
"MinUniqueTermCount": 5, Minimum number of unique terms found in the text to be analyzed
"RelevanceThreshold": 0.1Minimum probability threshold to define category as non-working
        }, 
 
    "Config": {
 
        "EnableContentSchemaCheck": true, 
Enabling (true value) cas_config.xml file content validation
        "EnableSchemaCheck": true, 
Enabling xml check on xsd (disabling significally increases the configuration download speed). The default value is – true
        "SchemaPath": "etc/cas_config.xsd", 
Path to xsd file, used to check xml configuration. The default value is – etc/cas_config.xsd
        "Path": "etc/config/text_autoling",
Path to cas configuration file. The default value is – etc/config/cas
        "TempDir": "tmp",
Path to temporary service files
        "VariativeDataDir": "var/tech/text_autoling"
 
        }, 
 
        "Curler": {
Curl backend configuration section

  "Active": {

 
               "AlertSocketPath": "wss://localhost/api/notify/listen/autolingUpdate", 
Web socket address used to get a signal to change Active configuration

"UpdaterHostName": "https://localhost/xapi/configurationState/autoling"

Configuration update address
            }, 
 
            "AlertTimeoutSec": 5, 
Timeout, when it is over the management is returned to calling thread in case the configuration was not changed before.

"CurlOptSslVerifyHost": false,

Http server connection settings to download configuration updates

Note: service fields are not intended to be edited by user-



"CurlOptSslVerifyPeer": false,

  "CurlOptTcpKeepAlive": true, 

 "Sandbox": {
 
                "AlertSocketPath": "wss://localhost/api/notify/listen/autolingUpdateSb", 
Адрес вебсокета, по которому приходит сигнал о смене конфигурации Sandbox
 "UpdaterHostName": "https://localhost/xapi/configurationState/autoling_sb"
Web socket address used to get a signal to change Sand Box configuration
  }, 
 
  "TokenPath": "/opt/iw/tm5/etc/config/access_control/tokens.list"
Path to a file containing token access list
            },
 
    "ThriftServers": {...},
see Общая секция ThriftServers
    "Discovery": {...}
see Общая секция Discovery
    }
 
}
 

iw_text_autoling.service unit file

Scroll Table Layout
widths50%, 50%

Code
Description

[Unit]

Section to define demon metadata and configure its interaction with other demons
Description=InfoWatch Traffic Monitor Text Automatic Classifier

Demon name

After=network-online.target iwtm-consul.service Demons to be run before starting the current demon
  
[Service]Section to configure demon running

Type=simple

Demon running type. simple - demon is started and goes into standby mode in the console

PermissionsStartOnly=true

Running commands from ExecStartPre using root user

ExecStartPre=/bin/bash /opt/iw/tm5/bin/check_coredumps.sh -d iw_text_autoling

Ful path and command's arguments to be preformed before running the main process

ExecStart=/opt/iw/tm5/bin/iw_text_autoling -p /opt/iw/tm5/etc

Full path and command' arguments to be prformed to run the demon. To be run from the user spesified in User

ExecStop=/bin/kill -s SIGTERM $MAINPID

Command to stop the demon. If not specified the process to be destroyed when the demon is stopped. To be run from the user spesified in User

ExecReload=/bin/kill -s SIGHUP $MAINPID

Command to reload demon's configuration in case it is available. To be run from the user spesified in User

Restart=on-failure

Command to restart demon in case it fails or it is stopped. on-failure value means the demon can be restarted in case it was stopped with no zero return code or it was disabled by signal (kill <pid_demon>)

RestartSec=5

Standby time before trying to restart the demon

RestartPreventExitStatus=SIGKILL

Command to force demon's shutdown

TimeoutStopSec=0

Time which is required for the System to wait for demon's stop before marking it unavailable or forcely shutdown.

User=iwtm

Name of the user to perform demon's running

Group=iwtm

User group name

LimitNOFILE=32768

Maximum number of opened files

LimitFSIZE=infinity

Maximum file size (Kb). infinity - no limitation

LimitNPROC=65536

Maximum number of processes

LimitCORE=infinity

Coredump file size limit (Kb)

LimitMEMLOCK=infinity

Maximum memory space blocked (Kb)
  

[Install]

Defines the behavior of a daemon when it is enabled/disabled

WantedBy=multi-user.target

Start the daemon when the system is loaded in multi-user mode