Page 1 of 1

Health - What is it?

Posted: 23 Jun 2019, 03:00
by MrVideo
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.

Re: Health - What is it?

Posted: 23 Jun 2019, 13:24
by MrVideo
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.

Re: Health - What is it?

Posted: 23 Jun 2019, 22:54
by hugbug
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).

Re: Health - What is it?

Posted: 24 Jun 2019, 01:43
by MrVideo
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.

Re: Health - What is it?

Posted: 24 Jun 2019, 05:08
by hugbug
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.

Re: Health - What is it?

Posted: 24 Jun 2019, 06:17
by MrVideo
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?

Re: Health - What is it?

Posted: 24 Jun 2019, 06:22
by hugbug
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.

Re: Health - What is it?

Posted: 24 Jun 2019, 11:31
by MrVideo
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.

Re: Health - What is it?

Posted: 24 Jun 2019, 11:50
by hugbug
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.

Re: Health - What is it?

Posted: 25 Jun 2019, 01:09
by MrVideo

Code: Select all

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