Movatterモバイル変換


[0]ホーム

URL:


CN111818145A - File transmission method, device, system, equipment and storage medium - Google Patents

File transmission method, device, system, equipment and storage medium
Download PDF

Info

Publication number
CN111818145A
CN111818145ACN202010611418.1ACN202010611418ACN111818145ACN 111818145 ACN111818145 ACN 111818145ACN 202010611418 ACN202010611418 ACN 202010611418ACN 111818145 ACN111818145 ACN 111818145A
Authority
CN
China
Prior art keywords
file
transmitted
target service
host
service task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010611418.1A
Other languages
Chinese (zh)
Other versions
CN111818145B (en
Inventor
宋大伟
熊浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SUZHOU QINYOU NETWORK TECHNOLOGY Co.,Ltd.
Original Assignee
Suzhjou Game Friend Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhjou Game Friend Network Technology Co ltdfiledCriticalSuzhjou Game Friend Network Technology Co ltd
Priority to CN202010611418.1ApriorityCriticalpatent/CN111818145B/en
Publication of CN111818145ApublicationCriticalpatent/CN111818145A/en
Application grantedgrantedCritical
Publication of CN111818145BpublicationCriticalpatent/CN111818145B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention discloses a file transmission method, a file transmission device, a file transmission system, file transmission equipment and a storage medium. The method comprises the following steps: acquiring a file to be transmitted corresponding to a target service task; acquiring a file transmission path list corresponding to the target service task; and transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list. The embodiment of the invention can transmit the file according to the target service task, and can transmit the file to be transmitted to the regional agent nodes corresponding to the target service task, so that at least one host corresponding to each regional agent node can acquire the file to be transmitted from the corresponding regional agent node according to the file transmission dimension of the file to be transmitted, thereby transmitting the file to be transmitted to each host, transmitting the file to be transmitted to the next-stage equipment managed by the host, and meeting the file transmission requirements of different dimensions.

Description

File transmission method, device, system, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a file transmission method, a device, a system, equipment and a storage medium.
Background
In order to meet different business requirements, it is usually necessary to update the designated files of some or all hosts in the system. In the prior art, scripts are generally written, and new files are transmitted to each host in a system through the scripts to update specified files.
The inventor finds out in the process of implementing the invention that the prior art is suitable for the condition that the number of hosts in the system is small. Under the condition that the number of the hosts is large, a written script is easy to make mistakes when issuing the file, the risk is high, and the accuracy and the transmission efficiency of file transmission are difficult to guarantee.
Disclosure of Invention
Embodiments of the present invention provide a file transmission method, apparatus, system, device, and storage medium, so as to optimize an existing file transmission manner and improve accuracy and transmission efficiency of file transmission.
In a first aspect, an embodiment of the present invention provides a file transmission method, including:
acquiring a file to be transmitted corresponding to a target service task;
acquiring a file transmission path list corresponding to a target service task;
and transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list.
In a second aspect, an embodiment of the present invention further provides a file transmission apparatus, including:
the file acquisition module is used for acquiring a file to be transmitted corresponding to the target service task;
the list acquisition module is used for acquiring a file transmission path list corresponding to the target service task;
and the file transmission module is used for transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list.
In a third aspect, an embodiment of the present invention further provides a file transfer system, including:
the system comprises a cloud platform, at least one regional agent node and at least one host;
the cloud platform is used for acquiring a file to be transmitted corresponding to the target service task; acquiring a file transmission path list corresponding to a target service task; transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list;
the system comprises at least one regional agent node corresponding to a target service task, a cloud platform and a server, wherein the regional agent node is used for receiving a file to be transmitted by the cloud platform and storing the file to be transmitted;
and the at least one host corresponding to each regional agent node is used for acquiring the file to be transmitted from the corresponding regional agent node according to the file transmission dimension of the file to be transmitted.
In a fourth aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the file transmission method according to the embodiment of the present invention.
In a fifth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the file transmission method according to the embodiment of the present invention.
The technical scheme of the embodiment of the invention comprises the steps of acquiring a file to be transmitted corresponding to a target service task and a file transmission path list corresponding to the target service task, transmitting the file to be transmitted to at least one regional proxy node corresponding to the target service task according to the file transmission path list, so that at least one host corresponding to each regional proxy node acquires the file to be transmitted from the corresponding regional proxy node according to the file transmission dimension of the file to be transmitted, can transmit the file according to the target service task, can transmit the file to be transmitted to the regional proxy node corresponding to the target service task, so that at least one host corresponding to each regional proxy node acquires the file to be transmitted from the corresponding regional proxy node according to the file transmission dimension of the file to be transmitted, and can transmit the file to be transmitted to each host, the file to be transmitted can also be transmitted to the next level of equipment managed by the host, so that the file transmission requirements of different dimensions are met.
Drawings
Fig. 1 is a flowchart of a file transmission method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a file transmission method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a file transmission method according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a file transfer device according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a file transfer system according to a fifth embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a file transmission method according to an embodiment of the present invention. The embodiment of the present invention is applicable to a case where a file is transferred to at least one host corresponding to a target business task according to business requirements, and the method may be performed by a file transfer apparatus provided in the embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated in a computer device. Such as a cloud platform. As shown in fig. 1, the method of the embodiment of the present invention specifically includes:
step 101, obtaining a file to be transmitted corresponding to a target service task.
Optionally, the target business task is a task that needs to be executed by the system and is generated according to the business requirement. For example, the target business task may be setting an environment for updating the specified host, or may be repairing a system bug of the specified host. The file to be transmitted is a file which needs to be transmitted to the corresponding host according to the requirement of the target service task.
Optionally, the file to be transmitted is an environment update file or a patch file.
In one embodiment, the target business task is to update the environment settings of multiple hosts. The file to be transmitted is an environment update file. According to the requirement of the target service task, the cloud platform needs to transmit the environment updating file to the corresponding multiple hosts and update the environment setting of each host.
In another embodiment, the target business task is to fix a system bug of multiple hosts. The file to be transmitted is a patch file. According to the requirement of the target service task, the cloud platform needs to transmit the patch file to the corresponding multiple hosts and patch system bugs of the hosts.
Optionally, the obtaining of the file to be transmitted corresponding to the target service task may include: and acquiring a file to be transmitted corresponding to the target service task and uploaded by the target user.
Specifically, the target user uploads the file to be transmitted corresponding to the target service task to the cloud platform. The cloud platform acquires a file to be transmitted, which is uploaded by a target user and corresponds to a target service task.
And 102, acquiring a file transmission path list corresponding to the target service task.
Optionally, the file transmission path list includes a host that needs to obtain a file to be transmitted according to a requirement of the target service task. According to the file transmission path list, a host computer needing to acquire the file to be transmitted can be determined.
Optionally, the obtaining of the file transmission path list corresponding to the target service task may include: and acquiring a file transmission path list which is uploaded by a target user and corresponds to the target service task.
Specifically, the target user uploads a file transmission path list corresponding to the target service task to the cloud platform.
Optionally, the obtaining of the file transmission path list corresponding to the target service task may include: and acquiring a file transmission path list corresponding to the target service task from a preset path list database. The preset path list database stores a file transmission path list corresponding to each service task.
And 103, transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list.
Optionally, all hosts in the system are divided into a plurality of host groups. At least two hosts are included in each host packet. Each host packet corresponds to a regional agent node. The regional proxy node is used for managing each host in the host group.
Optionally, transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list may include: determining at least one regional agent node corresponding to the target service task according to the file transmission path list; and transmitting the file to be transmitted to each regional agent node in a remote process calling mode.
Specifically, the cloud platform determines at least one host needing to acquire a file to be transmitted according to the file transmission path list, and then determines a regional agent node corresponding to the at least one host needing to acquire the file to be transmitted according to the corresponding relationship between the host and the regional agent node, namely determines at least one regional agent node corresponding to the target service task. The cloud platform transmits the file to be transmitted to each regional agent node in a Remote Procedure Call (RPC) mode. The file transmission process is encrypted transmission.
Optionally, the at least one host corresponding to each regional agent node is configured to obtain the file to be transmitted from the corresponding regional agent node according to the file transmission dimension of the file to be transmitted.
The file transfer dimension is the dimension of a file transfer. And presetting the file transmission dimension of the file to be transmitted. Optionally, the file transmission dimension of the file to be transmitted is determined according to the dimension setting information input by the target user. According to the file transmission dimension, whether the file to be transmitted is transmitted to the host or the host and the next-level equipment managed by the host can be determined. Therefore, the file transmission requirements of different dimensions can be met, and the file transmission requirements can be transmitted to each host and can also be transmitted to the next-level equipment managed by the host.
Optionally, the next-level device managed by the host is a game server. Illustratively, each host manages 4 or 5 game servers. The file transmission dimension of the file to be transmitted is a host dimension or a game server dimension. The file transmission dimension of the file to be transmitted is the host dimension, namely the file to be transmitted is transmitted to the host. The file transmission dimension of the file to be transmitted is the game server dimension, namely the file to be transmitted is transmitted to each game server managed by the host.
In one embodiment, the file transfer dimension of the file to be transferred is the host dimension. And at least one host corresponding to each regional agent node pulls the file to be transmitted to the file directory of each host from the corresponding regional agent node through a data mirror backup tool, and covers the file to be updated corresponding to the file to be transmitted.
Optionally, the file to be updated is an original file that needs to be updated according to the target task requirement. Illustratively, the target business task is to update the environment settings of multiple hosts. The file to be transmitted is an environment update file. The file to be updated is the original environment file in the file directory of the host. At least one host corresponding to each regional agent node pulls an environment update file from the corresponding regional agent node to a file directory of each host through a data mirror image backup tool (rsync), covers an original environment file corresponding to the environment update file, and updates environment settings of each host.
In another embodiment, the file transfer dimension of the file to be transferred is the game server dimension. At least one host corresponding to each regional agent node pulls a file to be transmitted from the corresponding regional agent node to a file directory of each host through a data mirror backup tool, covers the file to be updated corresponding to the file to be transmitted, copies the file to be transmitted to the file directory of at least one game server corresponding to each host, and covers the file to be updated corresponding to the file to be transmitted.
Illustratively, the target business task is to update the environment settings of multiple hosts. The file to be transmitted is an environment update file. The file to be updated is the original environment file in the file directory of the host. At least one host corresponding to each regional agent node pulls the environment update file from the corresponding regional agent node to the file directory of each host through a data mirror backup tool, covers the original environment file corresponding to the environment update file, copies the environment update file to the file directory of at least one game server corresponding to each host, covers the original environment file corresponding to the environment update file, and updates the environment settings of each host and the game server managed by each host.
Optionally, the method further includes: and if the file to be transmitted is determined to be an error file, rolling back the file to be transmitted corresponding to the target service task to the corresponding original file.
Optionally, the cloud platform may determine that the file to be transmitted is an error file according to error reporting information fed back by the host for the file to be transmitted. And if the cloud platform determines that the file to be transmitted is an error file, rolling back the file to be transmitted corresponding to the target service task to the corresponding original file.
Optionally, the original file corresponding to the file to be transmitted may be a file covered by the file to be transmitted. The file to be transmitted corresponding to the target service task is rolled back to the corresponding original file, so that the file in the host can be restored to the state before the file to be transmitted is transmitted.
The embodiment of the invention provides a file transmission method, which comprises the steps of obtaining a file to be transmitted corresponding to a target service task and a file transmission path list corresponding to the target service task, transmitting the file to be transmitted to at least one regional proxy node corresponding to the target service task according to the file transmission path list, so that at least one host corresponding to each regional proxy node obtains the file to be transmitted from the corresponding regional proxy node according to the file transmission dimension of the file to be transmitted, transmitting the file according to the target service task, transmitting the file to be transmitted to the regional proxy node corresponding to the target service task, so that at least one host corresponding to each regional proxy node obtains the file to be transmitted from the corresponding regional proxy node according to the file transmission dimension of the file to be transmitted, and transmitting the file to each host, the file to be transmitted can also be transmitted to the next level of equipment managed by the host, so that the file transmission requirements of different dimensions are met.
Example two
Fig. 2 is a flowchart of a file transmission method according to a second embodiment of the present invention. The embodiment of the present invention may be combined with each optional solution in one or more embodiments, and in the embodiment of the present invention, acquiring a file to be transmitted corresponding to a target service task may include: and acquiring a file to be transmitted corresponding to the target service task and uploaded by the target user.
And transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list, which may include: determining at least one regional agent node corresponding to the target service task according to the file transmission path list; and transmitting the file to be transmitted to each regional agent node in a remote process calling mode.
As shown in fig. 2, the method of the embodiment of the present invention specifically includes:
step 201, obtaining a file to be transmitted corresponding to a target service task and uploaded by a target user.
And the target user uploads the file to be transmitted corresponding to the target service task to the cloud platform. The cloud platform acquires a file to be transmitted corresponding to the target business task and uploaded by the target user, and determines the file transmission dimension of the file to be transmitted according to dimension setting information input by the target user.
And (4) optional. The file transmission dimension of the file to be transmitted is a host dimension or a game server dimension. The file transmission dimension of the file to be transmitted is the host dimension, namely the file to be transmitted is transmitted to the host. The file transmission dimension of the file to be transmitted is the game server dimension, namely the file to be transmitted is transmitted to each game server managed by the host.
Step 202, a file transmission path list corresponding to the target service task is obtained.
Optionally, the target user uploads the file transmission path list corresponding to the target service task to the cloud platform. The cloud platform acquires a file transmission path list which is uploaded by a target user and corresponds to the target service task.
Step 203, determining at least one regional agent node corresponding to the target service task according to the file transmission path list.
Optionally, the cloud platform determines at least one host that needs to acquire the file to be transmitted according to the file transmission path list, and then determines a regional agent node corresponding to the at least one host that needs to acquire the file to be transmitted according to a correspondence between the host and the regional agent node, that is, determines at least one regional agent node corresponding to the target service task.
And step 204, transmitting the file to be transmitted to each regional agent node in a remote process calling mode.
Optionally, the cloud platform transmits the file to be transmitted to each regional agent node in an RPC manner. The file transmission process is encrypted transmission.
The embodiment of the invention provides a file transmission method, which comprises the steps of obtaining a file to be transmitted, corresponding to a target service task, uploaded by a target user, determining at least one regional proxy node corresponding to the target service task according to a file transmission path list, transmitting the file to be transmitted to each regional proxy node in a remote procedure call mode, obtaining the file to be transmitted, uploaded by the user, and transmitting the file to be transmitted to the regional proxy node corresponding to the target service task in an RPC mode.
EXAMPLE III
Fig. 3 is a flowchart of a file transmission method according to a third embodiment of the present invention. The embodiment of the present invention may be combined with each optional solution in one or more of the above embodiments, and in the embodiment of the present invention, the file transmission method may further include: and if the file to be transmitted is determined to be an error file, rolling back the file to be transmitted corresponding to the target service task to the corresponding original file.
As shown in fig. 3, the method of the embodiment of the present invention specifically includes:
step 301, obtaining a file to be transmitted corresponding to the target service task.
Step 302, a file transmission path list corresponding to the target service task is obtained.
And 303, transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list.
And step 304, if the file to be transmitted is determined to be an error file, rolling back the file to be transmitted corresponding to the target service task to the corresponding original file.
Optionally, the cloud platform may determine that the file to be transmitted is an error file according to error reporting information fed back by the host for the file to be transmitted. And if the cloud platform determines that the file to be transmitted is an error file, rolling back the file to be transmitted corresponding to the target service task to the corresponding original file.
Optionally, the original file corresponding to the file to be transmitted may be a file covered by the file to be transmitted. The file to be transmitted corresponding to the target service task is rolled back to the corresponding original file, so that the file in the host can be restored to the state before the file to be transmitted is transmitted.
The embodiment of the invention provides a file transmission method, which is characterized in that a file to be transmitted is determined to be an error file, the file to be transmitted corresponding to a target business task is rolled back to a corresponding original file, and when the file to be transmitted is detected to be the error file, the file can be automatically restored to the file to be transmitted before being transmitted, so that the stability of a system is improved.
Example four
Fig. 4 is a schematic structural diagram of a file transfer device according to a fourth embodiment of the present invention, and as shown in fig. 4, the file transfer device includes: afile acquisition module 401, alist acquisition module 402, and afile transfer module 403.
Thefile acquiring module 401 is configured to acquire a file to be transmitted corresponding to a target service task; alist obtaining module 402, configured to obtain a file transmission path list corresponding to the target service task; thefile transmission module 403 is configured to transmit a file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list.
The embodiment of the invention provides a file transmission device, which obtains a file to be transmitted corresponding to a target service task and a file transmission path list corresponding to the target service task, then transmits the file to be transmitted to at least one regional proxy node corresponding to the target service task according to the file transmission path list, so that at least one host corresponding to each regional proxy node obtains the file to be transmitted from the corresponding regional proxy node according to the file transmission dimension of the file to be transmitted, can transmit the file according to the target service task, can transmit the file to be transmitted to the regional proxy node corresponding to the target service task, so that at least one host corresponding to each regional proxy node obtains the file to be transmitted from the corresponding regional proxy node according to the file transmission dimension of the file to be transmitted, and thus can transmit the file to be transmitted to each host, the file to be transmitted can also be transmitted to the next level of equipment managed by the host, so that the file transmission requirements of different dimensions are met.
On the basis of the foregoing embodiments, thefile obtaining module 401 may include: and the file acquisition unit is used for acquiring the file to be transmitted corresponding to the target service task and uploaded by the target user.
On the basis of the foregoing embodiments, thefile transmission module 403 may include: the node determining unit is used for determining at least one regional agent node corresponding to the target service task according to the file transmission path list; and the file transmission unit is used for transmitting the file to be transmitted to each regional proxy node in a remote procedure call mode.
On the basis of the above embodiments, the file to be transmitted may be an environment update file or a patch file.
On the basis of the foregoing embodiments, the file transfer apparatus may further include: and the file rollback module is used for rolling back the file to be transmitted corresponding to the target service task to the corresponding original file if the file to be transmitted is determined to be the error file.
The file transmission device can execute the file transmission method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the file transmission method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a file transfer system according to a fifth embodiment of the present invention. As shown in fig. 5, the system specifically includes: acloud platform 501, at least oneregional agent node 502, and at least onehost 503.
Thecloud platform 501 is configured to acquire a file to be transmitted corresponding to a target service task; acquiring a file transmission path list corresponding to a target service task; and transmitting the file to be transmitted to at least oneregional agent node 502 corresponding to the target service task according to the file transmission path list.
And the at least oneregional agent node 502 corresponding to the target service task is configured to receive the file to be transmitted, which is transmitted by thecloud platform 501, and store the file to be transmitted.
At least onehost 503 corresponding to eachregional agent node 502 is configured to obtain a file to be transmitted from the correspondingregional agent node 502 according to a file transmission dimension of the file to be transmitted.
Specifically, thecloud platform 501 obtains a file to be transmitted corresponding to the target service task, obtains a file transmission path list corresponding to the target service task, and then transmits the file to be transmitted to at least oneregional agent node 502 corresponding to the target service task according to the file transmission path list. At least oneregional agent node 502 corresponding to the target service task receives the file to be transmitted by thecloud platform 501, and stores the file to be transmitted. At least onehost 503 corresponding to eachregional agent node 502 acquires a file to be transmitted from the correspondingregional agent node 502 according to the file transmission dimension of the file to be transmitted.
Optionally, the target business task is a task that needs to be executed by the system and is generated according to the business requirement. For example, the target business task may be setting an environment for updating the specified host, or may be repairing a system bug of the specified host. The file to be transmitted is a file which needs to be transmitted to the corresponding host according to the requirement of the target service task.
Optionally, the file to be transmitted is an environment update file or a patch file.
Optionally, the target user uploads the file to be transmitted corresponding to the target service task to thecloud platform 501. Thecloud platform 501 obtains a file to be transmitted corresponding to the target service task, which is uploaded by the target user, and determines a file transmission dimension of the file to be transmitted according to dimension setting information input by the target user.
The file transfer dimension is the dimension of a file transfer. And presetting the file transmission dimension of the file to be transmitted. Optionally, the file transmission dimension of the file to be transmitted is determined according to the dimension setting information input by the target user. According to the file transmission dimension, whether the file to be transmitted is transmitted to the host or the host and the next-level equipment managed by the host can be determined. Therefore, the file transmission requirements of different dimensions can be met, and the file transmission requirements can be transmitted to each host and can also be transmitted to the next-level equipment managed by the host.
Optionally, the next-level device managed by the host is a game server. Illustratively, each host manages 4 or 5 game servers. The file transmission dimension of the file to be transmitted is a host dimension or a game server dimension. The file transmission dimension of the file to be transmitted is the host dimension, namely the file to be transmitted is transmitted to the host. The file transmission dimension of the file to be transmitted is the game server dimension, namely the file to be transmitted is transmitted to each game server managed by the host.
Optionally, thecloud platform 501 determines at least oneregional agent node 502 corresponding to the target service task according to the file transmission path list; the file to be transmitted is transmitted to eachregional agent node 502 by a remote procedure call.
Specifically, thecloud platform 501 determines at least onehost 503 that needs to acquire a file to be transmitted according to the file transmission path list, and then determines aregional agent node 502 corresponding to the at least onehost 503 that needs to acquire the file to be transmitted according to a correspondence between the host and the regional agent node, that is, determines at least oneregional agent node 502 corresponding to the target service task. Thecloud platform 501 transmits the file to be transmitted to eachregional agent node 502 in an RPC manner. The file transmission process is encrypted transmission.
Optionally, thecloud platform 501 is further configured to roll back the file to be transmitted corresponding to the target service task to the corresponding original file if it is determined that the file to be transmitted is an error file.
Optionally, thecloud platform 501 may determine, according to the error reporting information fed back by thehost 503 for the file to be transmitted, that the file to be transmitted is an error file. If thecloud platform 501 determines that the file to be transmitted is an error file, the file to be transmitted corresponding to the target service task is rolled back to the corresponding original file.
Optionally, the original file corresponding to the file to be transmitted may be a file covered by the file to be transmitted. The file to be transmitted corresponding to the target service task is rolled back to the corresponding original file, so that the file in the host can be restored to the state before the file to be transmitted is transmitted.
Optionally, a file transmission dimension of the file to be transmitted is a host dimension; at least onehost 503 corresponding to eachregional agent node 502 pulls the file to be transmitted from the correspondingregional agent node 502 to the file directory of eachhost 503 through a data mirror backup tool, and covers the file to be updated corresponding to the file to be transmitted.
Illustratively, the target business task is to update the environment settings of multiple hosts. The file to be transmitted is an environment update file. The file to be updated is the original environment file in the file directory of the host. At least onehost 503 corresponding to eachregional agent node 502 pulls the environment update file from the corresponding regional agent node to the file directory of each host through a data mirror backup tool (rsync), overwrites the original environment file corresponding to the environment update file, and updates the environment settings of each host.
Optionally, the file transmission dimension of the file to be transmitted is a game server dimension; at least onehost 503 corresponding to eachregional agent node 502 pulls a file to be transmitted from the correspondingregional agent node 502 to a file directory of each host through a data mirror backup tool, covers the file to be updated corresponding to the file to be transmitted, copies the file to be transmitted to the file directory of at least one game server corresponding to eachhost 503, and covers the file to be updated corresponding to the file to be transmitted.
Illustratively, the target business task is to update the environment settings of multiple hosts. The file to be transmitted is an environment update file. The file to be updated is the original environment file in the file directory of the host. At least onehost 503 corresponding to eachregional agent node 502 pulls the environment update file from the correspondingregional agent node 502 to the file directory of each host through the data mirror backup tool, overwrites the original environment file corresponding to the environment update file, copies the environment update file to the file directory of at least one game server corresponding to eachhost 503, overwrites the original environment file corresponding to the environment update file, and updates the environment settings of eachhost 503 and the game servers managed by eachhost 503.
The embodiment of the invention provides a file transmission system, which comprises a cloud platform, a file transmission path list and at least one regional agent node, wherein the file transmission path list is used for acquiring a file to be transmitted corresponding to a target service task; at least one regional agent node corresponding to the target service task receives a file to be transmitted by the cloud platform and stores the file to be transmitted; at least one host corresponding to each regional agent node acquires a file to be transmitted from the corresponding regional agent node according to the file transmission dimension of the file to be transmitted, the file can be transmitted according to a target service task, and the file to be transmitted can be transmitted to the regional agent node corresponding to the target service task, so that the file to be transmitted can be acquired from the corresponding regional agent node by the at least one host corresponding to each regional agent node according to the file transmission dimension of the file to be transmitted, and therefore the file to be transmitted can be transmitted to each host, the file to be transmitted can also be transmitted to next-level equipment managed by the host, and file transmission requirements of different dimensions are met.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 6 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 6, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one ormore processors 16, amemory 28, and a bus 18 that connects the various system components (including thememory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Thememory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/orcache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only,storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces.Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) ofprogram modules 42 may be stored, for example, inmemory 28,such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment.Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O)interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) vianetwork adapter 20. As shown,network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Theprocessor 16 executes various functional applications and data processing by running the program stored in thememory 28, thereby implementing the file transfer method provided by the embodiment of the present invention: acquiring a file to be transmitted corresponding to a target service task; acquiring a file transmission path list corresponding to a target service task; and transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list.
EXAMPLE seven
The seventh embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where when the computer program is executed by a processor, the file transmission method provided by the embodiment of the present invention is implemented: acquiring a file to be transmitted corresponding to a target service task; acquiring a file transmission path list corresponding to a target service task; and transmitting the file to be transmitted to at least one regional agent node corresponding to the target service task according to the file transmission path list.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or computer device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

