Changes between Version 1 and Version 2 of installation_QCG_Notification_in_PLGrid
- Timestamp:
- 05/19/11 17:51:51 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
installation_QCG_Notification_in_PLGrid
v1 v2 84 84 85 85 86 Add a new rule to the pg_hba.conf as requested: 86 * Add a new rule to the pg_hba.conf as requested: 87 {{{ 88 #!div style="font-size: 90%" 89 {{{#!sh 87 90 vim /var/lib/pgsql/data/pg_hba.conf 88 91 /etc/init.d/postgresql reload 92 }}} 93 }}} 89 94 90 = Configuration=95 = Configuration = 91 96 92 ==Service configuration== 93 The service should be ready to use "out-of-the-box", however basic configuration may be needed to setup ''Host'' and ''Port'' on which Smoa Notification should listen as well as parameters of database connection: ''DSN'', ''User'' and ''Password''. It can be done by editing the main Smoa Notification configuration file located in: <tt>/opt/plgrid/qcg/smoa/etc/smoa-ntfd.xml</tt>. A part of the configuration file with marked key parameters is presented below: 94 97 == Service configuration == 98 The service should be ready to use "out-of-the-box", however basic configuration may be needed to setup ''Host'' and ''Port'' on which Smoa Notification should listen as well as parameters of database connection: ''DSN'', ''User'' and ''Password''. It can be done by editing the main Smoa Notification configuration file located in: `/opt/plgrid/qcg/smoa/etc/smoa-ntfd.xml`. A part of the configuration file with marked key parameters is presented below: 99 {{{ 100 #!div style="font-size: 90%" 101 {{{#!xml 95 102 <sm:SMOACore 96 103 <Configuration> … … 112 119 </Configuration> 113 120 </sm:SMOACore> 121 }}} 122 }}} 114 123 124 For more information about configuration of the service please take a look at the Smoa Notification guide installed in the `/opt/plgrid/qcg/smoa/share/smoa-ntf/doc/` directory. 115 125 116 For more information about configuration of the service please take a look at the Smoa Notification guide installed in the <tt>/opt/plgrid/qcg/smoa/share/smoa-ntf/doc/</tt> directory.126 After finishing the SMOA Notification configuration you must edit the [[QCG_BES_AR_in_PLGrid#Serviceconfiguration|Smoa Computing service configuration file]] again and update the content of the `<ServiceURL>` elements (in `<Module xsi:type="smc:notification_wsa">` section). For e.g. if in the `/opt/plgrid/qcg/smoa/etc/smoa-ntfd.xml` one can find `<Host>example.com<Host>` and `<Port>19001<Port>` the `<ServiceURL>` must be set to `http://example.com:19001/`. 117 127 118 After finishing the SMOA Notification configuration you must edit the [[SMOA_Computing_in_PL-Grid#Service%20configuration|Smoa Computing service configuration file]] again and update the content of the <code><ServiceURL></code> elements (in ''<Module xsi:type="smc:notification_wsa">'' section). For e.g. if in the <tt>/opt/plgrid/qcg/smoa/etc/smoa-ntfd.xml</tt> one can find <tt><Host>example.com<Host></tt> and <tt><Port>19001<Port></tt> the <code><ServiceURL></code> must be set to http://example.com:19001/ . 128 '''Note:''' You must restart the Smoa Computing service after updating the `smoa-compd.xml` configuration file. 119 129 120 {{Note}} You must restart the Smoa Computing service after updating the <code>smoa-compd.xml</code> configuration file. 121 122 =Running the service= 123 The Smoa Notification initialization script is automatically added to init.d directory and may be run as a standard system service: 130 = Running the service = 131 The Smoa Notification initialization script is automatically added to `init.d` directory and may be run as a standard system service: 132 {{{ 133 #!div style="font-size: 90%" 134 {{{#!sh 124 135 /etc/init.d/smoa-ntfd start 136 }}} 137 }}} 125 138 126 139 The service logs can be found in: 140 {{{ 141 #!div style="font-size: 90%" 142 {{{#!sh 127 143 /opt/smoa/var/log/smoa-ntf/smoa-ntfd.log 144 }}} 145 }}} 128 146 129 147 It could be then stopped with the following command: 148 {{{ 149 #!div style="font-size: 90%" 150 {{{#!sh 130 151 /etc/init.d/smoa-ntfd stop 152 }}} 153 }}} 154 '''Note:''' `smoa-ntfd` will be started with the `smoa_ntf` user permissions. 131 155 132 {{Note}} smoa-ntfd will be started with the smoa_ntf user permissions. 133 134 =Verifying the installation= 156 = Verifying the installation = 135 157 After starting the Smoa Notification service and updating the Smoa Computing configuration try to submit a simple job and check the Smoa Computing log file to see if there are now any error messages on sending notifications, e.g.: 158 {{{ 159 #!div style="font-size: 90%" 160 {{{#!sh 136 161 $ tail -f /opt/plgrid/var/log/smoa-comp/smoa-comp.log 137 162 INF Sep 17 16:15:01 24201 0x44b22940 [notification_ws] Sending notify message (topic = ActivityState/TerminalState/Finished, activity_id = 0544b24a-e960-400e-4910-f1a893632610, status = Finished) 163 }}} 164 }}} 138 165 = Configuring firewall= 139 Please have a look at [[ SMOA_Computing_in_PL-Grid#Configuring_firewall| this section]].166 Please have a look at [[QCG_BES_AR_in_PLGrid#Configuringfirewall| this section]].