基于文件的复制File-based replication

适用范围: Configuration Manager (Current Branch)Applies to: Configuration Manager (current branch)

Configuration Manager 使用基于文件的复制在层次结构中的站点之间传输基于文件的数据。Configuration Manager uses file-based replication to transfer file-based data between sites in your hierarchy. 此数据包括要部署到子站点中的分发点的应用程序和包。This data includes applications and packages that you want to deploy to distribution points in child sites. 它还处理未处理的发现数据记录,站点将这些记录传输到其父站点然后进行处理。It also handles unprocessed discovery data records that the site transfers to its parent site and then processes.

站点之间基于文件的通信通过 TCP/IP 端口 445 使用服务器消息块 (SMB) 协议。File-based communication between sites uses the server message block (SMB) protocol on TCP/IP port 445. 要控制通过网络传输的站点的数据量,请指定带宽限制和脉冲模式。To control the amount of data the site transfers across the network, specify bandwidth throttling and pulse mode. 使用计划来控制何时通过网络发送数据。Use schedules to control when to send data across the network.

路由Routes

下列信息有助于你设置和使用文件复制路由。The following information can help you set up and use file replication routes.

文件复制路由File replication route

每个文件复制路由都确定站点将基于文件的数据传输到其中的目标站点。Each file replication route identifies a destination site to which a site transfers file-based data. 每个站点都支持到特定目标站点的单一文件复制路由。Each site supports one file replication route to a specific destination site.

若要管理文件复制路由,请转到“管理” 工作区。To manage a file replication route, go to the Administration workspace. 展开“层次结构配置” 节点,然后选择“文件复制” 。Expand the Hierarchy Configuration node, and then select File Replication.

可以为文件复制路由更改以下设置:You can change the following settings for file replication routes:

文件复制帐户File replication account

此帐户连接目标站点,并将数据写入该站点的 SMS_Site 共享。This account connects to the destination site, and writes data to that site's SMS_Site share. 接收站点处理写入到此共享的数据。The receiving site processes the data written to this share. 默认情况下,将站点添加到层次结构后,Configuration Manager 将新站点服务器的计算机帐户指定为该站点的文件复制帐户。By default, when you add a site to the hierarchy, Configuration Manager assigns the new site server's computer account as its file replication account. 然后,会将此帐户添加到目标站点的 SMS_SiteToSiteConnection_<sitecode> 组。It then adds this account to the destination site's SMS_SiteToSiteConnection_<sitecode> group. 这个组是计算机的本地组,用于授予对 SMS_Site 共享的访问权限。This group is local to the computer that grants access to the SMS_Site share. 你可以将此帐户更改为 Windows 用户帐户。You can change this account to be a Windows user account. 如果更改帐户,请确保将新帐户添加到目标站点的 SMS_SiteToSiteConnection_<sitecode> 组。If you change the account, make sure you add the new account to the destination site's SMS_SiteToSiteConnection_<sitecode> group.

备注

辅助站点始终使用辅助站点服务器的计算机帐户作为“文件复制帐户” 。Secondary sites always use the computer account of the secondary site server as the File Replication Account.

计划Schedule

设置每个文件复制路由的计划。Set the schedule for each file replication route. 此操作限制数据可以传输到目标站点时的数据类型和时间。This action restricts the type of data and time when data can transfer to the destination site.

速率限制Rate limits