CN202010611418.1A2020-06-292020-06-29File transmission method, device, system, equipment and storage mediumActiveCN111818145B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010611418.1ACN111818145B (en)2020-06-292020-06-29File transmission method, device, system, equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010611418.1ACN111818145B (en)2020-06-292020-06-29File transmission method, device, system, equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN111818145Atrue CN111818145A (en)2020-10-23
CN111818145B CN111818145B (en)2021-03-23

Family

ID=72856298

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010611418.1AActiveCN111818145B (en)2020-06-292020-06-29File transmission method, device, system, equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN111818145B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113596148A (en)*2021-07-272021-11-02上海商汤科技开发有限公司Data transmission method, system, device, computing equipment and storage medium
CN116192535A (en)*2023-04-252023-05-30航天宏图信息技术股份有限公司Cross-grade and cross-network-domain data transmission method and device
CN116319762A (en)*2023-05-182023-06-23华夏卓越(天津)科技有限公司File batch copying method and device in local area network, electronic equipment and storage medium
CN119583530A (en)*2024-10-292025-03-07招商银行股份有限公司 File transmission method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108234309A (en)*2017-12-272018-06-29宁波菊风系统软件有限公司A kind of transmission method of network data

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9497290B2 (en)*2010-06-142016-11-15Blackberry LimitedMedia presentation description delta file for HTTP streaming
CN101997924A (en)*2010-11-222011-03-30杨文军Cloud storage file transfer protocol (CFTP)
CN104092719B (en)*2013-12-172015-10-07深圳市腾讯计算机系统有限公司Document transmission method, device and distributed cluster file system
CN105162878B (en)*2015-09-242018-08-31网宿科技股份有限公司Document distribution system based on distributed storage and method
EP3402299B1 (en)*2016-01-072021-10-13LG Electronics Inc.User device and data transmission method therefor, and network node and data transmission method therefor
CN105847140A (en)*2016-05-202016-08-10乐视控股(北京)有限公司File distribution task generation method and system
CN107425942B (en)*2017-07-272020-12-22广州视源电子科技股份有限公司 Method and device for data transmission, forwarding and transmission
CN108600165A (en)*2018-03-152018-09-28北京大米科技有限公司Communication means, client, Centroid based on TCP and communication system
CN110099104B (en)*2019-04-122021-04-27平安科技(深圳)有限公司File transmission method, system and storage medium
CN111049907A (en)*2019-12-122020-04-21杭州安恒信息技术股份有限公司File transmission method, device, system, equipment and readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108234309A (en)*2017-12-272018-06-29宁波菊风系统软件有限公司A kind of transmission method of network data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113596148A (en)*2021-07-272021-11-02上海商汤科技开发有限公司Data transmission method, system, device, computing equipment and storage medium
CN116192535A (en)*2023-04-252023-05-30航天宏图信息技术股份有限公司Cross-grade and cross-network-domain data transmission method and device
CN116192535B (en)*2023-04-252023-08-08航天宏图信息技术股份有限公司Cross-grade and cross-network-domain data transmission method and device
CN116319762A (en)*2023-05-182023-06-23华夏卓越(天津)科技有限公司File batch copying method and device in local area network, electronic equipment and storage medium
CN116319762B (en)*2023-05-182023-08-04华夏卓越(天津)科技有限公司File batch copying method and device in local area network, electronic equipment and storage medium
CN119583530A (en)*2024-10-292025-03-07招商银行股份有限公司 File transmission method, device, equipment and storage medium

