-
Notifications
You must be signed in to change notification settings - Fork 29
ldmsend_nws.c #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
ldmsend_nws.c #42
Conversation
Rewrite of ldmsend.c that will allow send retries if an error occurs during the file upload. Add an optional notification to verify that the product was added to the LDM queue on the remote host. Due to some network issues, several of our sites has product upload failures using ldmsend. As some critical products are only sent at specific times we needed a way to resend the product during periods when the network was saturated. Due to our firewall configurations we cannot request from our downstream servers so we could not do a pqinsert at the site and request from the downstream queue. Ldmsend works most of the time but was failing during periods of when the network was saturated. The new version of ldmsend allow us to resend and verify the upload, for example: > su - ldm > /bin/bash > dd if=/dev/urandom of=/tmp/testfile.1 bs=1024 count=8192 > cd /tmp > status=$(/usr/local/ldm/util/ldmsend_nws -vxnl- -h 216.38.81.25 -f EXP -o 3600 -r 5 -R 60 -T 25 -p '^testfile.*' testfile.1) > echo $status NOTE: For testing purposes the new version of ldmsend was compiled as ldmsend_nws and copied to the util directory. If status variable equals PASS the file made is to the upstream LDM queue. If status equals anything else, the file did not upload and our scripts can be adjusted to send alert messages to the forecasters if any critical upload failed.
|
|
|
Do your firewalls allow TCP connections to port 80? |
|
Hi Steve, With the exception of our public Web server, all access public to port Thanks, On 09/12/2016 06:40 PM, Steven Emmerson wrote:
// ****************************************** // |
|
Hi Steve, The reason I added the NOTIFYME call was to verify the product was Thanks, On 09/12/2016 06:36 PM, Steven Emmerson wrote:
// ****************************************** // |
|
|
Rewrite of ldmsend.c that will allow send retries if an error occurs during the file upload. Add an optional notification to verify that the product was added to the LDM queue on the remote host. Due to some network issues, several of our sites has product upload failures using ldmsend. As some critical products are only sent at specific times we needed a way to resend the product during periods when the network was saturated. Due to our firewall configurations we cannot request from our downstream servers so we could not do a pqinsert at the site and request from the downstream queue. Ldmsend works most of the time but was failing during periods of when the network was saturated. The new version of ldmsend allow us to resend and verify the upload, for example:
NOTE: For testing purposes the new version of ldmsend was compiled as ldmsend_nws and copied to the util directory.
If status variable equals PASS the file made is to the upstream LDM queue. If status equals anything else, the file did not upload and our scripts can be adjusted to send alert messages to the forecasters if any critical upload failed.