您的位置:首页 > 其它

MQ FTE - 以简单的方式管理文件传输!

2017-09-22 08:41 435 查看
原文链接: MQ FTE - Manage your file transfers the easy way!

本文翻译使用了谷歌翻译来辅助,特此声明。

  Don’t know much about MQFTE? Here’s a good starting place. WebSphere MQ FTE (File Transfer Edition) is a product that enables secure and reliable managed file transfers. It can be administered by either a GUI or the command line.

  不了解MQFTE吗?从阅读这篇文章出发吧。WebSphere MQ FTE (File Transfer Edition) 是一个能够提供安全可靠的文件传输管理的产品。它既可以通过命令行来管理也可以通过图形化的界面来管理。

  You have the option of monitoring a directory or MQ queue for new data and initiating a transfer based on criteria that can be configured to monitor for files by seconds, minutes or hours.

  您可以选择监视新数据的目录或MQ队列,并可根据标准配置为以秒,分钟或小时为单位的条件下来启动传输。

  When a matching condition is found, the monitor can copy or move a file or it may run a FTE call (such as ANT script). Some options that may be employed by a directory monitor trigger are a file name pattern, size of file, that file hasn’t changed for certain number of polls, or at that a certain file does NOT exist. This last option is useful for a temporary file to be placed in a directory to prevent transfer until you are ready for the transfer to begin.

  当找到匹配条件时,监视器可以复制或移动文件,或者可以运行FTE的调用(如ANT脚本)。当然了,对于目录监视器触发器,我们可以设定一些选项去监测我们感兴趣的内容,比如文件名称模式、文件大小、该文件有没有更改、文件是否不存在。最后一个选项对于将临时文件放置在目录中是有用的,MQFTE会在您准备好之后,才开始传输。

  The trigger file isn’t necessarily the file that is to be transferred. You can set a monitor to check for the trigger file and then actually perform the transfer on a different file. Often, an exit or call is made afterwards to delete the trigger file after transfer occurs.

  触发器文件不一定是要传输的文件。您可以设置一个监视器来检查触发器文件,然后在另一个文件上进行实际的传输。通常,当触发器文件发生转移之后,系统会做出exit或者call来删除触发文件。

  One thing to keep in mind is that if more than one file matches the trigger pattern, a new transfer will be started for every file found. This could cause a problem if you have a short poll interval and lots of files. High CPU may result as many transfers are initiated when the first one has not yet completed.

  要记住的一件事是,如果多个文件与触发模式匹配,则会为每个找到的文件启动一个新的传输。如果您有一个短轮询间隔和大量文件,这可能会导致问题。高CPU可能会导致当第一个尚未完成时启动许多传输。

  A common problem we have seen is when 1,000s of transfer are started instead of one big transfer. If there are 1,000 files matching the trigger pattern (for example *.log file), the FTE would start 1,000 transfers of 1 file each. You can use the batch size ( -bs) parameter to avoid this. For example: 1,000 files with a monitor batch size of 100 results in 10 transfers of 100 files.

  我们所看到的一个常见问题是,开始了1,000次转移,而不是一次大的转移。如果有1000个匹配触发模式的文件(例如* .log文件),则FTE将每次启动1,000个文件传输1个文件。您可以使用批量大小(-bs)参数来避免这种情况。例如:1,000个监视器批量大小为100的文件会导致100个文件的10个传输。

  Some parameters that can be used to help configure and modify your FTE agent are monitorGroupRetryLimit, monitorMaxResourcesInPoll and maxTransferNegotiationTime:

  可用于帮助配置和修改FTE代理的一些参数是monitorGroupRetryLimit,monitorMaxResourcesInPoll和maxTransferNegotiationTime:

  monitorGroupRetryLimit (default =10) - If a transfer fails, FTE will attempt transfer again. This could lead to numerous failures in logs. The monitorGroupRetryLimit allows you to specify the number of times you would like to have the transfer attempted. Restating the agent will cause the transfer to be started again.

  monitorGroupRetryLimit(default = 10) - 如果传输失败,FTE将再次尝试传输。这可能导致日志中的大量故障。 monitorGroupRetryLimit允许您指定想要进行传输的次数。重新启动代理将导致重新启动传输。

  monitorMaxResourcesInPoll - A new agent property that is provided a part of APAR IC78011. This property allows you to limit the number of files the monitor will match per poll and control the number of new transfers initiated. You can use this parameter in conjunction with batch size (-bs) to customize the behavior of the agent.

  monitorMaxResourcesInPoll - 一个新的代理属性,它是APAR IC78011的一部分。此属性允许您限制监视器匹配每个轮询的文件数,并控制启动的新传输次数。您可以将此参数与批量大小(-bs)一起使用,以自定义代理的行为。

  maxTransferNegotiationTime - This parameter allows the agents more time to negotiate the transfers and prevents the initial transfers from going into recovery state, thus allowing those transfers the opportunity to complete without going into recovery state at all. See this technote for more details.

  monitorMaxResourcesInPoll - 一个新的代理属性,它是APAR IC78011的一部分。此属性允许您限制监视器匹配每个轮询的文件数,并控制启动的新传输次数。您可以将此参数与批量大小(-bs )一起使用,以自定义代理的行为。

  Thanks to Matthew Whitehead, Hursley UK for his assistance with this blog entry.

  感谢Hursley UK的Matthew Whitehead对此博客条目的帮助
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  文件传输