Also Published As

Publication numberPublication date
CN111818145B (en)2021-03-23

Similar Documents

PublicationPublication DateTitle
CN111818145B (en)File transmission method, device, system, equipment and storage medium
CN111078147B (en)Processing method, device and equipment for cache data and storage medium
CN110515647B (en)Static resource management method, device, equipment and storage medium
JP2020091835A (en)Method and device for processing information
CN112367370A (en)Management method, device, equipment and medium for hybrid cloud resource data
CN111796978B (en)Interface detection method, device, system, equipment and storage medium
CN109597640B (en)Account management method, device, equipment and medium for application program
CN114077518B (en)Data snapshot method, device, equipment and storage medium
CN110990346A (en)File data processing method, device, equipment and storage medium based on block chain
CN110929128A (en)Data crawling method, device, equipment and medium
CN111291330A (en)SVN authority management method, SVN authority management device, computer equipment and storage medium
US9146816B2 (en)Managing system image backup
CN107817962B (en)Remote control method, device, control server and storage medium
CN110555150A (en)Data monitoring method, device, equipment and storage medium
CN113434324A (en)Abnormal information acquisition method, system, device and storage medium
CN110677307B (en)Service monitoring method, device, equipment and storage medium
CN112328272B (en)Algorithm upgrading method, device, equipment and storage medium
CN113312209B (en)Data hot standby method, device, server and storage medium
CN110825802A (en)Multi-type database data backup method, device, equipment and storage medium
CN112364268A (en)Resource acquisition method and device, electronic equipment and storage medium
CN110958243A (en)Network vulnerability submitting method and device, storage medium and electronic equipment
CN113220237B (en)Distributed storage method, device, equipment and storage medium
CN111262727B (en)Service capacity expansion method, device, equipment and storage medium
CN109189332A (en)A kind of disk hanging method, device, server and storage medium
US9733871B1 (en)Sharing virtual tape volumes between separate virtual tape libraries

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right

Effective date of registration:20211015

Address after:215000 12F, friendship time building, No. 68, Qitai Road, Suzhou Industrial Park, Suzhou area, China (Jiangsu) pilot Free Trade Zone, Suzhou, Jiangsu

Patentee after:SUZHOU QINYOU NETWORK TECHNOLOGY Co.,Ltd.

Address before:215006 building 22, Suhua science and Technology Park, 208 Tongyuan Road, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Patentee before:SUZHJOU GAME FRIEND NETWORK TECHNOLOGY Co.,Ltd.

TR01Transfer of patent right

[8]ページ先頭

©2009-2025 Movatter.jp