Changes between Version 1 and Version 2 of installation_QCG_Notification_in_PLGrid

Show
Ignore:
Timestamp:
05/19/11 17:51:51 (13 years ago)
Author:
bartek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • installation_QCG_Notification_in_PLGrid

    v1 v2  
    8484  
    8585 
    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 
    8790  vim /var/lib/pgsql/data/pg_hba.conf  
    8891  /etc/init.d/postgresql reload 
     92}}} 
     93}}} 
    8994 
    90 =Configuration= 
     95= Configuration = 
    9196 
    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 == 
     98The 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 
    95102 <sm:SMOACore  
    96103    <Configuration> 
     
    112119    </Configuration> 
    113120 </sm:SMOACore> 
     121}}} 
     122}}} 
    114123 
     124For 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.  
    115125 
    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.  
     126After 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/`.  
    117127 
    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. 
    119129 
    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 = 
     131The 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  
    124135  /etc/init.d/smoa-ntfd start 
     136}}} 
     137}}} 
    125138 
    126139The service logs can be found in: 
     140{{{ 
     141#!div style="font-size: 90%" 
     142{{{#!sh 
    127143  /opt/smoa/var/log/smoa-ntf/smoa-ntfd.log 
     144}}} 
     145}}} 
    128146 
    129147It could be then stopped with the following command: 
     148{{{ 
     149#!div style="font-size: 90%" 
     150{{{#!sh 
    130151  /etc/init.d/smoa-ntfd stop 
     152}}} 
     153}}} 
     154'''Note:''' `smoa-ntfd` will be started with the `smoa_ntf` user permissions. 
    131155 
    132 {{Note}} smoa-ntfd will be started with the smoa_ntf user permissions. 
    133  
    134 =Verifying the installation= 
     156= Verifying the installation = 
    135157After 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 
    136161 $ tail -f /opt/plgrid/var/log/smoa-comp/smoa-comp.log 
    137162 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}}} 
    138165= Configuring firewall= 
    139 Please have a look at [[SMOA_Computing_in_PL-Grid#Configuring_firewall| this section]]. 
     166Please have a look at [[QCG_BES_AR_in_PLGrid#Configuringfirewall| this section]].