Health - What is it?

Get help, report and discuss bugs.
Post Reply
MrVideo
Posts: 47
Joined: 20 Mar 2019, 05:44

Health - What is it?

Post by MrVideo » 23 Jun 2019, 03:00

There is no complete explanation of "health" in the documentation. The health setting doesn't help any. A search for health doesn't provide any insight either.

I'm gathering it has to do with availability of files on the chosen news server, but as mentioned, no documentation as to how this is determined or what the percentage that is displayed means.

I also tried finding anything in the log about the health for the particular disc being downloaded, but nothing. It is marked as being 99% in the download listing.

So, I am confused as to what is going on.

MrVideo
Posts: 47
Joined: 20 Mar 2019, 05:44

Re: Health - What is it?

Post by MrVideo » 23 Jun 2019, 13:24

From what I can see, there was no problem with the download. Because the message log was only limited to 1000 lines, I do not know if the download needed to be fixed via the PAR files. I've upped the count to 10000 messages.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Health - What is it?

Post by hugbug » 23 Jun 2019, 22:54

Current Health shows how much of the data is intact. For a typical nzb with par2-files some data can be missing yet the download can be repaired. The amount of fixable data depends on the size of par2-files. Depending on their size the Critical Health is calculated. If current health goes down below critical health the download cannot be repaired and the downloading is cancelled (but that can be configured via option HealthCheck).

MrVideo
Posts: 47
Joined: 20 Mar 2019, 05:44

Re: Health - What is it?

Post by MrVideo » 24 Jun 2019, 01:43

I know you had to explain how the PAR2 files are used, but I do know how all of that works, as I've used programs like QuickPar and MultiPar to repair (hopefully) downloads with missing blocks.

Does NZBGET go out and check that all of the parts are available? I do not see that it can, as it would take a long time. So, how can it say that the health is 99%, for example? Color me confused as to how NZBGET can determine the health before downloading even starts.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Health - What is it?

Post by hugbug » 24 Jun 2019, 05:08

Current health takes already downloaded (failed) data into account. At the beginning of downloading Current health is 100%, then it can go down as download progresses.

MrVideo
Posts: 47
Joined: 20 Mar 2019, 05:44

Re: Health - What is it?

Post by MrVideo » 24 Jun 2019, 06:17

hugbug wrote:
24 Jun 2019, 05:08
Current health takes already downloaded (failed) data into account. At the beginning of downloading Current health is 100%, then it can go down as download progresses.
Then there is a bug. If you go back to my first post, you will notice that I wrote that one of the discs was flagged at 99% health. To make it clear, the download for that disc hadn't even started yet. It was queued as it was downloading the first disc in the list. In this case, it was disc 5.

That is why I was confused. How can it know that there is trouble with the disc when the download hadn't even started yet?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Health - What is it?

Post by hugbug » 24 Jun 2019, 06:22

That was a special case - a corrupted or incomplete nzb-file. Something like this:

Code: Select all

<segment bytes="500000" number="1">id1</segment>
<segment bytes="500000" number="3">id3</segment>
Here the segment "2" is missing and so the health is lower than 100% without even attemtping to download.

MrVideo
Posts: 47
Joined: 20 Mar 2019, 05:44

Re: Health - What is it?

Post by MrVideo » 24 Jun 2019, 11:31

It downloaded without incident. That said, I do not know if a repair took place as the log didn't go back far enough. I've upped the messages to 10000. If this happens again, hopefully it will get captured in the log.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Health - What is it?

Post by hugbug » 24 Jun 2019, 11:50

Click on the item in history. If it was repaired it should have "par:repaired" in the statuses (at the top of dialog).
Here you can also click on button "Log" to see log messages for that download only.

MrVideo
Posts: 47
Joined: 20 Mar 2019, 05:44

Re: Health - What is it?

Post by MrVideo » 25 Jun 2019, 01:09

Code: Select all

PAR: SUCCESS  UNPACK: SUCCESS
From this I gather that the NZB file was fine.

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests