Alexey
July 20, 2022, 6:53pm
2
You need to measure time between audit request and when your node finished uploading this piece.
See examples:
$ cat /mnt/x/storagenode3/storagenode.log | grep 1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE | grep -E "GET_AUDIT" | jq -R '. | split("\t") | (.[4] | fromjson) as $body | {SatelliteID: $body."Satellite ID", ($body."Piece ID"): {(.[0]): .[3]}}' | jq -s 'reduce .[] as $item ({}; . * $item)'
...
"EY6AAGG33LEZK3O7NIM2S3R5VEPXRBIYCKPWYSV5LDWNMHFYF7EA": {
"2021-08-22T22:42:40.601Z": "download started",
"2021-08-22T22:50:28.975Z": "download started",
"2021-08-22T23:04:59.672Z": "d…
Here’s my version:
Just pipe the log content to it and it will find the fastest and slowest times.
An example:
# cat /storj/node/log/docker.00065.log | grep 12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs | grep GET_REPAIR | php piece_times.php
Slowest: satellite: 12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs, piece: DZSAWMEP4KLTX2CNHAJTFSONAH7XLJNUMYI3AL5AYXAPTZLLJNKA, time: 4.440
Fastest: satellite: 12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs, piece: ZSYW6HKR2WZ7GZI7I3MX…
The second case - if your node provided broken pieces, in the storagenode’s log the download will finish successfully without any error, but the audit score will be affected.
1 Like