Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added segment sizes, postprocessing status and cpu load to crawler monitor
orbiter9c681cc00d8f
diff --git a/htroot/Crawler_p.html b/htroot/Crawler_p.htmlindex 5394a44b6..4c40af46d 100644--- a/htroot/Crawler_p.html+++ b/htroot/Crawler_p.html@@ -21,14 +21,14 @@#%env/templates/submenuCrawlMonitor.template%#<h2>Crawler</h2><noscript><p>(Please enable JavaScript to automatically update this page!)</p></noscript>-<fieldset style="width:260px;height:140px;float:left;">+<fieldset style="width:180px;height:160px;float:left;"><legend>Queues</legend><table border="0" cellpadding="2" cellspacing="1" class="watchCrawler"><tbody><tr class="TableHeader">- <th width="110">Queue</th>- <th>Size</th>- <th width="50">Pause/Resume</th>+ <th width="110">Queue<br/> </th>+ <th>Size<br/> </th>+ <th width="50">Pause/<br/>Resume</th></tr><tr class="TableCellLight"><td align="left">Local Crawler</td>@@ -75,41 +75,45 @@</table><div class="warning" id="message"> #[queuemessage]#<div></fieldset>-<fieldset style="width:180px;height:140px;float:left;">+<fieldset style="width:220px;height:160px;float:left;"><legend>Index Size</legend><table border="0" cellpadding="2" cellspacing="1" class="watchCrawler"><tbody><tr class="TableHeader">- <th width="100">Database</th>- <th width="80">Entries</th>+ <th width="140">Database<br/> </th>+ <th width="80">Entries<br/> </th>+ <th width="40">Seg-<br/>ments</th></tr><tr class="TableCellLight"><td align="left">Documents<br/><a href="/solr/select?core=collection1&q=*:*&start=0&rows=3">solr search api</a></td>- <td align="right"><span id="urldbsize">#[urlpublictextSize]#</span></td>+ <td align="right"><span id="urlpublictextSize">#[urlpublictextSize]#</span></td>+ <td align="right"><span id="urlpublictextSegmentCount">#[urlpublictextSegmentCount]#</span></td></tr><tr class="TableCellLight"><td align="left">Webgraph Edges<br/><a href="/solr/select?core=webgraph&q=*:*&start=0&rows=3">solr search api</a></td>- <td align="right"><span id="webgraphsize">#[webgraphSize]#</span></td>+ <td align="right"><span id="webgraphSize">#[webgraphSize]#</span></td>+ <td align="right"><span id="webgraphSegmentCount">#[webgraphSegmentCount]#</span></td></tr><tr class="TableCellLight"><td align="left">RWIs<br/>(P2P Chunks)</td>- <td align="right"><span id="rwidbsize">#[rwipublictextSize]#</span></td>+ <td align="right"><span id="rwipublictextSize">#[rwipublictextSize]#</span></td>+ <td align="right"><span id="rwipublictextSegmentCount">#[rwipublictextSegmentCount]#</span></td></tr></tbody></table></fieldset>-<fieldset style="width:520px;height:140px;;float:left;">+<fieldset style="width:430px;height:160px;;float:left;"><legend>Progress</legend><form action="Crawler_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8"><table border="0" cellpadding="2" cellspacing="1" class="watchCrawler"><tbody><tr class="TableHeader">- <th width="90">Indicator</th>- <th colspan="2">Level</th>+ <th width="100">Indicator<br/> </th>+ <th width="300" colspan="4">Level<br/> </th></tr><tr class="TableCellLight"><td align="left">Speed</td>- <td align="left" colspan="2">+ <td align="left" colspan="4"><input #(crawlingSpeedMinChecked)#::class="TableCellDark"#(/crawlingSpeedMinChecked)# type="submit" name="crawlingPerformance" value="minimum" /><input #(crawlingSpeedCustChecked)#::class="TableCellDark"#(/crawlingSpeedCustChecked)# id="customPPM" name="customPPM" type="text" size="5" maxlength="5" value="#[customPPMdefault]#" />PPM <input type="submit" name="crawlingPerformance" value="custom" /><input #(crawlingSpeedMaxChecked)#::class="TableCellDark"#(/crawlingSpeedMaxChecked)# type="submit" name="crawlingPerformance" value="maximum" />@@ -117,14 +121,21 @@</tr><tr class="TableCellLight"><td align="left">PPM (Pages Per Minute)</td>- <td align="left" width="20"><span id="ppmNum"> </span></td>- <td align="left" width="400px">+ <td align="left" width="40"><span id="ppmNum"> </span></td>+ <td align="left" width="260px" colspan="3"><progress id="ppmbar" max="30000" value="0" style="width:94%;"/></td></tr><tr class="TableCellLight"><td align="left">Traffic (Crawler)</td><td align="left"><span id="trafficCrawler"> </span> MB</td>+ <td colspan="3"> </td>+ </tr>+ <tr class="TableCellLight">+ <td align="left">Load</td>+ <td align="left"><span id="load"> </span></td>+ <td align="left" width="100">Postprocessing</td>+ <td align="left"><span id="postprocessing"> </span></td><td> </td></tr></tbody>diff --git a/htroot/Crawler_p.java b/htroot/Crawler_p.javaindex 5253d9e8f..1cd75ef15 100644--- a/htroot/Crawler_p.java+++ b/htroot/Crawler_p.java@@ -73,8 +73,11 @@ public class Crawler_p {final serverObjects prop = new serverObjects();prop.put("rejected", 0);prop.put("urlpublictextSize", 0);+ prop.put("urlpublictextSegmentCount", 0);prop.put("webgraphSize", 0);+ prop.put("webgraphSegmentCount", 0);prop.put("rwipublictextSize", 0);+ prop.put("rwipublictextSegmentCount", 0);prop.put("list", "0");prop.put("loaderSize", 0);prop.put("loaderMax", 0);diff --git a/htroot/js/Crawler.js b/htroot/js/Crawler.jsindex cb9f4d279..c7b085594 100644--- a/htroot/js/Crawler.js+++ b/htroot/js/Crawler.js@@ -89,12 +89,24 @@ function handleStatus(){trafCrawlerSpan.appendChild(document.createTextNode(Math.round((trafficCrawlerValue) / 1024 / 10.24) / 100));dbsize=getFirstChild(statusTag, "dbsize");- urlpublictextSize=getValue(getFirstChild(dbsize, "urlpublictext"));- rwipublictextSize=getValue(getFirstChild(dbsize, "rwipublictext"));- webgraphSize=getValue(getFirstChild(dbsize, "webgraph"));- document.getElementById("urldbsize").firstChild.nodeValue=urlpublictextSize;- document.getElementById("webgraphsize").firstChild.nodeValue=webgraphSize;- document.getElementById("rwidbsize").firstChild.nodeValue=rwipublictextSize;+ urlpublictext=getValue(getFirstChild(dbsize, "urlpublictext"));+ urlpublictextSegmentCount=getValue(getFirstChild(dbsize, "urlpublictextSegmentCount"));+ webgraph=getValue(getFirstChild(dbsize, "webgraph"));+ webgraphSegmentCount=getValue(getFirstChild(dbsize, "webgraphSegmentCount"));+ rwipublictext=getValue(getFirstChild(dbsize, "rwipublictext"));+ rwipublictextSegmentCount=getValue(getFirstChild(dbsize, "rwipublictextSegmentCount"));+ document.getElementById("urlpublictextSize").firstChild.nodeValue=urlpublictext;+ document.getElementById("urlpublictextSegmentCount").firstChild.nodeValue=urlpublictextSegmentCount;+ document.getElementById("webgraphSize").firstChild.nodeValue=webgraph;+ document.getElementById("webgraphSegmentCount").firstChild.nodeValue=webgraphSegmentCount;+ document.getElementById("rwipublictextSize").firstChild.nodeValue=rwipublictext;+ document.getElementById("rwipublictextSegmentCount").firstChild.nodeValue=rwipublictextSegmentCount;++ postprocessing=getFirstChild(statusTag, "postprocessing");+ document.getElementById("postprocessing").firstChild.nodeValue=getValue(getFirstChild(postprocessing, "status"));++ load=getFirstChild(statusTag, "load");+ document.getElementById("load").firstChild.nodeValue=getValue(load);loaderqueue=getFirstChild(statusTag, "loaderqueue");loaderqueue_size=getValue(getFirstChild(loaderqueue, "size"));