CN109412873B - Configuration updating method and device, terminal equipment and computer storage medium - Google Patents

Configuration updating method and device, terminal equipment and computer storage medium Download PDF

Info

Publication number
CN109412873B
CN109412873B CN201811561475.2A CN201811561475A CN109412873B CN 109412873 B CN109412873 B CN 109412873B CN 201811561475 A CN201811561475 A CN 201811561475A CN 109412873 B CN109412873 B CN 109412873B
Authority
CN
China
Prior art keywords
update
configuration
file
server
updating
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.)
Active
Application number
CN201811561475.2A
Other languages
Chinese (zh)
Other versions
CN109412873A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu 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 China Mobile Communications Group Co Ltd, China Mobile Group Jiangsu Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811561475.2A priority Critical patent/CN109412873B/en
Publication of CN109412873A publication Critical patent/CN109412873A/en
Application granted granted Critical
Publication of CN109412873B publication Critical patent/CN109412873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A configuration updating method and device, terminal equipment and computer storage medium are disclosed, the configuration updating method is used for configuration updating of nodes in a cloud environment, and the configuration updating method comprises the following steps: receiving configuration update information; judging whether to update according to the configuration updating information, if so, sending an updating request, and if not, shelving the updating; obtaining a corresponding update file according to the update request; and completing the update through the update file, wherein the obtaining the corresponding update file comprises obtaining the corresponding update file from a server or through P2P sharing. According to the configuration updating method and device, the terminal equipment and the computer storage medium provided by the invention, the time for completing configuration updating of all nodes can be shortened.

Description

