Navigation

 ·   Knowledge Base Home
 ·   Categories
 ·   Title List
 ·   Uncategorized Pages
 ·   Random Page
 ·   Recent Changes
 ·   RSS
 ·   Atom
 ·   What Links Here

Active Members:

 ·  Shawn Laycox

Search:

 

Create or Find Page:

 

View Watch Dog

Category:Tech Support Staff Only

Watch Dog

Watch dog

A background process has been added to watch for "hung" processes. If the watch dog detects a "hung" process it can automatically restart the Bridge.

There are 3 general areas the watch dog checks:

1. General polling functions:

Import of files via FTP download

HTTP actions ([ACTIONS])

Flight View

2. File based reservation import:

Import of files via import directory

3. EXI functions:

Socket based immediate reservation import

EXI connect

EXI disconnect

EXI VRAS

EXI RECON

EXI Send Confirmation

Watch dog configuration:

[WATCHDOG]

POLLERENABLE=n, default=0

      This value enable or disables the watch dog.

          0 - disable

          1 - enable

SCANDELAY=n, default = 10 seconds

exithread_restart=n, default=0

importthread_restart=n, default=0

pollerthread_restart=n, default=0

        This value indicates whether each process should force a restart.

        0 - restart disabled

        1 - restart enabled

exithread_timeout=10, default = 10 minutes

pollerthread_timeout=10, default = 10 minutes

importthread_timeout=10, default = 10 minutes

      This value is the number of minutes of no activity that will indicate a process is hung.

General   restart configuration:

An application command line must be configured as follows:

[POLLER]

APPCMDLINE=c:\Bridge\hwebbridge.exe /c:\Bridge\bridge.ini

LISTENDELAY=n, Default on auto restart = 10 seconds

This value is used to set a delay before listening on a socket. If the application has not completely shutdown before the new application is launched, the listen will fail.

When a restart is initiated an email is sent by default to alarmlist@hudsonltd.com. All email settings except recipient are loaded from resfc.

Email settings can be overridden as follows:

SMTPDEF=alarmlist@hudsonltd.com

          This value is the email recipient address SMTPHOST=www.emailhost.com SMTPSENDER=bridge@hudsonltd.com

SMTPUSER=username

SMTPPASSWORD=password

Sample INI setup:

[POLLER]
SCANDELAY=60
MACHINEID=MACHINE1
TITLE=BridgeTitle
UPLOADRESENABLE=0
FTPDOWNLOADENABLE=0
REQUESTLISTENABLE=0
MENUUTILITIESENABLE=0
FLIGHTVIEWENABLE=0

EXISEMAPHORENAME=HWEBEXI-REPLACEME
CFGSEMAPHORENAME=HWEBCFG-REPLACEME
EXIWAITSEM=5
EXIWAITIMPORT=3      
EXIWAITSENDCONF=3
EXIWAITCONNECT=3
EXIWAITDISCONNECT=3
EXIWAITVRAS=3
EXIWAITCONDEXP=3
EXIWAITIMPORTFILE=5

APPCMDLINE=%REPLACEME-HWebDir%\HWebBridge.exe \\hudsonts\dfs\Hudson\REPLACEME\HWeb\HWEB.ini
LISTENDELAY=10
SMTPDEF=alarmlist@hudsonltd.com
SMTPHOST=smtp.hudsonltd.com
SMTPSENDER=watchdog@hudsonltd.com
SMTPUSER=watchdog@hudsonltd.com
SMTPPASSWORD=WatchDog21
RESTARTINFO=


[WATCHDOG]
POLLERENABLE=1
SCANDELAY=10
exithread_restart=1
importthread_restart=1
pollerthread_restart=1
exithread_timeout=10
importthread_timeout=10
pollerthread_timeout=10

Sample email:

Subject: Bridge message Auto restart

Company: "Company Name"

Thu Aug 30 09:12:58 2007

Title: DOWNLOAD HWEB Bridge title Machine: FLIGHTVIEW

App name: C:\pr_mfc\dbpoller\debug\HWebBridge.exe

INI file: c:\pr_mfc\dbpoller\Debug\ini_downbridge.ini

HWeb Bridge DEBUG Version 1.38 Aug 30 2007 08:50:59 Build 1

Auto restart initiated

Watch Dog Timeout importthread

Upload reservation

—————————

Transmit the IDNumber reservation database field in the passenger id field of the reservation.

Categories: