changed performance menu to accept milliseconds; 200 milliseconds may be appropriate for all crawling jobs; indexing should be set to 0

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@299 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent 3227a9eba5
commit 10781f36b7

@ -42,8 +42,8 @@
<td class="small" align="right">#[busycycles]#</td>
<td class="small" align="right">#[sleeppercycle]#</td>
<td class="small" align="right">#[execpercycle]#</td>
<td class="small" align="right"><input name="#[threadname]#_idlesleep" type="text" size="4" maxlength="4" value="#[idlesleep]#"> sec</td>
<td class="small" align="right"><input name="#[threadname]#_busysleep" type="text" size="4" maxlength="4" value="#[busysleep]#"> sec</td>
<td class="small" align="right"><input name="#[threadname]#_idlesleep" type="text" align="right" size="7" maxlength="7" value="#[idlesleep]#"> milliseconds</td>
<td class="small" align="right"><input name="#[threadname]#_busysleep" type="text" align="right" size="7" maxlength="7" value="#[busysleep]#"> milliseconds</td>
<td class="small" align="left">#[longdescr]#</td>
</tr>
#{/table}#

@ -116,8 +116,8 @@ public class Performance_p {
if ((post != null) && (post.containsKey("delaysubmit"))) {
// load with new values
idlesleep = Long.parseLong((String) post.get(threadName + "_idlesleep", "1")) * 1000;
busysleep = Long.parseLong((String) post.get(threadName + "_busysleep", "1")) * 1000;
idlesleep = Long.parseLong((String) post.get(threadName + "_idlesleep", "1"));
busysleep = Long.parseLong((String) post.get(threadName + "_busysleep", "1"));
// check values to prevent short-cut loops
if (idlesleep == 0) idlesleep = 1000;
@ -131,8 +131,8 @@ public class Performance_p {
idlesleep = Long.parseLong(switchboard.getConfig(threadName + "_idlesleep" , "1000"));
busysleep = Long.parseLong(switchboard.getConfig(threadName + "_busysleep", "1000"));
}
prop.put("table_" + c + "_idlesleep", idlesleep / 1000);
prop.put("table_" + c + "_busysleep", busysleep / 1000);
prop.put("table_" + c + "_idlesleep", idlesleep);
prop.put("table_" + c + "_busysleep", busysleep);
c++;
}

@ -399,11 +399,11 @@ xpstopw=true
40_peerseedcycle_idlesleep=1800000
40_peerseedcycle_busysleep=1200000
50_localcrawl_idlesleep=10000
50_localcrawl_busysleep=0
50_localcrawl_busysleep=200
61_globalcrawltrigger_idlesleep=10000
61_globalcrawltrigger_busysleep=0
61_globalcrawltrigger_busysleep=200
62_remotetriggeredcrawl_idlesleep=20000
62_remotetriggeredcrawl_busysleep=0
62_remotetriggeredcrawl_busysleep=200
70_cachemanager_idlesleep=10000
70_cachemanager_busysleep=0
80_indexing_idlesleep=10000

Loading…
Cancel
Save