指定每个文件复制路由的速率限制。Specify rate limits for each file replication route. 此操作控制站点将数据传输到目标站点时站点所使用的网络带宽:This action controls the network bandwidth the site uses when it transfers data to the destination site:

  • 脉冲模式:指定由站点发送到目标站点的数据块的大小。Pulse mode: Specify the size of the data blocks that the site sends to the destination site. 你也可以指定在两次发送各个数据块之间的时间延迟。You can also specify a time delay between sending each data block. 如果必须在连接目标站点的低带宽网络上发送数据,请使用此选项。Use this option when you must send data across a low-bandwidth network connection to the destination site.

    例如,你有每五秒发送 1 KB 数据(而不是每三秒发送 1 KB)的限制。For example, you have constraints to send 1 KB of data every five seconds, but not 1 KB every three seconds. 此限制不考虑某个给定时间的链接速度或其使用率。This constraint is regardless of the speed of the link or its usage at a given time.

  • 限制为按小时计算的最大传输速率:站点仅使用你指定的时间百分比将数据发送到目标站点。Limited to maximum transfer rates by hour: The site sends data to a destination site by using only the percentage of time that you specify. Configuration Manager 无法识别网络的可用带宽。Configuration Manager doesn't identify the network's available bandwidth. 它将可发送数据的时间划分为多个时间片段。It divides the time it can send data into slices of time. 然后,在一个短时间段内发送数据,之后的几个时间段则不发送数据。It then sends the data in a short block of time, which is followed by blocks of time when it doesn't send data.

    例如,将最大速率设置为 50% 。For example, you set the maximum rate to 50%. Configuration Manager 传输数据并持续一段时间后,在相同的时长内不发送任何数据。Configuration Manager transmits data for an amount of time followed by an equal period of time when it doesn't send any data. 它不会管理其发送的数据块的实际大小。It doesn't manage the actual size of the data block that it sends. 该站点只管理发送数据的时间量。The site only manages the amount of time during which it sends data.

    注意

    默认情况下,站点可使用最多三个“并发发送” 来将数据传输到目标站点。By default, a site can use up to three concurrent sendings to transfer data to a destination site. 如果为文件复制路由启用速率限制,则针对该站点的“并发发送” 数将限制为 1。When you enable rate limits for a file replication route, it limits the concurrent sendings to that site to one. 即使“限制可用带宽(%)” 设置为“100%” ,此行为也适用。This behavior applies even when the Limit available bandwidth (%) is set to 100%. 例如,如果为发送程序使用默认设置,则此设置会将传输到目标站点时的速率减少到默认能力的三分之一。For example, if you use the default settings for the sender, this reduces the transfer rate to the destination site to be one-third of the default capacity.

在辅助站点之间路由Routes between secondary sites

在两个辅助站点之间配置文件复制路由,以在这些站点之间路由基于文件的内容。Configure a file replication route between two secondary sites to route file-based content between those sites.

发送程序Sender

每个站点均具有一个发送程序。Each site has one sender. 发送程序管理从一个站点到目标站点的网络连接。The sender manages the network connection from one site to a destination site. 它可以同时建立与多个站点的连接。It can establish connections to multiple sites at the same time. 为连接到站点,发送程序使用指向站点的文件复制路由,并标识要用于建立网络连接的帐户。To connect to a site, the sender uses the file replication route to the site and identifies the account it uses to establish the network connection. 发送程序还使用此帐户将数据写入目标站点的 SMS_Site 共享。The sender also uses this account to write data to the destination site's SMS_Site share.

默认情况下,发送程序通过使用多个“并发发送” 或“线程” 将数据写到目标站点。By default, the sender writes data to a destination site by using multiple concurrent sendings, or a thread. 每个线程可以将基于文件的不同对象传输到目标站点。Each thread can transfer a different file-based object to the destination site. 发送程序开始发送对象时,它会持续写入该对象的数据块直到发送完整个对象。When the sender begins to send an object, it continues to write blocks of data for that object until it sends the entire object. 在发送完该对象的所有数据后,即可在该线程上开始发送新的对象。After it sends all the data for the object, a new object can begin to send on that thread.

若要管理站点的发送程序,请转到“管理”工作区,然后展开“站点配置”节点 。To manage the sender for a site, go to the Administration workspace, and expand the Site Configuration node. 选择“站点”节点,然后选择要管理的站点的“属性” 。Select the Sites node, and then select Properties for the site you want to manage. 切换到“发送程序” 选项卡以更改发送程序设置。Switch to the Sender tab to change the sender settings.

可以为发送程序更改下列设置:You can change the following settings for a sender:

最大并发发送数Maximum concurrent sendings

默认情况下,每个站点都使用五个并发发送(线程)。By default, each site uses five concurrent sendings (threads). 在向任何一个目标站点发送数据时,可以使用三个线程。Three threads are available for use when it sends data to any one destination site. 增加此数字后,可以提高站点之间的数据吞吐量。When you increase this number, you can increase the throughput of data between sites. 更多线程意味着 Configuration Manager 可以同时传输更多文件。More threads mean that Configuration Manager can transfer more files at the same time. 提高此数字还会提高对站点之间的网络带宽的要求。Increasing this number also increases the demand for network bandwidth between sites.

重试设置Retry settings

默认情况下,每个站点对问题连接重试两次,并在连接尝试之间延迟一分钟。By default, each site retries a problem connection two times, with a one-minute delay between connection attempts. 可以修改站点所做的连接尝试数和尝试之间的等待时长。You can modify the number of connection attempts the site makes, and how long to wait between attempts.

后续步骤Next steps

Database replicationDatabase replication