View Code? Open in Web Editor
NEW
Gearman::SlotManager is similar perl module of Gearman::Spawner. The goal is managing processes scalably by adding strategies for working rate.
Home Page: https://metacpan.org/release/Gearman-SlotManager
gearman-slotmanager's People
Contributors
Watchers
gearman-slotmanager's Issues
Supervisor 는 자체 이벤트루프를 돌리면서 대기하게 되어있는데,
여기에 비동기 worker를 추가해야, worker 작업을 돌릴수 있다.
그래서 비동기 worker를 추가한다.
작동전/후에 report worker에게 보고하도록 한다.
이 작동 통계를 이용해서 Supervisor는 parttimer들을 관리한다.
max_count - count 의 갯수를 Part-timer의 최대 생성갯수로 한다.
전략에 따라, 이 갯수를 늘렸다가 줄였다가 하도록 한다.