Well, here it is: The new slothd and sdcollectd stuff.
Several things have changed; here is an outline: - "Thresholds" added to slothd These are checked at each iteration against current idle data to determine whether or not to set bits in the "active" vector. - LAST_TTY_ACT (now) > LAST_TTY_ACT (previous) - LOAD > <provided value> - EXPER_PKT_COUNT(now) - EXPER_PKT_COUNT(prev) > <provided value> - CNTRL_PKT_COUNT(now) - CNTRL_PKT_COUNT(prev) > <provided value> - Values passed in via command line: do ./slothd -h for help - "Aggressive" mode added to slothd When a regular interval's worth of time has passed, and no activity has been noted, slothd goes into "aggressive" mode. In this mode, slothd changes its sleep interval, checking for activity much more frequently (still reporting every <reg_interval>) until activity is noted. This is based on the threshold logic above. When activity is seen, slothd sends a report, and goes back to "regular" reporting. - params passed via command line for regular, and aggressive intervals. - sdcollectd updates data in new "node_activity" table - Updates timestamps based on activity bits in received slothd packets - No new rows are added. - Option added to sdcollectd to insert into "old" node_idlestats and iface_counters tables - This is not the default (-o) - New sdcollectd still accepts old client reports - but does not update the node_activity table with them. - Misc. - Code cleanup - Scan "active terminals only" option & code removed from slothd - Always send report immediately on startup (no more option) - Randomize time of second report to mitigate synchronization - Send report on shutdown (receipt of INT, TERM, or QUIT)
Showing
- sensors/slothd/GNUmakefile.in 17 additions, 12 deletionssensors/slothd/GNUmakefile.in
- sensors/slothd/sdcollectd.c 118 additions, 56 deletionssensors/slothd/sdcollectd.c
- sensors/slothd/sdcollectd.h 12 additions, 5 deletionssensors/slothd/sdcollectd.h
- sensors/slothd/slothd.c 297 additions, 215 deletionssensors/slothd/slothd.c
- sensors/slothd/slothd.h 43 additions, 19 deletionssensors/slothd/slothd.h
Loading
Please register or sign in to comment