Configuration updating method and device, terminal equipment and computer storage medium
Technical Field
The present invention relates to the field of configuration update, and in particular, to a configuration update method and apparatus, a terminal device, and a computer storage medium.
Background
Currently, a telephone company or a telecommunication operator performs corresponding business operations on users through a business support system, and client nodes configured with the business support system are arranged in a distributed architecture in a cloud environment.
In the existing mode, a lot of inconvenience is generated when the configuration file needs to be updated. Due to the characteristics of the distributed architecture, data files among the nodes are shared mutually, information exchange exists among the nodes, when files are updated, the nodes need to be updated correspondingly, and the nodes are affected by one-time configuration file updating. The release of the update file is at the central server of the software supply, which is equivalent to the fact that the updates of all nodes are managed by the central server, which undoubtedly consumes a great deal of time for updating the nodes, and obviously cannot meet the requirement for a system needing to be operated effectively in a short time.
Disclosure of Invention
In view of this, the present invention provides a configuration update method and apparatus, a terminal device, and a computer storage medium, which shorten the time for completing configuration update for all nodes.
In a first aspect, an embodiment of the present invention provides a configuration update method, which is used for updating a configuration of a node in a cloud environment, where the configuration update method includes: receiving configuration update information; judging whether to update according to the configuration updating information, if so, sending an updating request, and if not, shelving the updating; obtaining a corresponding update file according to the update request; and completing the update through the update file, wherein the obtaining the corresponding update file comprises obtaining the corresponding update file from a server or through P2P sharing.
According to an aspect of an embodiment of the present invention, the obtaining, from a server or through P2P sharing, the corresponding update file includes: and judging whether the server can be connected or not, if the server can be connected, obtaining the corresponding update file from the server, and if the server cannot be connected, obtaining the corresponding update file through P2P sharing.
According to an aspect of an embodiment of the present invention, the obtaining of the corresponding update file through P2P sharing includes: searching for nearby updated nodes; determining whether connection to the updated node is possible, downloading the update file from the updated node if connection to the updated node is possible, and repeating the step of finding an updated node in the vicinity and the step of determining whether connection to the updated node is possible until connection to the updated node is possible if connection to the updated node is not possible.
According to an aspect of the embodiment of the present invention, the obtaining the corresponding update file from the server includes: obtaining address information corresponding to the update file from a server; and searching a downloading source according to the address information and downloading to obtain the updated file.
According to an aspect of an embodiment of the present invention, the receiving the configuration update information includes receiving the configuration update information from a server or through P2P sharing.
According to an aspect of the embodiment of the present invention, the configuration updating method further includes: and detecting the occupancy rates of the disk and the network bandwidth, and limiting the speed of obtaining the updated file when the occupancy rate of the disk exceeds a first preset value and/or the occupancy rate of the network bandwidth exceeds a second preset value.
According to an aspect of the embodiment of the present invention, after the update is completed, the configuration update method further includes: the update file is shared out through P2P.
In a second aspect, an embodiment of the present invention provides a configuration updating apparatus, which includes: the communication module is used for establishing connection with the outside to receive configuration updating information; the information processing module is connected with the communication module and used for judging whether the configuration updating information is updated or not, if the configuration updating information is confirmed, an updating request is sent, and if the configuration updating information is not confirmed, the updating is suspended; a file transfer module connected with the communication module, the file transfer module being configured to establish a connection with a server and/or another configuration update apparatus to obtain the corresponding update file from the server or sharing through P2P according to the update request and to share the update file outwards through P2P; and the updating processing module is used for finishing updating through the updating file.
According to an aspect of the embodiment of the present invention, the communication module is configured to establish a connection with the server and/or another configuration updating apparatus to obtain the configuration updating information from the server or through P2P sharing.
According to an aspect of the embodiment of the present invention, the configuration updating apparatus further includes: and the network judgment module is connected with the file transmission module and used for judging whether the file transmission module can be connected to a server or not through analysis, if so, the file transmission module is connected with the server, and if not, the file transmission module is connected with another configuration updating device.
According to an aspect of the embodiment of the present invention, the configuration updating apparatus further includes: and the detection module is connected with the file transmission module and is used for detecting the occupancy rates of the disk and the network bandwidth, and when the occupancy rate of the disk exceeds a first preset value and/or the occupancy rate of the network bandwidth exceeds a second preset value, the detection module limits the file transmission module to obtain the speed of the updated file.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor and a memory storing computer program instructions, where the processor implements the configuration updating method of any one of the foregoing methods when executing the computer program instructions.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium having computer program instructions stored thereon, which when executed by a processor implement the configuration update method of any one of the preceding claims.
According to the configuration updating method, the configuration updating device, the terminal equipment and the computer storage medium, when the configuration is updated, the client node firstly judges whether the configuration is updated according to the configuration updating information, and the data volume of the configuration updating information is small relative to the updating file, so that the problem of system congestion and disorder caused by simultaneous updating of massive client nodes is avoided. The client node can obtain the corresponding update file from the server or through P2P sharing, that is, when the client node needs to update, it can select other nodes as servers to obtain the update file, and a part of nodes in the system can directly obtain the update file from the servers, and then share the update file to other nodes until all nodes finish updating, so as to shorten the time for all nodes to finish configuration updating.
In some alternative embodiments, the receiving the configuration update information may be receiving the configuration update information from a server or through P2P sharing, and some nodes of the system may receive the configuration update information directly from the server and then share the configuration update information to other nodes, so that the system can make all nodes obtain the configuration update information in a shorter time. When updating, each node can be used as a 'consumer' for acquiring information and files, or a 'supplier' for providing information and files, and under the mechanism, the condition that each node waits in a queue or competes for resources mutually is effectively avoided, so that the updating time is greatly reduced.
Drawings
Other features, objects and advantages of the invention will become apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings in which like or similar reference characters refer to the same or similar parts.
FIG. 1 shows a flow diagram of a configuration update method according to an embodiment of the invention;
FIG. 2 is a flowchart illustrating obtaining a corresponding update file in a configuration update method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating obtaining a corresponding update file from a server in a configuration update method according to an embodiment of the present invention;
fig. 4 illustrates a flowchart of obtaining a corresponding update file through P2P sharing in a configuration update method according to an embodiment of the present invention;
FIG. 5 shows a block diagram of a configuration update apparatus according to an embodiment of the invention;
FIG. 6 is a schematic diagram showing the structure of a network system including a configuration update apparatus according to an embodiment of the present invention;
fig. 7 shows a hardware configuration diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention. The present invention is in no way limited to any specific configuration and algorithm set forth below, but rather covers any modification, replacement or improvement of elements, components or algorithms without departing from the spirit of the invention. In the drawings and the following description, well-known structures and techniques are not shown in order to avoid unnecessarily obscuring the present invention.
The embodiment of the invention provides a configuration updating method, which can be configuration updating of nodes in a cloud environment, and the nodes can be client nodes configured with a service support system, wherein the service support system comprises a CRM system, a BOSS system, a BAS system, a BOMC system and the like. In the embodiment of the present invention, a peer-to-peer (P2P) connection system may be formed between nodes, and the connection system is connected to a server.
Fig. 1 shows a flowchart of a configuration update method according to an embodiment of the present invention, which includes steps S100 to S600.
In step S100, configuration update information is received.
In some embodiments, receiving the configuration update information includes receiving the configuration update information from a server or through P2P sharing.
In step S200, whether the updating is carried out or not is judged according to the configuration updating information, if the updating is confirmed, an updating request is sent, and if not, the updating is suspended.
In step S300, a corresponding update file is obtained according to the update request.
In this embodiment, obtaining the corresponding update file includes obtaining the corresponding update file from a server or through P2P sharing.
Fig. 2 shows a flowchart of obtaining a corresponding update file in the configuration update method according to an embodiment of the present invention, and in particular, obtaining a corresponding update file from a server or through P2P sharing in step S300 includes steps S310 to S330.
In step S310, it is determined whether or not a connection to the server is possible. If the server can be connected, the step S320 is performed to obtain the corresponding update file from the server; if the connection to the server is not possible, step S330 is performed, and the corresponding update file is obtained through P2P sharing.
Fig. 3 shows a flowchart of obtaining a corresponding update file from a server in a configuration update method according to an embodiment of the present invention, where step S320 includes step S321 and step S322 again in this embodiment.
In step S321, address information corresponding to the update file is obtained from the server.
In step S322, a download source is found according to the address information and the updated file is downloaded.
Fig. 4 shows a flowchart of obtaining a corresponding update file through P2P sharing in the configuration update method according to an embodiment of the present invention, where step S330 includes step S331 to step S333.
In step S331, a nearby updated node is found.
In step S332, it is determined whether or not the updated node can be connected.
If connection to the updated node is possible, step S333 is performed to download the update file from the updated node. If the connection to the updated node is not possible, the process returns to step S331, and the step S331 of searching for a nearby updated node and the step S332 of determining whether the connection to the updated node is possible are repeated until the connection to the updated node is possible.
After obtaining the corresponding update file, step S400 may be performed, that is, the update is completed through the update file.
According to the configuration updating method provided by the embodiment of the invention, when the configuration is updated, the client node firstly judges whether the configuration is updated according to the configuration updating information, and the data volume of the configuration updating information is small relative to the updating file, so that the problem of congestion and disorder of a system caused by simultaneous updating of massive client nodes is avoided.
The client node can obtain the corresponding update file from the server or through P2P sharing, that is, when the client node needs to update, it can select other nodes as servers to obtain the update file, and a part of nodes in the system can directly obtain the update file from the servers, and then share the update file to other nodes until all nodes finish updating, so as to shorten the time for all nodes to finish configuration updating.
In addition, in this embodiment, the configuration update information may be received from the server or shared through P2P, and a part of the nodes of the system may directly receive the configuration update information from the server and then share the configuration update information to other nodes, so that the system can make all the nodes obtain the configuration update information in a shorter time. When updating, each node can be used as a 'consumer' for acquiring information and files, or a 'supplier' for providing information and files, and under the mechanism, the condition that each node waits in a queue or competes for resources mutually is effectively avoided, so that the updating time is greatly reduced.
The configuration updating method of the embodiment of the invention further comprises a step S500. In step S500, occupancy rates of the disk and the network bandwidth are detected, and when the occupancy rate of the disk exceeds a first preset value and/or the occupancy rate of the network bandwidth exceeds a second preset value, the speed of obtaining the updated file is limited.
In some cases (for example, when the client uses the terminal device with high intensity, which results in full disk or network bandwidth after the update process is started), the disk space or network bandwidth required by other service processes cannot meet the requirement, and at this time, normal operation of other system services is likely to be affected.
In the step S500, an availability guarantee algorithm of a disk and a network may be added in the client system, and the intelligent read-write availability guarantee algorithm aims to reduce the risk of the service system being affected.
In some embodiments, the algorithm is improved based on the SCAN and FCFS algorithms and the Hyperic tools: when the use of the disk has surplus, the requests of each process can be sequentially processed according to the FCFS algorithm, and the condition that some processes cannot be processed for a long time can be avoided; when the disk is fully loaded, the SCAN algorithm divides the disk request queue into a plurality of sub-queues with the length of N, then the sub-queues are processed according to the FCFS algorithm, and finally the disk processes each request according to the SCAN algorithm. Meanwhile, the Hyperic monitors the current network bandwidth in real time, and when the bandwidth is blocked, the updating process correspondingly reduces the bandwidth usage so as to ensure the bandwidth requirements of other service processes.
For example: suppose a process requests the sequence: x1, X2, X3, … … Xn, starting at X0, then the total number of tracks moved X is: (X1-X0) + (X2-X1) + (X3-X2) + … … + ((Xn-Xn-1), time to disk seek Ts = m N + s, where m is a constant of the disk drive and s is the time the magnetic arm is activated.
Under the condition that both the disk and the network can meet the use requirements of various service processes, the algorithm is sequentially and normally processed. Once the condition of insufficient disk and network occurs, the algorithm makes corresponding adjustment and divides each process, so that the processing obtained by each process is equal, and the bandwidth is correspondingly redistributed in a balanced manner.
In addition, in this embodiment, after the update of step S400 is completed, the configuration update method further includes step S600. In step S600, the update file is shared through P2P to facilitate the update of other nodes.
Fig. 5 is a block diagram illustrating a configuration update apparatus 100 according to an embodiment of the present invention, where the configuration update apparatus 100 includes a communication module 110, an information processing module 120, a file transmission module 130, and an update processing module 140.
The communication module 110 is used for establishing a connection with the outside world to receive the configuration update information. In some embodiments, the communication module 110 is used to establish a connection with a server and/or another configuration update apparatus 100 to obtain configuration update information from the server or through P2P sharing.
The information processing module 120 is connected to the communication module 110, and configured to determine whether to update according to the configuration update information, and send an update request if the update is confirmed, otherwise, the update is suspended.
The file transfer module 130 is connected to the communication module 110, and the file transfer module 130 is configured to establish a connection with the server and/or another configuration updating apparatus 100 to obtain the corresponding update file from the server or through P2P sharing according to the update request and to share the update file outwards through P2P.
The update processing module 140 is used to complete the update by updating the file.
According to the configuration updating device 100 of the embodiment of the present invention, when the configuration is updated, the configuration updating device 100 first determines whether to update according to the configuration updating information, and the data size of the configuration updating information is small compared to the update file, so that the problem of congestion and confusion of the system caused by simultaneous updating of a large number of nodes of the configuration updating device 100 is avoided.
The configuration updating device 100 node may obtain the corresponding update file from the server or through P2P sharing, that is, when the configuration updating device 100 node needs to be updated, other nodes may be selected as servers to obtain the update file, and a part of nodes of the system may directly obtain the update file from the servers, and then share the update file to other nodes until all nodes complete updating, so that the time for all nodes to complete configuration updating may be shortened.
In addition, in this embodiment, the configuration update information may be received from the server or shared through P2P, and a part of the nodes of the system may directly receive the configuration update information from the server and then share the configuration update information to other nodes, so that the system can make all the nodes obtain the configuration update information in a shorter time. When updating, each node of the configuration updating device 100 can be used as a "consumer" for acquiring information and files, or a "provider" for providing information and files, and under such a mechanism, the situation that each node waits in a queue or competes for resources with each other is effectively avoided, so that the updating time is greatly reduced.
In some embodiments, the configuration update apparatus 100 further includes a network determining module 150 connected to the file transfer module 130. The network determining module 150 is used for determining whether the file transfer module 130 can be connected to the server through analysis. If the connection to the server is possible, the file transfer module 130 is connected to the server, and if the connection to the server is not possible, the file transfer module 130 is connected to another configuration updating apparatus 100, so that the configuration updating apparatus 100 can still operate even if the connection to the server is not possible, and the applicability is higher.
In some embodiments, the configuration updating apparatus 100 further includes a detection module 160 connected to the file transfer module 130 for detecting occupancy rates of the disk and the network bandwidth, and when the occupancy rate of the disk exceeds a first preset value and/or the occupancy rate of the network bandwidth exceeds a second preset value, the detection module 160 limits a speed at which the file transfer module 130 obtains the updated file. In the configuration updating apparatus 100 of the present embodiment, when both the disk and the network can satisfy the usage of each business process, the algorithm sequentially performs normal processing. Once the condition of insufficient disk and network occurs, the algorithm makes corresponding adjustment and divides each process, so that the processing obtained by each process is equal, and the bandwidth is correspondingly redistributed in a balanced manner.
Fig. 6 is a schematic configuration diagram of a network system including the configuration update apparatus according to the embodiment of the present invention. Wherein the nodes, i.e. client nodes, may each be provided with the configuration updating apparatus 100 of the above-described embodiment. The massive client nodes and the servers form a network system, and besides at least part of the client nodes and the servers are connected with each other, the client nodes are also interconnected into a P2P network. In the figure, the implementation arrows show the direction of transfer of the update information and/or update files.
After receiving the update message, the client node freely selects whether to update according to the self needs, and when the update is not selected, the client does not send the update request. When the update is selected, the client node sends an update request to the server, and simultaneously, the client information and the request content are recorded in the node information database. And the server selectively calls the data information of the node information database according to the current resource occupation condition and responds to a command for downloading the shared file of other nodes. The method improves the efficiency of updating each node, and simultaneously utilizes the network characteristic of P2P to accelerate the speed of updating the file.
The system file server cluster is arranged in the server, the characteristics of high availability and load balance of the cluster are fully utilized, a large number of requests are accessed and balanced to each server in the cluster, and the situation that some servers operate with high load all the time and other servers are idle is avoided. In addition, when high concurrency occurs, unexpected execution of some tasks fails, and the server crashes, other servers in the cluster can take over the failed service, so that the normal operation of the system is ensured.
This has a number of implications for the request and receipt of data, considering special cases, such as certain client nodes may exist in some complex networks. In this embodiment, a complex network adaptive tool is used to operate a device that cannot be connected to a server, thereby ensuring normal use of the secondary store at the client in the complex network.
In particular, the client node may be equipped with a data analysis layer and a data computation layer. The data analysis layer is used for reading a java source file, analyzing the file by adopting a BCEL technology, and using the analyzed data to construct a network diagram. And the data operation layer is used for calculating corresponding operation on the basis of the data analysis layer to realize the function of the corresponding operation. The client side adopts an Eclipse RCP framework, and can run on different platforms. In the operation process, under the assistance of the two hierarchies, the sharing interface of the nearby node can be directly called in advance through the native window component.
Fig. 7 shows a hardware configuration diagram of a terminal device according to an embodiment of the present invention. An embodiment of the present invention provides a terminal device, which includes a processor 701 and a memory 702 storing computer program instructions.
Specifically, the processor 701 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 702 may include a mass storage for data or instructions. By way of example, and not limitation, memory 702 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 702 may include removable or non-removable (or fixed) media, where appropriate. The memory 702 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 702 is non-volatile solid-state memory. In a particular embodiment, the memory 702 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 701 may implement any of the above-described configuration update methods in embodiments by reading and executing computer program instructions stored in the memory 702.
In one example, the end device may also include a communication interface 703 and a bus 710. As shown in fig. 5, the processor 701, the memory 702, and the communication interface 703 are connected by a bus 710 to complete mutual communication.
The communication interface 703 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiment of the present invention.
Bus 710 includes hardware, software, or both. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 710 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the configuration updating method in the foregoing embodiment, the embodiment of the present invention may be implemented by providing a computer storage medium. The computer storage medium has computer program instructions stored thereon. The computer program instructions, when executed by a processor, implement any of the configuration update methods of the embodiments described above.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. For example, the algorithms described in the specific embodiments may be modified without departing from the basic spirit of the invention. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (11)

1. A configuration updating method for updating configuration of a node in a cloud environment is characterized by comprising the following steps:
receiving configuration update information;
judging whether to update according to the configuration updating information, if so, sending an updating request, and if not, shelving the updating;
obtaining a corresponding update file according to the update request; and
the update is completed by means of the update file,
wherein the obtaining the corresponding update file comprises obtaining the corresponding update file from a server or through P2P sharing;
the obtaining of the corresponding update file from the server or through P2P sharing includes:
it is determined whether a connection to the server is possible,
if it is possible to connect to the server, obtain the corresponding update file from the server,
if the connection to the server cannot be realized, the corresponding update file is obtained through P2P sharing;
the method further comprises the following steps: when the disk uses full load, dividing the disk request queue into a plurality of sub-queues with the length of N according to an SCAN algorithm;
processing the sub-queues according to an FCFS algorithm;
in the case of processing the sub-queues according to the FCFS algorithm, each disk request is processed according to the SCAN algorithm.
2. The configuration updating method according to claim 1, wherein the obtaining the corresponding update file through P2P sharing comprises:
searching for nearby updated nodes;
determining whether a connection to the updated node is possible,
if a connection to the updated node is possible, downloading the update file from the updated node,
if the updated node cannot be connected to, repeating the step of searching for a nearby updated node and the step of judging whether the updated node can be connected to until the updated node can be connected to.
3. The configuration update method according to claim 1, wherein the obtaining the corresponding update file from the server comprises:
obtaining address information corresponding to the update file from a server;
and searching a downloading source according to the address information and downloading to obtain the updated file.
4. The configuration update method of claim 1, wherein the receiving the configuration update information comprises receiving the configuration update information from a server or through P2P sharing.
5. The configuration update method according to claim 1, further comprising:
and detecting the occupancy rates of the disk and the network bandwidth, and limiting the speed of obtaining the updated file when the occupancy rate of the disk exceeds a first preset value and/or the occupancy rate of the network bandwidth exceeds a second preset value.
6. The configuration update method according to claim 1, wherein after the update is completed, the configuration update method further comprises:
the update file is shared out through P2P.
7. A configuration update apparatus, comprising:
the communication module is used for establishing connection with the outside to receive configuration updating information;
the information processing module is connected with the communication module and used for judging whether the configuration updating information is updated or not, if the configuration updating information is confirmed, an updating request is sent, and if the configuration updating information is not confirmed, the updating is suspended;
a file transfer module connected with the communication module, the file transfer module being configured to establish a connection with a server and/or another configuration update apparatus to obtain the corresponding update file from the server or sharing through P2P according to the update request and to share the update file outwards through P2P; and
the updating processing module is used for completing updating through the updating file;
the device further comprises:
a network judging module connected with the file transmission module and used for judging whether the file transmission module can be connected to a server or not through analysis,
if the connection to the server is enabled, the file transfer module is connected to the server,
if the connection to the server is unavailable, the file transmission module is connected with another configuration updating device;
the device further comprises:
the disk processing module is used for dividing the disk request queue into a plurality of sub-queues with the length of N according to an SCAN algorithm when the disk is fully loaded;
processing the sub-queues according to an FCFS algorithm;
in the case of processing the sub-queues according to the FCFS algorithm, each disk request is processed according to the SCAN algorithm.
8. The configuration update apparatus according to claim 7, wherein the communication module is configured to establish a connection with the server and/or another configuration update apparatus to obtain the configuration update information from the server or through P2P sharing.
9. The configuration update apparatus according to claim 7, further comprising:
and the detection module is connected with the file transmission module and is used for detecting the occupancy rates of the disk and the network bandwidth, and when the occupancy rate of the disk exceeds a first preset value and/or the occupancy rate of the network bandwidth exceeds a second preset value, the detection module limits the file transmission module to obtain the speed of the updated file.
10. A terminal device comprising a processor and a memory storing computer program instructions,
the processor, when executing the computer program instructions, implements the configuration update method of any of claims 1 to 6.
11. A computer storage medium having computer program instructions stored thereon which, when executed by a processor, implement the configuration update method of any one of claims 1 to 6.
CN201811561475.2A 2018-12-20 2018-12-20 Configuration updating method and device, terminal equipment and computer storage medium Active CN109412873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811561475.2A CN109412873B (en) 2018-12-20 2018-12-20 Configuration updating method and device, terminal equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811561475.2A CN109412873B (en) 2018-12-20 2018-12-20 Configuration updating method and device, terminal equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN109412873A CN109412873A (en) 2019-03-01
CN109412873B true CN109412873B (en) 2022-06-03

Family

ID=65459973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811561475.2A Active CN109412873B (en) 2018-12-20 2018-12-20 Configuration updating method and device, terminal equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN109412873B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532670B (en) * 2019-09-19 2022-07-05 阿里巴巴集团控股有限公司 Data processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2582089A1 (en) * 2010-06-13 2013-04-17 ZTE Corporation System and method for implementing automatic configuration for equipments
CN105930185A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Application updating method and apparatus, terminal and server
CN106686112A (en) * 2017-01-18 2017-05-17 中国工商银行股份有限公司 Cloud file transmission system and method
CN108038236A (en) * 2017-12-27 2018-05-15 深信服科技股份有限公司 File sharing method, device, system and readable storage medium storing program for executing
CN108494814A (en) * 2018-02-01 2018-09-04 顺丰科技有限公司 Distributed Information Gathering management method and system, equipment and storage medium
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium
CN108874426A (en) * 2018-06-28 2018-11-23 武汉斗鱼网络科技有限公司 Application program updating method and device and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2582089A1 (en) * 2010-06-13 2013-04-17 ZTE Corporation System and method for implementing automatic configuration for equipments
CN105930185A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Application updating method and apparatus, terminal and server
CN106686112A (en) * 2017-01-18 2017-05-17 中国工商银行股份有限公司 Cloud file transmission system and method
CN108038236A (en) * 2017-12-27 2018-05-15 深信服科技股份有限公司 File sharing method, device, system and readable storage medium storing program for executing
CN108494814A (en) * 2018-02-01 2018-09-04 顺丰科技有限公司 Distributed Information Gathering management method and system, equipment and storage medium
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium
CN108874426A (en) * 2018-06-28 2018-11-23 武汉斗鱼网络科技有限公司 Application program updating method and device and readable storage medium

Also Published As

Publication number Publication date
CN109412873A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
US20140229436A1 (en) Method of File Synchronization and Electronic Device Thereof
US10939228B2 (en) Mobile device location proofing
CN110022260B (en) Cross-environment receipt message processing method and system
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN114785685A (en) Software differential upgrading method and device, electronic equipment and readable storage medium
CN110650209A (en) Method and device for realizing load balance
CN110402563B (en) Information management system, in-vehicle device, server, and routing table changing method
CN109412873B (en) Configuration updating method and device, terminal equipment and computer storage medium
CN110620806B (en) Information generation method and device
CN103067465B (en) Sharing files method and system
CN109218338B (en) Information processing system, method and device
CN112055077B (en) Block link access method, device and storage medium
CN116743785A (en) Cloud network data storage method, device, equipment and medium based on fog calculation
CN112825045B (en) Payment request processing method, system and storage medium
CN107800577B (en) Device configuration method and device for mobile terminal
CN113050978A (en) Application gray release control method, device and equipment and computer storage medium
CN112241357A (en) Method, device, equipment and computer readable medium for gray scale test
CN114244830B (en) File gateway application nonfunctional testing method and system
CN112311842A (en) Method and device for information interaction
US20240152504A1 (en) Data interaction method, apparatus, and electronic device
CN111083196B (en) Information forwarding method and device and electronic equipment
CN113778504B (en) Publishing method, publishing system and routing device
CN110855767B (en) Method, device, equipment and storage medium for responding operation request
CN110929233B (en) Information processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant