Changes between Initial Version and Version 1 of installation_QCG_Notification

Show
Ignore:
Timestamp:
05/17/11 10:36:04 (13 years ago)
Author:
bartek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • installation_QCG_Notification

    v1 v1  
     1= QCG Notification Installation = 
     2Within QosCosGrid the QCG Notification service is used for brokering notification messages about the job state changes. All instances of the QCG BES/AR services acts as the information ''Producers'' while the QCG Broker as the ''Consumer''. In most cases it is enough that only one instance of the QCG Notification is deployed per Administrative Domain (i.e.: not necessary one per Cluster). 
     3 
     4=Installation= 
     5Similar to the SMOA Computing the [http://fury.man.poznan.pl/smoa-downloads/smoa-ntf/smoa-ntf-latest.tar.gz  SMOA Notification] requires the [[SMOA_Computing#SMOA_Core_library| SMOA Core library]] to be installed. If this prerequisite is fulfilled the SMOA Notification installation can be done in a  few simple steps: 
     6  $ tar xf smoa-ntf-latest.tar 
     7  $ cd smoa-ntf-1.1.2 
     8  $ ./configure --prefix=/opt/QCG/smoa/ --with-smoa-core=/opt/QCG/smoa/ 
     9  $ make 
     10  $ sudo make install 
     11 
     12=Configuration= 
     13Before you start create a new system user (e.g. smoa_ntf) that will be used to start the service: 
     14 # useradd -d  /opt/QCG/smoa/var/log/smoa-ntf/ -M  smoa_ntf 
     15Give the <code>smoa_ntf</code> user ownership of the log directory: 
     16 # chown smoa_ntf /opt/QCG/smoa/var/log/smoa-ntf/ 
     17 
     18==Service configuration== 
     19Minimal configuration requires only the host and port to be changed in the main service configuration file: <tt>PREFIX/etc/smoa-ntfd.xml</tt> (The complete configuration guide can be found in the <tt>doc/</tt> directory). After finishing the SMOA Notification configuration you must edit the [[SMOA_Computing#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>PREFIX/etc/smoa-ntfd.xml</tt> one can find  <tt><Host>example.com<Host></tt> and <tt><Port>19005<Port></tt> the <code><ServiceURL></code> must be set to http://example.com:19005/ .  
     20 
     21{{Note}} You must restart the SMOA Computing service after updating the <code>smoa-compd.xml</code> configuration file. 
     22 
     23=Starting the service= 
     24As the <code>smoa_ntf</code> user  type: 
     25  $ /opt/QCG/smoa/sbin/smoa-ntfd 
     26 
     27or if you want the service not to daemonize and print all logs to console type: 
     28 
     29 $ /opt/QCG/smoa/sbin/smoa-ntfd -d 
     30 
     31otherwise the logs can be found in <code>/opt/QCG/smoa/var/log/smoa-ntf/smoa-ntfd.log</code>. 
     32 
     33=Stopping the service= 
     34The service is stopped by sending SIGTERM signal, e.g.: 
     35  $ pkill smoa-ntfd 
     36 
     37=Verifying the installation= 
     38After 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.: 
     39 $ tail -f /opt/QCG/smoa/var/log/smoa-comp/smoa-comp.log 
     40 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)