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

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

Ключ

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

Пример:

Для очереди queue/smtp процесс обработки разделен на следующие этапы:

  1. queue/smtp/.in – файл формируется в данной очереди в процессе получения объектов от Postfix

службой
  1. службой iw_smtpd. Если объект по какой-то причине задерживается в этой очереди,

необходимо
  1. нужно проверить службы iw_smtpd

 или
  1.  или iw_proxy_smtp.

  2. queue/smtp/.db – по окончании обработки файл перемещается из очереди .in в очередь .db. В эту очередь попадают почтовые
eml
  1. EML-объекты
от
  1. от iw_xapi
 
  1. .
  2. queue/smtp/.out
–
  1.  – в эту очередь объект перемещается следующей службой в
цепочке -
  1. цепочке – iw_messed.

Особенность:

Очереди, обслуживающие

службу

службу iw_is, дополнительно разделяются на:

  • queue/is/cmd/
–
  •  – файловая очередь
команд
  • команд iw_is;
  • queue/is/fetching/
–
  •  – очередь команд на загрузку;
  • queue/is/indexing/
–
  •  – очередь команд на индексацию;
  • queue/is/errors/
–
  •  – очередь ошибок.


Sv translation
languageru

Чтобы обеспечить загрузку имеющихся очередей объектов:

  1. Остановите службы iw_icap, iw_deliver, iw_luaengined, iw_is, iw_smtpd, iw_xapi_xapi, iw_xapi_puppy, iw_analysis, iw_messed, iw_proxy_http, iw_proxy_icq, iw_proxy_smtp, iw_capstack.
  2. Переместите объекты из очереди ошибок в нужную очередь.
  3. Дождитесь, пока будут обработаны все объекты в файловой очереди.  

  4. Запустите службы iw_icap, iw_deliver, iw_luaengined, iw_is, iw_smtpd, iw_xapi_xapi, iw_xapi_puppy, iw_analysis, iw_messed, iw_proxy_http, iw_proxy_icq, iw_proxy_smtp, iw_capstack.

Чтобы запустить все службы, выполните команду: 

Блок кода
languagetext
iwtm start
. По

По окончании процесса убедитесь, что службы запущены: iwtm status 

Блок кода
languagetext
iwtm status

Варианты команд для запуска/остановки отдельных служб: 

start luaengined start is
iwtm start smtpd 
iwtm start xapi_xapi
iwtm start xapi_puppy
iwtm start analysis
iwtm start messed
iwtm start proxy_http
iwtm start proxy_icq
iwtm start proxy_smtp
iwtm start capstack
iwtm stop icap
iwtm stop deliver
iwtm stop luaengined
iwtm stop is
iwtm stop smtpd
iwtm stop xapi_xapi
iwtm stop xapi_puppy
iwtm stop analysis
iwtm stop messed
iwtm stop proxy_http
iwtm stop proxy_icq
iwtm stop proxy_smtp
Запуск службыОстановка службы
iwtm start icapiwtm stop icap
iwtm start deliveriwtm stop deliver
iwtm start luaenginediwtm stop luaengined
iwtm start isiwtm stop is
iwtm start smtpd iwtm stop smtpd
iwtm start xapi_xapiiwtm stop xapi_xapi
iwtm start xapi_puppyiwtm stop xapi_puppy
iwtm start analysisiwtm stop analysis
iwtm start messediwtm stop messed
iwtm start proxy_httpiwtm stop proxy_http
iwtm start proxy_icqiwtm stop proxy_icq
iwtm start proxy_smtpiwtm stop proxy_smtp

iwtm start capstack

iwtm stop capstack

Объекты в Системе перемещаются посредством файловых очередей:

Путь к директории очереди

Формат файлов в очереди

queue/

analysis 

analysis

.xml

&

.dat

queue/smtp

.xml & .dat

queue/db

.xml & .dat

queue/blackboard blackboard

.dat

queue/blackboard_errors

.dat

queue/is

.xml & .dat

queue/x2x

.xml

&

.dat

queue/errors

.xml & .dat

queue/x2x-errors errors

.xml & .dat

queue/x2db-

errors 

errors

.xml

&

.dat

queue/final-errors

.xml

&

.dat

Каждая из очередей содержит дополнительные технические очереди для отслеживания процесса обработки объектов: .db, .in, .out. 

note

title

Очередь

Службы, которые помещают события в очередь

Служба, которая забирает события из очереди

queue/

analysis 

analysis

iw_xapi_xapi, iw_xapi_puppy

iw_analysis

queue/

smtp 

smtp

iw_xapi_xapi, iw_xapi_puppy, iw_smtpd, iw_proxy_smtp, iw_capstack

iw_messed

queue/

db 

db

iw_messed, iw_analysis, iw_icap, iw_proxy_icq, iw_proxy_http

iw_x2x

queue/

blackboard 

blackboard

iw_x2db, iw_deliver deliver 

iw_blackboard

queue/blackboard_

errors 

errors

ошибка при обработке iw_blackboard

-

queue/x2x

iw_x2x x2x iw_x2db

queue/is

iw_metainfo_fetcheriw_is

queue/errors

все службы, если произошла ошибка обработки

iw_rammer



queue/x2x-

errors 

errors

ошибки обработки iw_x2x

queue/x2db-

