Определение модели ThingWorx в Composer > Система > Журналы > Журналы процессора потоков
Журналы процессора потоков
Чтобы отслеживать емкость очередей процессора потоков, для каждого процессора потоков добавляются новые журналы уровня предупреждений. Эти журналы предупреждений будут запускаться для отображения в журналах приложений, когда любая отдельная очередь заполняется на 70 % емкости или более. Если очередь заполнена полностью, то любая попытка добавить запись в очереди для потоков значений, таблиц данных и процессоров потоков будет отклоняться. Для процессора сохраняемых свойств будет выполняться повторная попытка (с тайм-аутом производителя), чтобы добавить запись в очередь и после тайм-аута. Если запись невозможно добавить, запись будет отклонена. Отклоненные записи учитываются вне новых параметров totalWritesRejected, упомянутых выше.
Ниже приведен пример операторов журналов:
PersistentPropertyProcessor
2022-02-09 02:56:15.465+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: ] [T: Timer-6] PersistentPropertyProcessor queue #9 is currently 82.0 percent full that is at or above 70.0 percent threshold
82022-02-09 02:56:15.465+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: ] [T: Timer-6] PersistentPropertyProcessor queue #11 is currently 82.0 percent full that is at or above 70.0 percent threshold
92022-02-09 02:56:15.465+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: ] [T: Timer-6] PersistentPropertyProcessor queue #13 is currently 81.0 percent full that is at or above 70.0 percent threshold
102022-02-09 02:56:15.465+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: ] [T: Timer-6] PersistentPropertyProcessor queue #14 is currently 82.0 percent full that is at or above 70.0 percent threshold
112022-02-09 02:56:15.465+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: ] [T: Timer-6] PersistentPropertyProcessor queue #16 is currently 79.0 percent full that is at or above 70.0 percent threshold
BatchValueStreamProcessor
platform1_1 | 2022-02-22 21:09:08.208+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: platform1] [T: Timer-9] BatchValueStreamProcessor queue #81 is currently 100.0 percent full that is at or above 70.0 percent threshold
platform1_1 | 2022-02-22 21:09:08.208+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: platform1] [T: Timer-9] BatchValueStreamProcessor queue #82 is currently 100.0 percent full that is at or above 70.0 percent threshold
platform1_1 | 2022-02-22 21:09:08.208+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: platform1] [T: Timer-9] BatchValueStreamProcessor queue #83 is currently 100.0 percent full that is at or above 70.0 percent threshold
platform1_1 | 2022-02-22 21:09:08.208+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: platform1] [T: Timer-9] BatchValueStreamProcessor queue #84 is currently 100.0 percent full that is at or above 70.0 percent threshold
platform1_1 | 2022-02-22 21:09:08.208+0000 [L: WARN] [O: c.t.p.p.StreamEntryProcessor] [I: ] [U: ] [S: ] [P: platform1] [T: Timer-9] BatchValueStreamProcessor queue #85 is currently 100.0 percent full that is at or above 70.0 percent threshold
Журналы приложений должны отслеживаться для каждого процессора записей потока, чтобы сокращать до минимума число отклоненных записей.
Ниже приведен шаблон для такого оператора журнала:
{ProcessorName} queue #{queue number} is curently {percentage} percent full that is at or above 70.0 percent threshold
Ниже приведены имена всех процессоров потоков, которые могут отображаться в приведенных выше операторах журналов вместо {ProcessorName}:
BatchStreamProcessor
BatchValueStreamProcessor
ValueStreamProcessor
DataTableProcessor
InfluxdbStreamProcessor
InfluxdbValueStreamProcessor
PersistentPropertyProcessor
StreamProcessor
Было ли это полезно?