##### # $Id: ldmd.conf,v 1.18.12.5 2007/02/16 17:29:47 steve Exp $ # Sample ldmd.conf for ldm #### # # This is the main configuration file for the LDM server. All lines that start # with a "#" sign are comments. # # To debug an LDM that hangs on start up, run the following from LDM home: # % bin/rpc.ldmd -vl - -q data/ldm.pq etc/ldmd.conf # # If the LDM still hangs, comment out all lines in this file except noted # allow line entry below, try again. # ############################################################################### # WARNING: Pathological Product-ID Patterns ############################################################################### # # The REQUEST and ACCEPT entries both have product-ID patterns that are regular # expressions (RE-s). It is EXTREMELY IMPORTANT that these patterns not have a # ".*" prefix because: 1) such a prefix accomplishes nothing (i.e., the set of # possible matches is unaltered by the prefix); and 2) such a prefix causes the # RE to take MUCH, MUCH LONGER TO EXECUTE (by 3 orders of magnitude in some # cases). Therefore, DO NOT USE RE-s like # # ".*UFPBA" # # Instead, simply use # # "UFPBA" # # The regex(1) utility of this package can be used to examine the efficiency # of an RE. # ############################################################################### # Include Statements ############################################################################### # # It's possible to include other files by uncommented-out statements # like the following: # #INCLUDE pathname #INCLUDE "pathname with spaces" # # Non-absolute pathnames are relative to the directory that contains the # configuration-file with the include statement. # ############################################################################### # Exec Entries ############################################################################### # # Programs that can share a queue with rpc.ldmd server, these programs # are started by the "exec" command and are in the same process group. # EXEC "pqact -e -k R -s e /awips2/ldm/etc/pqact.conf.priority" EXEC "edexBridge -vl /awips2/ldm/logs/edexBridge-priority.log -s localhost --key-proj-id R --sem-proj-id e" #EXEC "pqact -e -k S -s f /awips2/ldm/etc/pqact.conf" #EXEC "edexBridge -vl /awips2/ldm/logs/edexBridge-std.log -s cpsbn1-oma.oma.us.ray.com --key-proj-id S --sem-proj-id f" # # rtstats uses the LDM to send product latency statistics to the UPC. # For more info on rtstats please see the man page. EXEC "rtstats -h rtstats.unidata.ucar.edu" #EXEC "pqsurf" # ############################################################################### # Request Entries ############################################################################### # # Request data-products from upstream LDM-s. The syntax is # # REQUEST [:] # # where: # Is the union of feedtypes to request. # Is an extended regular-expression for the product- # identifiers to match. # Is the host identifier: either a hostname or IP # address in "dotted-quad" format. # Is the (optional) port on to which to connect # (the square brackets denote an option and should be # omitted). # # If the same feedtype and pattern is requested from multiple hosts, then # the host of the first such request will be the initial primary source # of data-products (i.e., data-products will be rapidly sent using the # HEREIS message) and the other hosts will initially be alternate sources of # data-products (i.e., data will be sent using the COMMINGSOON and BLKDATA # messages). The primary host will probably change over time -- depending on # which host can deliver the data-products most quickly on average. # # DEFAULT Radar Ancillary EDEX REQUEST NEXRAD3 ".*" idd.unidata.ucar.edu # Radar Level3 REQUEST HDS "^SDUS6.*" idd.unidata.ucar.edu # Radar Level3 - specific files # #REQUEST WMO ".*" initial-secondary-host.another.domain #REQUEST WMO ".*" another-secondary-host.yet_another.domain:3152 # ############################################################################### # Allow Entries ############################################################################### # # Give permission to downstream LDM-s to request data-products from your LDM. # # ALLOW [ []] # # where: # is the set of feedtypes for this entry # is an extended regular-expression that specifies # which hosts are allowed to receive data-products # whose feedtype is in . # is an optional extended regular-expression that # a product-identifier must match in order to be # sent to the requesting LDM. The default value # is ".*". # is an optional extended regular-expression that # a product-identifier must NOT match in order to # be sent to the requesting LDM. If this field is # empty, then such matching will be disabled for # this entry. # # Under no circumstances comment out the next allow entry to localhost # The LDM will NOT start if the entry is commented-out. ALLOW ANY ^((localhost|loopback)|(127\.0\.0\.1\.?$)) .* # # Give permission to the Unidata Program Center #ALLOW ANY ^[a-z].*\.unidata\.ucar\.edu\.?$ .* # ############################################################################### # Accept Entries ############################################################################### # ACCEPT: Who can feed us without be requested by a REQUEST entry, currently # this action is ONLY needed for WSI data # # ACCEPT # # ACCEPT anything from yourself # #ACCEPT ANY ".*" ^((localhost|loopback)|(127\.0\.0\.1\.?$)) # # accept from your upstream site # # WSI is using ldm4 protocol so the accept is still required #ACCEPT WSI # .* # ^[a-z].*\.uni\.wsicorp\.com$ # ############################################################################### # End ###############################################################################