web pages url updates
[jabaws.git] / website / man_stats.html
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE html PUBLIC "XHTML 1.0 Strict"\r
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
4 <html xmlns="http://www.w3.org/1999/xhtml">\r
5 <head>\r
6 <meta name="Last-modified" content="Mon, 4 Apr 2011 12:00:00 GMT"/>\r
7 <title>Java Bioinformatics Analyses Web Services (JABAWS) Command Line Client manual</title>\r
8 <link href="ws.css" rel="stylesheet" type="text/css" media=\r
9 "screen, projection, handheld, tv" />\r
10 <link rel="stylesheet" type="text/css" media="print" href=\r
11 "print.css" />\r
12 <script type="text/javascript" src="prototype-1.6.0.3.js"></script>\r
13 </head>\r
14 <body>\r
15 <div id="page">\r
16 <div id="banner">\r
17 <table> \r
18 <tr><td style="width:158px;"><a href="http://www.dundee.ac.uk"><img src="images/uod_lt_long.gif"  alt="University of Dundee" width="158" height="90" class="logo"  title="University of Dundee" longdesc="http://www.dundee.ac.uk"/></a></td>\r
19 <td class="bg"><img src="images/jabaws2.png" alt="JABAWS-2.0" title="Java Bioinformatics Analysis Web Services version 2.0"/></td>\r
20 <td class="bg"><img src="images/banner_right.png" alt="Disorder" width="200" height="80"/></td>\r
21 </tr>\r
22 </table>\r
23 </div><!-- banner end-->\r
24 \r
25 <div id="wrapper">\r
26 <div id="panel"><a href="index.html">Home</a> \r
27   <a href="quick_start.html">Getting Started</a> \r
28   <a class="selected" href="man_about.html">Manual</a> \r
29         <div id="submenu">\r
30                 <a href="man_about.html">About</a>\r
31                 <a href="man_servervm.html" title="JABAWS Server as Virtual Appliance">Server VA</a>\r
32                 <a href="man_awscloud.html" title="JABAWS Server in the Amazon EC2 Cloud">Server in the Cloud</a>\r
33                 <a href="man_serverwar.html" title="JABAWS Server as Web Application aRchive">Server WAR</a>\r
34                 <a href="man_configuration.html" >Server<br/>\r
35                 Configuration</a>\r
36                 <a href="man_client.html" title="JABAWS Command Line Client">CMD Client</a>\r
37                 <a class="selected" href="man_stats.html" title="JABAWS Usage Statistics">Usage Statistics</a>\r
38                 <a href="man_dev.html" title="Accessing JABAWS from your program">Accessing<br/>\r
39                 JABAWS</a>      \r
40                 <a href="man_server_dev.html" >JABAWS Development</a>\r
41         </div>\r
42 <a href="http://www.compbio.dundee.ac.uk/download">Download</a> \r
43 <a href="PublicAnnualStat" title="JABAWS server usage statistics">Usage Statistics</a>\r
44  <a href="ServiceStatus" title="JABAWS webservices status. Click to test all web services. Please be patient while the services are being checked">Services Status</a>\r
45 <a href="contacts.html">Contact Us</a>\r
46 <a href="http://www.compbio.dundee.ac.uk" title="University of Dundee, The Barton Group" >Barton Group</a>\r
47 </div>\r
48 \r
49 <!-- panel end-->\r
50 <div id="content">\r
51 <h2 id="headtitle">JABAWS MANUAL</h2>\r
52 \r
53 <h2><a name="usingcclient" id="usingcclient"></a>JABAWS Usage Statistics </h2>\r
54 <ul>\r
55   <li><a href="#usage_sum">Summary of Usage</a></li>\r
56   <li><a href="#helpUsageStats">Authentication</a></li>\r
57   <li><a href="#detailed_usage">Detailed Usage Statistic </a></li>\r
58   <li><a href="#job_list">Job List</a></li>\r
59   <li><a href="#job_dir">Single Job Directory Content </a></li>\r
60   <li><a href="#conf_tomcat_user">Configuring a privileged   access for Tomcat web application server</a></li>\r
61   <li><a href="#exec_stat_conf">Configuring JABAWS execution statistics</a></li>\r
62 </ul>\r
63 <h3><a name="usage_sum"></a>Summary of Usage </h3>\r
64 <p>JABAWS comes with a web application for visualizing usage statistics. The screenshot below shows the main page of this application. Each month is a link to the detailed usage statistics for this month described later. Please note however, that the links to the detailed monthly statistics are only available for authenticated users in the role <span class="hightlight">admin</span>. There is a link at the bottom of the page that would let you login, if you have not done so. </p>\r
65 <p>If you are using JABAWS VA (Virtual Appliance) then the username is <span class="hightlight">jabaws</span> and password is not defined, e.g. empty. </p>\r
66 <p>If you have deployed a JABAWS WAR file, then please see the <a href="#conf_tomcat_user">configuring privileged   access for Tomcat web application server</a> section for further details. </p>\r
67 <p><img src="images/usage_statistics_main.gif" alt="JABAWS usage statistics" width="608" height="318"></p>\r
68 <p>The table contains the number of jobs processed by JABAWS per month, for the whole   period when the statistics was collected</p>\r
69 <p>For each month the table contains the following information.</p>\r
70 <ul>\r
71   <li>Month - the period of time for which statistics is displayed. For example Jan 2011 means period of time from the first of         January to the first of February.</li>\r
72   <li>Total - the total number of jobs accepted by JABAWS</li>\r
73   <li>Incomplete - the number of jobs for which the result file was not found or was empty excluding cancelled</li>\r
74   <li>Cancelled - the number of jobs cancelled by the user</li>\r
75   <li>Abandoned - the number of jobs which result(s) were not collected</li>\r
76 </ul>\r
77 <p>The summary for each column is displayed in the last row of the table.</p>\r
78 <h3><a name="helpUsageStats"></a>Authentication</h3>\r
79 <p>Authentication lets you see the detailed usage statistics. If you are using JABAWS VA (Virtual Appliance) then the username is <span class="hightlight">jabaws</span> and password is not defined, e.g. empty. In other cases you need to ask your system administrator for it. </p>\r
80 <h3><a name="detailed_usage"></a>Detailed Usage Statistic  </h3>\r
81 <p>Detailed execution statistics for each month is available for authenticated users only. </p>\r
82 <p><img src="images/usage_statistics_month.gif" alt="JABAWS one month usage statistics" width="670" height="902"></p>\r
83 <p>Each table contains the number of jobs processed by JABAWS during the period of   time specified in the title.</p>\r
84 <ul>\r
85   <li>The &quot;All Jobs&quot; table contains the summary of all jobs.</li>\r
86   <li>&quot;Local Jobs&quot; table - contains the summary of the jobs calculated by the local engine.</li>\r
87   <li>&quot;Cluster Jobs&quot; table - contains the summary of the jobs calculated by the cluster.</li>\r
88 </ul>\r
89 Each table contains the following information for each web service\r
90 <ul>\r
91   <li>Total - the total number of jobs accepted by a particular JABA service</li>\r
92   <li>Incomplete - the number of jobs for which the result file was not found or was empty excluding cancelled</li>\r
93   <li>Cancelled - the number of jobs cancelled by the user</li>\r
94   <li>Abandoned - the number of jobs which result(s) were not collected</li>\r
95 </ul>\r
96 <h3><a name="job_list"></a>Job List </h3>\r
97 <p>Please note that if you deployed JABAWS WAR, in order to be able to navigate to the job directory from this view the application server may need to be configured. Please see  <a href="#exec_stat_conf">Configuring JABAWS execution statistics</a> section for further details. </p>\r
98 <p><img src="images/usage_statistics_details.gif" alt="JABAWS - job list" width="917" height="198"> </p>\r
99 <p>Columns </p>\r
100 <ul>\r
101   <li>JobID - the JABAWS job id, unique for every job</li>\r
102   <li>Cluster JobID - cluster job id</li>\r
103   <li>InputSize - input size in bytes</li>\r
104   <li>ResultSize - result size in bytes</li>\r
105   <li>Runtime (s) - job's runtime in seconds</li>\r
106   <li>Start time (s)- job's start time and date</li>\r
107   <li>Finish time (s)- job's finish time and date</li>\r
108   <li>isCancelled - whether the job was cancelled</li>\r
109   <li>isCollected - whether the job was collected. False for the jobs   that has been initiated but which results has never been retrieved</li>\r
110   <li>isFinished - whether the job has finished. This does not necessarily mean that the job has produced the result.           The job can sometime finish in failure.</li>\r
111 </ul>\r
112 <h3><a name="job_dir"></a>JABAWS Job Directory Content </h3>\r
113 <p><img src="images/usage_statistics_job_details.gif" alt="JABAWS- job details" width="716" height="420"></p>\r
114 <p>STARTED and FINISHED files contain Unix timestamp - when the job was started and completed respectively. STARTED is replaced by SUBMITTED if the job has been submitted to the cluster, as opposed to executed locally, on the server. </p>\r
115 <p>COLLECTED file is empty and indicates that the job results were collected by the user. Due to asynchronous   nature of the job it is possible that the job was started and finished, but the results has never been requested. </p>\r
116 <p>RunnerConfig.xml file contains a complete description of the job and JABAWS can restart the job based on this description. </p>\r
117 <p>procError.txt and procOutput.txt files  contains the content of the standard out and standard error streams of the process. </p>\r
118 <p>result.txt file contains the results. </p>\r
119 <p>input.txt file contains input into the process. </p>\r
120 <p>There are maybe other files depending on the nature of the job, but the one described above will present in most cases. In this example, stat.log file stories the execution statistics generated by the process (clustal executable in this example).</p>\r
121 <p> If you have deployed JABAWS WAR file or made changes to JABAWS configuration you may need to make a few changes to the Tomcat configuration to be able to see the content of the job directory. Please see <a href="#exec_stat_conf">Configuring JABAWS execution statistics</a> section for further details. </p>\r
122 <h3><a name="exec_stat_conf"></a>Configuring JABAWS execution statistics</h3>\r
123 <p>JABAWS execution statistics is a multi-component system. First is a crawler which job is to collect and preprocess the statistics from the job temporary directories and record the collected statistics into the database. The second part of the system is a web application which job is to visualise the statistics from the database. </p>\r
124 <p>It is possible to enable/disable the statistics collector by changing the following properties in the conf/Cluster.engine.properties and conf/Local.engine.properties files. </p>\r
125 <p class="box"># Enable/disable cluster statistics collector true = enable, false = disable <br>\r
126   cluster.stat.collector.enable=false\r
127   <br/>\r
128   # Maximum amount of time the job is considered be running in hours. Optional defaults to 7 days (168h) <br>\r
129   cluster.stat.maxruntime=24</p>\r
130 <p class="box"># Enable/disable cluster statistics collector true = enable, false = disable <br>\r
131   local.stat.collector.enable=true\r
132   <br/>\r
133   # Maximum amount of time the job is considered to be running in hours. Optional defaults to 24 hours<br>\r
134   local.stat.maxruntime=6</p>\r
135 <p>If the statistics collector is enabled then the crawler  starts automatically soon after (10 minutes for local engine, and 60 minutes for cluster engine) the JABAWS web application and will be collecting the execution statistics every 24 hours after the start. </p>\r
136 <p>The details of the job are only available if the job temporary directory is located within a JABAWS web application. If not, the system administrator can create a symbolic link pointing to  the temporary job directories outside of a web application and configure the  application server to allow navigation to the links.  For the Tomcat application server the context configuration file should be created and copied to the &lt;TOMCAT_ROOT&gt;/conf/Catalina/localhost directory. The name of the file should be the same as the web application context name, for example &quot;<span class="hightlight">jabaws.xml</span>&quot; for jabaws. Where the TOMCAT_ROOT is the location of the Tomcat web application server. Here is an example of such a file: </p>\r
137 <p><span class="code">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>\r
138 &lt;Context antiResourceLocking=&quot;false&quot; privileged=&quot;true&quot; allowLinking=&quot;true&quot;/&gt;</span></p>\r
139 <p>The key option here is this: <span class="hightlight">allowLinking=&quot;true&quot;</span>. Please also make sure that you have defined the user in role &quot;<span class="hightlight">admin</span>&quot; as described <a href="#conf_tomcat_user">below</a>.</p>\r
140 <h3><a name="conf_tomcat_user" id="conf_tomcat_user"></a>Configuring a privileged   access for Tomcat web application server</h3>\r
141 <p>Access to configuration files, detailed job execution statistics and job directories are allowed only for authenticated users in role &quot;<span class="hightlight">admin</span>&quot;. </p>\r
142 <p>If you use Tomcat, then the simplest way to set up privileged   access is to use a plain text configuration file <span class="hightlight">conf/tomcat-user.xml</span>. Here is an example of such configuration file defining user &quot;<span class="hightlight">peter</span>&quot; in role &quot;<span class="hightlight">admin</span>&quot;. <span class="code">&lt;tomcat-users&gt;<br/>\r
143   &lt;role rolename=&quot;admin&quot;/&gt;<br />\r
144   &lt;user username=&quot;peter&quot; password=&quot;your password here &quot; roles=&quot;admin&quot;/&gt;<br/>\r
145   &lt;/tomcat-users&gt;</span></p>\r
146 <p>For more information on users and roles please consult Apache-Tomcat help pages. </p>\r
147 <p><br>\r
148 </p>\r
149 </div>\r
150 \r
151 <!-- content end-->\r
152 <div id="copyright">Last update: 16 September 2011<br />\r
153  Peter Troshin, Jim Procter and Geoff Barton, The Barton Group, University of\r
154 Dundee, UK</div>\r
155 </div>\r
156 \r
157 <!-- wrapper end-->\r
158 </div>\r
159 <!-- page end-->\r
160 \r
161 <!-- Google analitics -->\r
162 <script type="text/javascript">\r
163 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r
164 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\r
165 </script>\r
166 <script type="text/javascript">\r
167 try{\r
168 var pageTracker = _gat._getTracker("UA-5356328-1");\r
169 pageTracker._trackPageview();\r
170 } catch(err) {}\r
171 </script>\r
172 </body>\r
173 </html>\r
174 \r