Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for efficiently updating server file based on ansible

A technology of server and file server, which is applied in the direction of file system, transmission system, file/folder operation, etc., to achieve the effects of improving update efficiency, saving packaging time, and high security

Active Publication Date: 2019-09-13
INSPUR SOFTWARE CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical task of the present invention is to provide a method and system for efficiently updating server files based on ansible to solve how to realize the scenario of updating a large number of files in batches on a large-scale server cluster, ensuring quality, reducing manual participation, and one-click Complete automatic identification of files that have been changed under a certain path within a certain period of time, and automatically send them to each target server, so that it can effectively avoid the problem of repeatedly overwriting old files that have not been changed, thereby improving the efficiency of server file updates

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for efficiently updating server file based on ansible

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] as attached figure 1 As shown, the method for efficiently updating server files based on ansible of the present invention is oriented to various static and dynamic files hosted by the server, records the directory structure of the location of the files, and filters the modification time as a condition, and filters out The files are placed in the specified location of the target server according to the directory structure, and the files modified in each path within the modification time range are automatically identified by one-click completion, and are automatically sent to each target server to improve the server file update efficiency; the specific steps are as follows:

[0040] S1. Filter all the files in the directory and subdirectories of each type of server based on the modification time, and update the files hosted by the same type of server in batches in an incremental manner;

[0041]S2. Upload the filtered files based on the modification time to the file serve...

Embodiment 2

[0054] Ansible-based server file efficient update system of the present invention, the system includes a file server, a server and several types of servers, the file server packs the modified files within the modification time range in the specified directory and each subdirectory in the server, The server uploads the packaged file to the file server; the file server uses the ansible tool to send the client service to each class server respectively, and the class server uses the ansible tool to call the client service on all servers under the specified category in batches to send to the file server Obtain the file zip package that needs to be updated.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a system for efficiently updating a server file based on an ansible, and belongs to the field of computer software deployment. The technical problem to be solved by the invention is how to realize to ensure quality and reduce manual participation on a large-scale server cluster under the scene of updating a large number of files in batches. According to the technical scheme, the method comprises: (1) orientating various static and dynamic files hosted by a server, recording a directory structure of the position of the file; performing screening by taking the modification time as a condition, placing the screened file at a designated position of a target server according to a directory structure, automatically identifying the modified file in each path within the modification time range by one key, and automatically sending the modified file to each target server, so that the file updating efficiency of the server is improved; and (2) the system comprises a file server, a server and a plurality of types of servers, wherein the file server packages the specified directory in the server and the modified files in the modification time ranges of thesubdirectories.

Description

technical field [0001] The invention relates to the field of computer software deployment, in particular to a method and system for efficiently updating server files based on ansible. Background technique [0002] As the current business scope of Aicheng.com APP has covered many cities across the country, in order to support a huge number of users and concurrency, and bring a relatively good user experience to users, a service distributed deployment solution is adopted, including some monitoring, etc. Components also adopt a cluster mode, and the scale of servers reaches hundreds. In this case, manual maintenance will inevitably cause a lot of waste of manpower, and compared with programs and instructions, manual operation has great instability and is very prone to mistakes, which will bring some unnecessary time waste. [0003] In the previous deployment and server maintenance process, it was found that with the accumulation of time, the functions became more and more per...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08H04L29/06G06F16/182G06F16/16
CPCG06F16/16G06F16/182H04L63/0428H04L67/02H04L67/06H04L67/10
Inventor 张庆鑫邵非潘冰阚宝丽孙贤雯
Owner INSPUR SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products