#20 Write stats collecting mechanism

Закрыто
открыта 4 лет назад yannweb · комментариев: 2
yannweb прокомментировал 4 лет назад

Nedd #24

Find a way to collect stats in pool_handling process.

The collection mechanism should give access to UDP server ( see #19 ) to following data :

  • worker count
  • requests count last 10/5/1 minute
  • request time average (maybe ?) => slow IPC between worker & pool ?
  • total request counter (maybe ?) => will overflow ?!
  • idle/busy state (maybe ?) => change too fast ?
  • idle/busy ratio or workload (maybe ?)

We have to take care of not slowing down the workers with this component…

Maybe the collection child could help implementing this mechanism ?

__Nedd #24__ Find a way to collect stats in pool_handling process. The collection mechanism should give access to UDP server ( see #19 ) to following data : - worker count - requests count last 10/5/1 minute - request time average (maybe ?) => slow IPC between worker & pool ? - total request counter (maybe ?) => will overflow ?! - idle/busy state (maybe ?) => change too fast ? - idle/busy ratio or workload (maybe ?) We have to take care of not slowing down the workers with this component... Maybe the collection child could help implementing this mechanism ?
yannweb добавил к этапу BETA version 4 лет назад
yannweb добавил(а) метку
enhancement
4 лет назад
yannweb добавил(а) метку
_core
4 лет назад
yannweb прокомментировал 4 лет назад
Владелец

A solution to a fast request counter implementation can use semaphores :

When a worker starts handling a request it increment a sempahore. Meanwhile, a counter process (pool_handler or stats collection child) will attempt to decrease (fast enough) the semaphore with WNOHANG.

If the decrement semop do not fail, a counter can be incremented.

Note : the 10/5/1 min counters implies to store all requests timestamps ?? Maybe we can associate a timestamp with a request count ?

=> if 100 req/s stores {time(NULL), 100} and not time_t [100] = {time(NULL), time(NULL), etc.}

A solution to a fast request counter implementation can use semaphores : When a worker starts handling a request it increment a sempahore. Meanwhile, a counter process (pool_handler or stats collection child) will attempt to decrease (fast enough) the semaphore with WNOHANG. If the decrement semop do not fail, a counter can be incremented. Note : the 10/5/1 min counters implies to store all requests timestamps ?? Maybe we can associate a timestamp with a request count ? <code>=> if 100 req/s stores {time(NULL), 100} and not time_t [100] = {time(NULL), time(NULL), etc.}</code>
yannweb начал работать 4 лет назад
yannweb перестал работать 4 лет назад
54min 36s
yannweb начал работать 4 лет назад
yannweb перестал работать 4 лет назад
3h 12min
yannweb самоназначился 4 лет назад
yannweb добавил потраченное время 4 лет назад
1h
yannweb добавил(а) новую зависимость 4 лет назад
yannweb добавил(а) новую зависимость 4 лет назад
yannweb начал работать 4 лет назад
yannweb перестал работать 4 лет назад
31min 16s
yannweb прокомментировал 4 лет назад
Владелец

closed by b3af92459e

closed by b3af92459e
Войдите, чтобы присоединиться к обсуждению.
Нет этапа
Нет назначенных лиц
1 участников
Общее затраченное время: 5h 37min 52s
Yann Weber
5h 37min 52s
Срок выполнения

Срок выполнения не установлен.

Загрузка…
Отмена
Сохранить
Пока нет содержимого.