Replies: 4 comments 10 replies
-
There is a variable called UPDATE_HARVESTER_CACHE_INTERVAL which is set to 90. It looks like this is the variable which defines how often the farmer sends request_plots to the harvester. This calls the function request_plots found in harvester_api.py which simply iterates over all plots and gets all kind of information about them. This is what slows down my harvester every 120 seconds or so. As far as I understand the period UPDATE_HARVESTER_CACHE_INTERVAL can be increased to some larger value without significant drawbacks. The only negative effect will be that the farmer is not up-to-date regarding the amount of plots which is harvested. But the farmer does not have to know that as long as the harvester receives the challenges and returns the proofs if any found. Do I understand it correctly? Would it be possible to add the variable UPDATE_HARVESTER_CACHE_INTERVAL to config.yaml so that chia users can adjust it as they want? Edit: There is a commit in which UPDATE_HARVESTER_CACHE_INTERVAL was increased from 60 to 90 seconds "to help large farmers", as it's said in the commit note: d3e726e |
Beta Was this translation helpful? Give feedback.
-
I increased UPDATE_HARVESTER_CACHE_INTERVAL from 90 to 1200 and will let the farmer/harvester run over night to see how the system performs. |
Beta Was this translation helpful? Give feedback.
-
By increasing UPDATE_HARVESTER_CACHE_INTERVAL to 1200 I get much more stable harvesting. With the default value I would get delays in responses to the incoming challenges of up to 30 seconds which happened about every 120 seconds. Now this kind of delay happens only every 20 minutes due to the increased UPDATE_HARVESTER_CACHE_INTERVAL. I don't see any negative effects. I have about 7800 plots on over a hundred external HDDs and with the modified UPDATE_HARVESTER_CACHE_INTERVAL and config.yaml the harvester runs totally stable with seek times mostly between 1.5 and 2.5 seconds. |
Beta Was this translation helpful? Give feedback.
-
there is an option in
you can check the initial config here for newly added options: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The farmer sends a request_plots to the remote harvester every 2 minutes. Here is the log from the farmer:
2021-11-04T07:15:52.229 farmer farmer_server : DEBUG -> request_plots to peer 192.168.1.2 ...
and here is the incoming request in the harvester's log:
2021-11-04T08:15:55.560 harvester harvester_server : DEBUG <- request_plots from peer ... 192.168.1.1
Is it possible to increase the period of these requests from 2 to e.g 30 minutes? I'm asking because these requests seem to trigger some kind of look-ups of the plots on the harvester and since my harvester is very low-performance it frequently leads to seek times way above 5 seconds.
Beta Was this translation helpful? Give feedback.
All reactions