mdsrv.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: mdsrv
  5. (C) Copyright IBM Corp. 2008, 2014
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. The service-level settings of the Metadata Service.
  10. -->
  11. <service name="metadataService" class="com.cognos.pogo.services.SoapActionHandlerService" loadPriority="200" registerInCM="true" CMdefaultName="MetadataService">
  12. <prerequisites>
  13. <prerequisite disabledProperty="mdsIsEnabled"/>
  14. <prerequisite disabledProperty="dispIsEnabled"/>
  15. </prerequisites>
  16. <handlers>
  17. <handler name="serviceStatus" classname="com.cognos.pogo.handlers.engine.ServiceStatusHandler" dispatcherStateHandler="dispatcher.dispatcherStatusHandler" serviceName="metadataService" skip_on_fault="false"/>
  18. <handler name="asyncMetadataServiceHandler" classname="com.cognos.pogo.async.impl.AsyncHandler" threadBaseName="asyncMDSRVThread-" expiryCheckIntervalms="10000" connectionProperty="jsConnections" peakConnectionProperty="jsPeakConnections" abandonLimit="12" graceLimit="12" wrappedHandler="metadataService.metadataServiceHandler" onCompletionHandler="metadataService.metadataServiceReporter"/>
  19. <handler name="metadataServiceHandler" classname="com.cognos.metadataService.bibusHandler.MDSRVHandler" cn_cleanup_list="cleanup" cnRequestInfo="warpRequestInfo" runTimeInfoReporter="metadataService.metadataServiceReporter" requestDuration="40" preventSSL="true" objectFactory="com.cognos.metadataService.bibusHandler.mdprovider.MDProviderComponentFactory">
  20. <target>
  21. <child-proc-cmd>idleTimeLimitSec=900</child-proc-cmd>
  22. <init-param>
  23. <param-name>exe_name</param-name>
  24. <param-value>${dispatcher.bin}/BmtMDProviderMain${os.executable.extension}</param-value>
  25. </init-param>
  26. <init-param>
  27. <!-- The host where the BmtMDProviderMain is running on. This is only used if report_server_port is NOT ZERO -->
  28. <param-name>report_server_host</param-name>
  29. <param-value>localhost</param-value>
  30. </init-param>
  31. <init-param>
  32. <!-- The port the BmtMDProviderMain is listening to. 0 (zero) should be used if the -->
  33. <!-- dispatcher spawns the process and uses a dynamically assigned port -->
  34. <param-name>report_server_port</param-name>
  35. <param-value>0</param-value>
  36. </init-param>
  37. <init-param>
  38. <param-name>worker_request_path</param-name>
  39. <param-value>/mdsrv</param-value>
  40. </init-param>
  41. <init-param>
  42. <!-- The maximum number of processes that can be running at one time -->
  43. <param-name>max_process</param-name>
  44. <param-value>1</param-value>
  45. </init-param>
  46. <init-param>
  47. <!-- The minimum number of processes to keep in memory once they're started -->
  48. <param-name>linger_process</param-name>
  49. <param-value>1</param-value>
  50. </init-param>
  51. <init-param>
  52. <!-- The maximum number of non-affine connections per process -->
  53. <param-name>max_non_affine_connections_per_process</param-name>
  54. <param-value>4</param-value>
  55. </init-param>
  56. <init-param>
  57. <!-- Time period between checks for idle or expired processes (in ms) .
  58. Everytime we check an idle process we bump its tick count. Every time we use
  59. a process the count is reset to 0. If the count ever reaches the value
  60. of idle_process_max_idle_ticks (below) the process is destroyed.
  61. -->
  62. <param-name>idle_process_check_interval_ms</param-name>
  63. <param-value>30000</param-value>
  64. </init-param>
  65. <init-param>
  66. <!-- number of idle check ticks before an idle process is killed. -->
  67. <param-name>idle_process_max_idle_ticks</param-name>
  68. <param-value>10</param-value>
  69. </init-param>
  70. <init-param>
  71. <!-- Should the BmtMDProviderMain be started at initialization time rather than on-demand? -->
  72. <param-name>prestart_process</param-name>
  73. <param-value>true</param-value>
  74. </init-param>
  75. <init-param>
  76. <!-- The maximum time a request is queued before it gives up (in ms) -->
  77. <param-name>queue_time_limit_ms</param-name>
  78. <param-value>30000</param-value>
  79. </init-param>
  80. <init-param>
  81. <!-- The amount of time the dispatcher will wait for a async request before it cancels it (in ms) -->
  82. <param-name>async_wait_timeout_ms</param-name>
  83. <param-value>30000</param-value>
  84. </init-param>
  85. <init-param>
  86. <param-name>publish_stats_interval_ms</param-name>
  87. <param-value>60000</param-value>
  88. <!-- 0 for never -->
  89. </init-param>
  90. <init-param>
  91. <!-- The default number of requests that can be made to a process before it is expired -->
  92. <param-name>default_process_use_limit</param-name>
  93. <param-value>0</param-value>
  94. <!-- 0 for unlimited -->
  95. </init-param>
  96. <init-param>
  97. <!-- The amount of time the dispatcher will wait for the process to shutdown before killing it -->
  98. <param-name>process_shutdown_timeout_ms</param-name>
  99. <param-value>300000</param-value>
  100. </init-param>
  101. <bibsrv_config>
  102. <handlers>
  103. <handler url_prefix="/mdprovider" library_name="BmtMDProviderPlugin.cpi" plugin_name="BmtMDProviderPlugin" mode="stream">
  104. <ContentManager>
  105. <Host>${cm.host}</Host>
  106. <Port>${cm.port}</Port>
  107. <URI>${cm.url}</URI>
  108. </ContentManager>
  109. <RequestCache>
  110. <Size>${wp_cache_size}</Size>
  111. <IdleRequestLifespan>${wp_idle_request_lifespan}</IdleRequestLifespan>
  112. </RequestCache>
  113. </handler>
  114. </handlers>
  115. </bibsrv_config>
  116. </target>
  117. </handler>
  118. <handler name="metadataServiceReporter" classname="com.cognos.pogo.monitoring.QueueableRequestReportingHandler" publisherName="pogoPublisher" reporterName="metadataService" serviceType="metadataService" cnRequestInfo="warpRequestInfo" skip_on_fault="false"/>
  119. <handler name="mdaChainHandler" classname="com.cognos.pogo.handlers.logic.ChainHandler">
  120. <chain>
  121. <handler_ref name="pogo.auth_check" skip_on_fault="false"/>
  122. <handler_ref name="asyncMetadataServiceHandler" skip_on_fault="false"/>
  123. <handler_ref name="metadataServiceReporter" skip_on_fault="false"/>
  124. <handler_ref name="bridge.response"/>
  125. <handler_ref name="pogo.respond" skip_on_fault="false"/>
  126. </chain>
  127. </handler>
  128. <handler name="remoteBalanceHandler" classname="com.cognos.p2plb.clerver.actions.RemoteBalanceHandler">
  129. <service name="metadataService">
  130. <forwarding delayBetweenAttempts="0" maxAttempts="1" retryOnNoProcess="false"/>
  131. <soapAction>mda</soapAction>
  132. <soapAction>metadataService</soapAction>
  133. <soapAction>metadataService.server</soapAction>
  134. <soapAction>http://developer.cognos.com/schemas/metadataService</soapAction>
  135. <soapAction>http://developer.cognos.com/schemas/metadataService/1</soapAction>
  136. <soapAction>http://www.ibm.com/xmlns/prod/cognos/metadataService/*/</soapAction>
  137. <soapAction>http://developer.cognos.com/schemas/metadataService/1.high</soapAction>
  138. <soapAction>http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.high</soapAction>
  139. <soapAction>http://developer.cognos.com/schemas/metadataService/1.session</soapAction>
  140. <soapAction>http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.session</soapAction>
  141. <soapAction>http://developer.cognos.com/schemas/metadataService/1.absolute</soapAction>
  142. <soapAction>http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.absolute</soapAction>
  143. <soapAction>http://developer.cognos.com/schemas/metadataService/1.control</soapAction>
  144. <soapAction>http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.control</soapAction>
  145. <soapAction>http://developer.cognos.com/schemas/metadataService/1.server</soapAction>
  146. <soapAction>http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.server</soapAction>
  147. <soapAction>lineageUIService</soapAction>
  148. <soapAction>metadataUIService</soapAction>
  149. </service>
  150. </handler>
  151. <handler name="lineageHandler" classname="com.cognos.metadataService.ui.UIHandler"/>
  152. <handler name="lineageChainHandler" classname="com.cognos.pogo.handlers.logic.ChainHandler">
  153. <chain>
  154. <handler_ref name="pogo.auth_check"/>
  155. <handler_ref name="lineageHandler"/>
  156. <handler_ref name="bridge.response"/>
  157. <handler_ref name="pogo.respond"/>
  158. </chain>
  159. </handler>
  160. </handlers>
  161. <soapActions>
  162. <soapAction path="mda" handler="metadataService.mdaChainHandler"/>
  163. <soapAction path="metadataService" handler="metadataService.mdaChainHandler"/>
  164. <soapAction path="metadataService.server" handler="metadataService.mdaChainHandler"/>
  165. <soapAction path="http://developer.cognos.com/schemas/metadataService" handler="metadataService.mdaChainHandler"/>
  166. <soapAction path="http://developer.cognos.com/schemas/metadataService/1" handler="metadataService.mdaChainHandler"/>
  167. <soapAction path="http://www.ibm.com/xmlns/prod/cognos/metadataService/*/" handler="metadataService.mdaChainHandler"/>
  168. <soapAction path="http://developer.cognos.com/schemas/metadataService/1.high" handler="metadataService.mdaChainHandler"/>
  169. <soapAction path="http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.high" handler="metadataService.mdaChainHandler"/>
  170. <soapAction path="http://developer.cognos.com/schemas/metadataService/1.session" handler="metadataService.mdaChainHandler"/>
  171. <soapAction path="http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.session" handler="metadataService.mdaChainHandler"/>
  172. <soapAction path="http://developer.cognos.com/schemas/metadataService/1.absolute" handler="metadataService.mdaChainHandler"/>
  173. <soapAction path="http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.absolute" handler="metadataService.mdaChainHandler"/>
  174. <soapAction path="http://developer.cognos.com/schemas/metadataService/1.control" handler="metadataService.mdaChainHandler"/>
  175. <soapAction path="http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.control" handler="metadataService.mdaChainHandler"/>
  176. <soapAction path="http://developer.cognos.com/schemas/metadataService/1.server" handler="metadataService.mdaChainHandler"/>
  177. <soapAction path="http://www.ibm.com/xmlns/prod/cognos/metadataService/*/.server" handler="metadataService.mdaChainHandler"/>
  178. <soapAction path="lineageUIService" handler="metadataService.lineageChainHandler"/>
  179. <soapAction path="metadataUIService" handler="metadataService.lineageChainHandler"/> <!-- an alias to the main JSP handler -->
  180. </soapActions>
  181. <attributes>
  182. <attribute>advancedSettings</attribute>
  183. <attribute>mdsAffineConnections </attribute>
  184. <attribute>mdsAuditLevel</attribute>
  185. <attribute>mdsExecutionTimeLimit</attribute>
  186. <attribute>mdsNonAffineConnections</attribute>
  187. <attribute>mdsPeakAffineConnections</attribute>
  188. <attribute>mdsMaximumProcesses</attribute>
  189. <attribute>mdsPeakMaximumProcesses</attribute>
  190. <attribute>mdsQueueLimit</attribute>
  191. <attribute>runningState</attribute>
  192. </attributes>
  193. </service>