errors 

errors

ошибки обработки iw_x2db

queue/final-errors

iw_rammer-

Сбор статистики по файловым очередям включается в конфигурационном файле службы в директории /opt/iw/tm5/etc. Установите значение true в параметре Enabled секции Statistic.  

Sv translation
languageen

To enable loading the existing object queues:

  1. Stop the following services: iw_icap, iw_deliver, iw_luaengined, iw_is, iw_smtpd, iw_sniffer, iw_xapi_xapi, iw_xapi_puppy, iw_analysis, iw_messed, iw_proxy_http, iw_proxy_icq, iw_proxy_smtp, iw_capstack.
  2. Place objects from the error queue to the required queue.
  3. Wait until all objects in the file queue are processed.  

  4. Run the following services: iw_icap, iw_deliver, iw_luaengined, iw_is, iw_smtpd, iw_sniffer, iw_xapi_xapi, iw_xapi_puppy, iw_analysis, iw_messed, iw_proxy_http, iw_proxy_icq, iw_proxy_smtp, iw_capstack.

To start all the services, run the command: iwtm start. To

Блок кода
languagetext
iwtm start

To check if the processes are started, use the following command: iwtm status.

Блок кода
languagetext
iwtm status

Commands for starting/stopping separate services: 

StartingStopping
iwtm
start
icapiwtm stop icap
iwtm
start
deliveriwtm
start luaengined
stop deliver
iwtm
start is
iwtm start smtpd 
iwtm start sniffer
iwtm start xapi_xapi
iwtm start xapi_puppy
iwtm start analysis
iwtm start messed
iwtm start proxy_http
iwtm start proxy_icq
iwtm start proxy_smtp
iwtm start capstack
iwtm stop icap
iwtm stop deliver
iwtm stop luaengined
iwtm stop is
iwtm stop smtpd
iwtm stop sniffer
iwtm stop xapi_xapi
iwtm stop xapi_puppy
iwtm stop analysis
iwtm stop messed
iwtm stop proxy_http
iwtm stop proxy_icq
iwtm stop proxy_smtp
start luaenginediwtm stop luaengined
iwtm start isiwtm stop is
iwtm start smtpd iwtm stop smtpd
iwtm start xapi_xapiiwtm stop xapi_xapi
iwtm start xapi_puppyiwtm stop xapi_puppy
iwtm start analysisiwtm stop analysis
iwtm start messediwtm stop messed
iwtm start proxy_httpiwtm stop proxy_http
iwtm start proxy_icqiwtm stop proxy_icq
iwtm start proxy_smtpiwtm stop proxy_smtp

iwtm start capstack

iwtm stop capstack

Objects in the System are moved by means of file queues:

Path to the directory of the queue

Format of files in the queue

queue/analysis 

.xml

&

.dat

queue/smtp

.xml & .dat

queue/db

.xml & .dat

queue/blackboard 

.dat

queue/blackboard_errors

.dat

queue/is

.xml & .dat

queue/x2x

.xml

&

.dat

queue/errors

.xml & .dat

queue/x2x-errors 

.xml & .dat

queue/x2db-errors 

.xml

&

.dat

queue/final-errors

.xml

&

.dat

Each queue contains additional technical queues which allow you to monitor for processing objects: .db, .in, .out.

Информация
titleNote:

For the  queue/smtp process, the processing can be divided into the following steps:

  1. queue/smtp/.in – as the iw_smtpd service receives objects from Postfix, a file is generated in this queue. If for some reason, the object processing in this queue is delayed, please, check iw_smtpd or iw_proxy_smtp service.
  2. queue/smtp/.db – when the processing is complete, the file is moved from the .in queue to the .db queue. EML mail objects from iw_xapi are placed in this queue.
  3. queue/smtp/.out– the object is placed in this queue by the following service -  iw_messed service.

Note that:

Queues of the iw_is service are additionally divided into:

  • queue/is/cmd/ – a file queue of iw_is commands;
  • queue/is/fetching/ – a queue of commands for loading;
  • queue/is/indexing/ – a queue of commands for indexing;
  • queue/is/errors/ – an error queue.

Queue name

Services that place an event in the queue

Services that remove an event from the queue

queue/

analysis 

analysis

iw_xapi_xapi, iw_xapi_puppy

iw_analysis

queue/

smtp 

smtp

iw_xapi_xapi, iw_xapi_puppy, iw_smtpd, iw_proxy_smtp, iw_capstack

iw_messed

queue/

db 

db

iw_messed, iw_analysis, iw_icap, iw_proxy_icq, iw_proxy_http

iw_x2x

queue/

blackboard 

blackboard

iw_x2db, iw_

deliver 

deliver

iw_blackboard

queue/blackboard_

errors 

errors

an error when processing iw_blackboard

-

queue/x2x

iw_
x2x 
x2xiw_x2db

queue/is

iw_metainfo_fetcheriw_is

queue/errors

all services in case of processing errors

iw_rammer



queue/x2x-

errors 

errors

errors when processing iw_x2x

queue/x2db-

errors 

errors

errors when processing iw_x2db

queue/final-errors

iw_rammer-

You can enable collecting statistics on file queues in the service configuration file which is located in the /opt/iw/tm5/etc directory. For this, in the Statistic section, set the Enabled parameter value to true.