Skip to content

Commit 228703f

Browse files
committed
Merge remote-tracking branch 'origin/master' into fix_494
2 parents 6d52356 + 1ec4783 commit 228703f

File tree

5 files changed

+50
-3
lines changed

5 files changed

+50
-3
lines changed

docker/example.hubspoke.docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ services:
4141
environment:
4242
COLLECTOR_API_ENDPOINT: 'http://web:8080'
4343
COLLECTOR_HOST_ID: 'scrutiny-collector-hostname'
44+
# If true forces the collector to run on startup (cron will be started after the collector completes)
45+
# see: https://github.com/AnalogJ/scrutiny/blob/master/docs/TROUBLESHOOTING_DEVICE_COLLECTOR.md#collector-trigger-on-startup
46+
COLLECTOR_RUN_STARTUP: false
4447
depends_on:
4548
web:
4649
condition: service_healthy

docs/TESTERS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Thankfully the following users have been gracious enough to test/validate Scruti
88
99
| Architecture Name | Binaries | Docker |
1010
| --- | --- | --- |
11-
| linux-amd64 | -- | @feroxy @rshxyz |
11+
| linux-amd64 | @TizzAmmazz | @feroxy @rshxyz |
1212
| linux-arm-5 | -- | |
1313
| linux-arm-6 | -- | |
1414
| linux-arm-7 | @Zorlin | @martini1992 |
@@ -17,4 +17,4 @@ Thankfully the following users have been gracious enough to test/validate Scruti
1717
| macos-amd64 | -- | -- |
1818
| macos-arm64 | -- | -- |
1919
| windows-amd64 | @gabrielv33 | -- |
20-
| windows-arm64 | -- | -- |
20+
| windows-arm64 | -- | -- |

docs/TROUBLESHOOTING_DEVICE_COLLECTOR.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ UPDATE devices SET device_status = null;
250250

251251
### Seagate Drives Failing
252252

253-
As thoroughly discussed in [#255](https://github.com/AnalogJ/scrutiny/issues/255), Seagate (Ironwolf & others) drives are almost always marked as failed by Scrutiny.
253+
As thoroughly discussed in [#255](https://github.com/AnalogJ/scrutiny/issues/255) and [#522](https://github.com/AnalogJ/scrutiny/issues/522), Seagate (Ironwolf & others) drives are almost always marked as failed by Scrutiny.
254254

255+
#### Seek Error Rate & Read Error Rate (#255)
255256
> The `Seek Error Rate` & `Read Error Rate` attribute raw values are typically very high, and the
256257
> normalised values (Current / Worst / Threshold) are usually quite low. Despite this, the numbers in most cases are perfectly OK
257258
>
@@ -286,6 +287,15 @@ other drives, please read the following:
286287
- http://www.users.on.net/~fzabkar/HDD/Seagate_SER_RRER_HEC.html
287288
- https://www.truenas.com/community/threads/seagate-ironwolf-smart-test-raw_read_error_rate-seek_error_rate.68634/
288289

290+
#### Seagate Raw Values are incorrect (#522)
291+
Basically Seagate drives are known to use a custom data format for a number of their SMART attributes. This causes issues with Scrutiny's threshold analysis.
292+
293+
- The workaround is to customize the smartctl command that Scrutiny uses for your drive by [creating a collector.yaml file](https://github.com/AnalogJ/scrutiny/issues/522#issuecomment-1766727988) and "fixing" each attribute
294+
- The **real "fix"** is to make sure your Seagate drive is correctly supported by smartmontools. See this [PR](https://github.com/smartmontools/smartmontools/pull/247)
295+
296+
Sorry for the bad news, but this is a known issue and there's just not much we can do on the Scrutiny side.
297+
298+
289299
## Hub & Spoke model, with multiple Hosts.
290300

291301
![multiple-host-ids image](multiple-host-ids.png)

docs/TROUBLESHOOTING_DOCKER.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ So changing from `master-omnibus -> latest` will be the same thing for all inten
1717
> NOTE: Previously, there was a `automated cron build` that ran on the `master` and `beta` branches.
1818
They used to trigger a `nightly` build, even if nothing has changed on the branch. This has a couple of benefits, but one is to
1919
ensure that there's no broken external dependencies in our (unchanged) code. This `nightly` build no longer updates the `master-omnibus` tag.
20+
21+
# Running Docker `rootless`
22+
23+
To avoid that the container(s) restart when you installed Docker as `rootless` you need to isssue the following commands to allow the session to stay alive even after you close your (SSH) sesssion:
24+
25+
`sudo loginctl enable-linger $(whoami)`
26+
27+
`systemctl --user enable docker`

docs/TROUBLESHOOTING_INFLUXDB.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,32 @@ dependency. It's a dedicated timeseries database, as opposed to the general purp
1111
a bunch of testing and analysis before I made the change. With InfluxDB the memory footprint for Scrutiny (at idle) is ~
1212
100mb, which is still fairly reasonable.
1313

14+
### Data Size
15+
16+
It's surprisingly easy to reach extremely large database sizes, if you don't use downsampling, or you downsample incorrectly.
17+
The growth rate is pretty unintuitive -- see https://github.com/AnalogJ/scrutiny/issues/650#issuecomment-2365174940
18+
19+
> Fasten stores the SMART metrics in a timeseries database (InfluxDB), and automatically downsamples the data on a schedule.
20+
>
21+
> The expectation was that cron would run daily, and there would be:
22+
>
23+
> - 7 daily data points
24+
> - 3 weekly data points
25+
> - 11 monthly data points
26+
> - and infinite yearly data points.
27+
>
28+
> These data points would be for each SMART metric, for each device.
29+
> eg. in one year, (7+3+11)*80ish SMART attributes = 1680 datapoints for one device
30+
>
31+
> If you're running cron every 15 minutes, your browser will instead be attempting to display:
32+
>
33+
> - 96*7 daily data points
34+
> - 3 weekly
35+
> - 11 monthly
36+
>
37+
> so (96*7 + 3 + 11)*80 = 54,880 datapoints for each device 😭
38+
39+
1440
## Installation
1541

1642
InfluxDB is a required dependency for Scrutiny v0.4.0+.

0 commit comments

Comments
 (0)