Skip to content

Commit

Permalink
Fixing Issues #4495 and #4500 DSStats Issues
Browse files Browse the repository at this point in the history
* DSStats Does not Scale on Large Systems
* DSStats will get invalid data for some devices after reboot requiring purging of stats

This is way less than what I want to do, but these are all essentially bugs.

There is also a change to lib/boost.php to provide better debug logging when testing.
  • Loading branch information
TheWitness committed Dec 10, 2021
1 parent 7d16b69 commit 9f27a24
Show file tree
Hide file tree
Showing 4 changed files with 731 additions and 230 deletions.
32 changes: 31 additions & 1 deletion include/global_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,9 @@
'120' => __('%s Minutes', 2),
'300' => __('%s Minutes', 5),
'600' => __('%s Minutes', 10),
'1200' => __('%s Minutes', 20)
'1200' => __('%s Minutes', 20),
'1800' => __('%s Minutes', 30),
'3600' => __('1 Hour')
)
),
'commands_timeout' => array(
Expand Down Expand Up @@ -1992,6 +1994,34 @@
'method' => 'checkbox',
'default' => ''
),
'dsstats_parallel' => array(
'friendly_name' => __('Number of DSStats Processes'),
'description' => __('The number of concurrent DSStats processes to use to use to process all of the Data Sources.'),
'default' => '1',
'method' => 'drop_array',
'array' => array(
1 => __('1 Process'),
2 => __('%d Processes', 2),
3 => __('%d Processes', 3),
4 => __('%d Processes', 4),
5 => __('%d Processes', 5),
6 => __('%d Processes', 6),
7 => __('%d Processes', 7),
8 => __('%d Processes', 8),
9 => __('%d Processes', 9),
10 => __('%d Processes', 10),
11 => __('%d Processes', 11),
12 => __('%d Processes', 12),
13 => __('%d Processes', 13),
14 => __('%d Processes', 14),
15 => __('%d Processes', 15),
16 => __('%d Processes', 16),
17 => __('%d Processes', 17),
18 => __('%d Processes', 18),
19 => __('%d Processes', 19),
20 => __('%d Processes', 20),
)
),
'dsstats_daily_interval' => array(
'friendly_name' => __('Daily Update Frequency'),
'description' => __('How frequent should Daily Stats be updated?'),
Expand Down

0 comments on commit 9f27a24

Please sign in to comment.