CN108243254B - Electronic device, method for releasing application upgrading version and storage medium - Google Patents

Electronic device, method for releasing application upgrading version and storage medium Download PDF

Info

Publication number
CN108243254B
CN108243254B CN201810042985.2A CN201810042985A CN108243254B CN 108243254 B CN108243254 B CN 108243254B CN 201810042985 A CN201810042985 A CN 201810042985A CN 108243254 B CN108243254 B CN 108243254B
Authority
CN
China
Prior art keywords
load
server
configurable
weight
preset
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
CN201810042985.2A
Other languages
Chinese (zh)
Other versions
CN108243254A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810042985.2A priority Critical patent/CN108243254B/en
Priority to PCT/CN2018/089454 priority patent/WO2019140829A1/en
Publication of CN108243254A publication Critical patent/CN108243254A/en
Application granted granted Critical
Publication of CN108243254B publication Critical patent/CN108243254B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1017Server selection for load balancing based on a round robin mechanism
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an electronic device, an application upgrading version issuing method and a storage medium.A command with a preset load for issuing an upgrading version application program is sent to a predetermined server cluster, and then identification information of a first server receiving the command and a corresponding first load weight are acquired; analyzing a first configurable load amount corresponding to the first load weight; comparing the first configurable load quantity with a preset load quantity, and if the first configurable load quantity is greater than or equal to the preset load quantity, determining to release the upgraded version application program to the first server; if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for releasing the application program of the upgrade version. The risk of downtime of the server system caused by gray scale distribution can be avoided accurately and timely.

Description

Electronic device, method for releasing application upgrading version and storage medium
Technical Field
The present invention relates to the field of application program development, and in particular, to an electronic device, a method for releasing an application upgrade version, and a storage medium.
Background
With the development of internet technology and the increasing demand of clients for internet products, internet products such as web applications, client applications, etc. need to be upgraded to meet the increase of client demand. In order to reduce or even avoid the influence caused by upgrading the application program, a strategy of gray release is generally adopted, and the main idea is to select a part of clients to release the application of the upgraded version, and aim to concentrate the influence on one point, and then fully release the application of the upgraded version after solving the problems encountered in the upgrading process. At present, background service systems of large internet companies generally work by using server clusters, when a new version of an application program is released, a part of servers in the server clusters need to be selected in advance to perform gray release, in order to not affect the performance of the whole server cluster, the load weight of each server call load is generally modulated by manpower to avoid the risk of downtime of the server due to gray release, and the problems of untimely operation and low accuracy exist in the whole process.
Disclosure of Invention
In view of this, the present invention provides an electronic device, an application upgrade version release method and a storage medium, which can accurately and timely avoid the risk of downtime of a server system caused by gray scale release.
First, to achieve the above object, the present invention provides an electronic device, where the electronic device includes a memory and a processor connected to the memory, the processor is configured to execute an application upgrade version release program stored in the memory, and when executed by the processor, the electronic device implements the following steps:
a1, after an instruction with a preset load for issuing an upgrade version application program is sent to a predetermined server cluster, acquiring identification information of a first server receiving the instruction in the server cluster and a corresponding first load weight;
a2, inquiring a first mapping relation table between load weights and configurable load quantities corresponding to identification information of servers in the server cluster, which is stored in advance, and determining a first configurable load quantity corresponding to the first load weight;
a3, comparing the first configurable load quantity with the preset load quantity, and if the first configurable load quantity is greater than or equal to the preset load quantity, determining to issue an upgraded version application program to the first server;
and A4, if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for issuing an application program of an upgrade version.
Further, the predetermined load analysis rule includes:
respectively acquiring identification information of each server in the server cluster and corresponding second load weight;
determining a second configurable load amount corresponding to the second load weight based on the first mapping relation table, and generating a second mapping relation table between the second load weight and the second configurable load amount;
traversing the second mapping relation table based on the preset load, and if a second configurable load is greater than or equal to the preset load in the second mapping relation table, determining to release the upgrade version application program to a server corresponding to the second configurable load;
if no second configurable load capacity in the second mapping relation table is greater than or equal to the preset load capacity, readjusting the load weight of each server in the server cluster based on a predetermined polling rule.
Further, the preset load is greater than or equal to the minimum load required for running the upgraded application program.
Further, the predetermined polling rule is a weight-based polling algorithm.
Further, the identification information includes a MAC address, an IP address, or a host name.
In addition, in order to achieve the above object, the present invention further provides an application upgrade version release method, including the following steps:
s1, after an instruction with a preset load for issuing an upgraded version application program is sent to a predetermined server cluster, acquiring identification information of a first server receiving the instruction in the server cluster and a corresponding first load weight;
s2, inquiring a first mapping relation table between load weights and configurable load quantities corresponding to identification information of servers in the server cluster, wherein the first mapping relation table is stored in advance, and determining a first configurable load quantity corresponding to the first load weight;
s3, comparing the first configurable load amount with the preset load amount, and if the first configurable load amount is greater than or equal to the preset load amount, determining to issue an upgraded version application to the first server;
and S4, if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for issuing an application program of an upgrade version.
Further, the predetermined load analysis rule includes:
respectively acquiring identification information of each server in the server cluster and corresponding second load weight;
determining a second configurable load amount corresponding to the second load weight based on the first mapping relation table, and generating a second mapping relation table between the second load weight and the second configurable load amount;
traversing the second mapping relation table based on the preset load, and if a second configurable load is greater than or equal to the preset load in the second mapping relation table, determining to release the upgrade version application program to a server corresponding to the second configurable load;
if no second configurable load capacity in the second mapping relation table is greater than or equal to the preset load capacity, readjusting the load weight of each server in the server cluster based on a predetermined polling rule.
Further, the preset load is greater than or equal to the minimum load required for running the upgraded application program.
Further, the predetermined polling rule is a weight-based polling algorithm.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing an application upgrade version release program, which is executable by at least one processor to cause the at least one processor to perform the steps of the above application upgrade version release method.
Compared with the prior art, the electronic device, the application upgrade version release method and the storage medium provided by the invention have the advantages that after the instruction for releasing the upgrade version application program with the preset load capacity is sent to the predetermined server cluster, the identification information of the first server receiving the instruction and the corresponding first load weight are obtained; analyzing a first configurable load amount corresponding to the first load weight; comparing the first configurable load quantity with a preset load quantity, and if the first configurable load quantity is greater than or equal to the preset load quantity, determining to release the upgraded version application program to the first server; if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for releasing the application program of the upgrade version. The risk of downtime of the server system caused by gray scale distribution can be avoided accurately and timely.
Drawings
FIG. 1 is a diagram of an alternative hardware architecture of an electronic device according to the present invention;
FIG. 2 is a block diagram of an application upgrade version release program according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation of a method for releasing an upgraded application version according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an alternative hardware architecture of the electronic device according to the present invention. In this embodiment, the electronic device 10 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13, which may be communicatively connected to each other through a communication bus 14. It is noted that fig. 1 only shows the electronic device 10 with components 11-14, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 11 includes at least one type of computer-readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 11 may be an internal storage unit of the electronic device 10, such as a hard disk or a memory of the electronic device 10. In other embodiments, the memory 11 may also be an external storage device of the electronic apparatus 10, such as a plug-in hard disk provided on the electronic apparatus 10, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Of course, the memory 11 may also comprise both an internal storage unit of the electronic apparatus 10 and an external storage device thereof. In the present embodiment, the memory 11 is generally used for storing an operating system installed in the electronic device 10 and various types of application software, such as an application upgrade version release program. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is generally used to control the overall operation of the electronic device 10. In this embodiment, the processor 12 is configured to execute the program code stored in the memory 11 or process data, such as an application upgrade version release program.
The network interface 13 may include a wireless network interface or a wired network interface, and the network interface 13 is generally used to establish a communication connection between the electronic apparatus 10 and other electronic devices.
The communication bus 14 is used to enable communication connections between the components 11-13.
Fig. 1 only shows the electronic device 10 having components 11-14 and the distribution of upgraded versions of applications based on load weight scheduling, but it will be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
Optionally, the electronic device 10 may further comprise a user interface (not shown in fig. 1), which may comprise a display, an input unit such as a keyboard, wherein the user interface may further comprise a standard wired interface, a wireless interface, etc.
Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED touch, and the like. Further, the display may also be referred to as a display screen or a display unit for displaying the process executed by the processor 12 in the electronic device 10 by the application upgrade version issue program.
In an embodiment of the electronic device 10 of the present invention, when the processor 12 executes the application upgrade version issue program, the following operations are implemented:
after an instruction with a preset load for issuing an application program of an upgrade version is sent to a predetermined server cluster, a first load weight corresponding to a first server receiving the instruction in the server cluster is obtained;
the first server is identified by corresponding identification information, such as a MAC address, an ip address, a host name and the like;
generally, each server in a server cluster corresponds to a different load weight, and the weight changes according to the change of the load magnitude, if the load of a server increases all the time, the weight of the server decreases all the time, and if the load of the server increases all the time after the weight decreases to a certain value, the risk of downtime of the server is easily caused. In this embodiment, in order to ensure that the load capacity of the server for the grayscale release application in the server cluster can meet the requirement of the grayscale release application, an instruction of the grayscale release application with a preset load is sent to the server cluster, where the preset load may be a specific numerical value greater than or equal to the minimum load or an interval value including the minimum load, and the minimum load is the minimum load that the server for the application needs to have.
Inquiring a first mapping relation table between load weights and configurable load quantities corresponding to servers in the server cluster, wherein the first mapping relation table is stored in advance, and determining a first configurable load quantity corresponding to the first load weight; in this embodiment, it should be noted that each server is represented by its corresponding identification information, for example, a MAC address, an ip address, or a host name, and there is a one-to-one mapping relationship between its identification information and a load weight, a column of the first mapping relationship table stored in advance stores identification information and a load weight, and a column mapped to the column corresponding to the identification information and the load weight stores the configurable load amount.
Comparing the first configurable load capacity with the preset load capacity, and if the first configurable load capacity is greater than or equal to the preset load capacity, determining to release the upgraded version application program to the first server;
if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for releasing the application program of the upgrade version.
Wherein the predetermined load analysis rule comprises: respectively acquiring identification information of each server in the server cluster and corresponding second load weight;
determining a second configurable load amount corresponding to the second load weight based on the first mapping relation table, and generating a second mapping relation table between the second load weight and the second configurable load amount;
traversing the second mapping relation table based on the preset load, and if a second configurable load is greater than or equal to the preset load in the second mapping relation table, determining to release the upgrade version application program to a server corresponding to the second configurable load;
if no second configurable load capacity in the second mapping relation table is greater than or equal to the preset load capacity, readjusting the load weight of each server in the server cluster based on a predetermined polling rule, so that the configurable load capacity corresponding to the server in the adjusted server cluster is greater than or equal to the preset load capacity.
Wherein the predetermined polling rule is a weight-based polling algorithm. The weight-based polling algorithm includes: in the server array S, firstly, calculating the maximum value max (S) of all server weights and the maximum common divisor gcd (S) of all server weights; for example, in one embodiment, the predetermined server cluster includes 3 servers, represented by server a, server b, and server c, respectively. If the weight of server a is 28, the weight of server b is 32, and the weight of server c is 40, the maximum value max(s) of all server weights is 40, and the greatest common divisor gcd(s) of all server weights is 4;
then, when a preset index function index indicates that a request comes, the index of the server receiving the request is usually set to be-1; and the preset current _ weight is used for representing the load weight of the currently scheduled server, and the initial value is max (S).
In the weight-based polling algorithm, when a request comes, a server array S is polled from index +1, the first server with the load weight larger than current _ weight is found, the request is processed, and the index of the server array S is recorded in a result sequence.
When polling server array S, if the end of server array S is reached and there is no server with load weight greater than current _ weight, then reducing the value of current _ weight and starting polling server array S from the beginning again; if there are no servers with load weights greater than current _ weight when current _ weight has a value of gcd(s), then the load weights of the servers are reconfigured as required by the request. Therefore, through the polling process, the configuration of the load weight of each server can be automatically completed according to the requirement of the request.
As can be seen from the above example, the electronic device provided by the present invention sends the instruction for issuing the upgrade version application with the preset load to the predetermined server cluster, and then obtains the identification information of the first server receiving the instruction and the corresponding first load weight; analyzing a first configurable load amount corresponding to the first load weight; comparing the first configurable load quantity with a preset load quantity, and if the first configurable load quantity is greater than or equal to the preset load quantity, determining to release the upgraded version application program to the first server; if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for releasing the application program of the upgrade version. The risk of downtime of the server system caused by gray scale distribution can be avoided accurately and timely.
It should be further noted that, as in the embodiment shown in fig. 2 below, the application upgrade version release computer program may be described by virtual program modules having the same functions according to different functions implemented by each part of the program.
Fig. 2 is a schematic diagram of program modules of an application upgrade version release program according to an embodiment of the present invention. In this embodiment, the application upgrade version release program may be divided into an acquisition module 201, a determination module 202, a comparison module 203, and an analysis module 204 according to the functions implemented by each part of the application upgrade version release program. The functions or operation steps implemented by the module 201-204 are similar to those described above, and are not detailed here, for example, where:
the obtaining module 201 is configured to obtain identification information of a first server receiving an instruction and a corresponding first load weight after the instruction for issuing an upgraded version application with a preset load is sent to a predetermined server cluster;
the determining module 202 is configured to query a first mapping relationship table between a load weight and a configurable load amount, where the first mapping relationship table is stored in advance and corresponds to identification information of each server in the server cluster, and determine a first configurable load amount corresponding to the first load weight;
the comparison module 203 is configured to compare the first configurable load amount with the preset load amount, and determine to issue the upgraded version application to the first server if the first configurable load amount is greater than or equal to the preset load amount;
the analysis module 204 is configured to, if the first configurable load amount is smaller than the preset load amount, analyze load weights corresponding to servers in the server cluster by using a predetermined load analysis rule, and determine a server for issuing an application program of an upgrade version.
In addition, the invention also provides an application upgrading version release method. Fig. 3 is a flowchart illustrating a method for releasing an application upgrade version according to a preferred embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
In this embodiment, the method for releasing the application upgrade version includes:
step S301, after an instruction for issuing an upgraded version application program with a preset load capacity is sent to a predetermined server cluster, a first load weight corresponding to a first server receiving the instruction in the server cluster is obtained;
the first server is identified by corresponding identification information, such as a MAC address, an ip address, a host name and the like;
generally, each server in a server cluster corresponds to a different load weight, and the weight changes according to the change of the load magnitude, if the load of a server increases all the time, the weight of the server decreases all the time, and if the load of the server increases all the time after the weight decreases to a certain value, the risk of downtime of the server is easily caused. In this embodiment, in order to ensure that the load capacity of the server for the grayscale release application in the server cluster can meet the requirement of the grayscale release application, an instruction of the grayscale release application with a preset load is sent to the server cluster, where the preset load may be a specific numerical value greater than or equal to the minimum load or an interval value including the minimum load, and the minimum load is the minimum load that the server for the application needs to have.
Step S302, a first mapping relation table between load weights and configurable load quantities corresponding to servers in the server cluster, which are stored in advance, is inquired, and a first configurable load quantity corresponding to the first load weight is determined;
in this embodiment, it should be noted that each server is represented by its corresponding identification information, for example, a MAC address, an ip address, or a host name, and there is a one-to-one mapping relationship between its identification information and a load weight, a column of the first mapping relationship table stored in advance stores identification information and a load weight, and a column mapped to the column corresponding to the identification information and the load weight stores the configurable load amount.
Step S303, comparing the first configurable load amount with the preset load amount, and if the first configurable load amount is greater than or equal to the preset load amount, determining to issue an upgraded version application program to the first server;
step S304, if the first configurable load amount is smaller than the preset load amount, analyzing load weights corresponding to the servers in the server cluster by using a predetermined load analysis rule, and determining a server for issuing an application program of an upgrade version.
Wherein the predetermined load analysis rule comprises: respectively acquiring identification information of each server in the server cluster and corresponding second load weight;
determining a second configurable load amount corresponding to the second load weight based on the first mapping relation table, and generating a second mapping relation table between the second load weight and the second configurable load amount;
traversing the second mapping relation table based on the preset load, and if a second configurable load is greater than or equal to the preset load in the second mapping relation table, determining to release the upgrade version application program to a server corresponding to the second configurable load;
if no second configurable load capacity in the second mapping relation table is greater than or equal to the preset load capacity, readjusting the load weight of each server in the server cluster based on a predetermined polling rule, so that the configurable load capacity corresponding to the server in the adjusted server cluster is greater than or equal to the preset load capacity.
Wherein the predetermined polling rule is a weight-based polling algorithm. The weight-based polling algorithm includes: in the server array S, the maximum value max (S) of all server weights and the maximum common divisor gcd (S) of all server weights are calculated first. For example, in one embodiment, the predetermined server cluster includes 3 servers, represented by server a, server b, and server c, respectively. If the weight of server a is 28, the weight of server b is 32, and the weight of server c is 40, the maximum value max(s) of all server weights is 40, and the greatest common divisor gcd(s) of all server weights is 4.
Then, when a preset index function index indicates that a request comes, the index of the server receiving the request is usually set to be-1; and the preset current _ weight is used for representing the load weight of the currently scheduled server, and the initial value is max (S).
In the weight-based polling algorithm, when a request comes, a server array S is polled from index +1, the first server with the load weight larger than current _ weight is found, the request is processed, and the index of the server array S is recorded in a result sequence.
When polling server array S, if the end of server array S is reached and there is no server with load weight greater than current _ weight, then reducing the value of current _ weight and starting polling server array S from the beginning again; if there are no servers with load weights greater than current _ weight when current _ weight has a value of gcd(s), then the load weights of the servers are reconfigured as required by the request. Therefore, through the polling process, the configuration of the load weight of each server can be automatically completed according to the requirement of the request.
In the application upgrade version release method provided by the above-mentioned example, after an instruction for releasing an upgrade version application program with a preset load is sent to a predetermined server cluster, identification information of a first server receiving the instruction and a corresponding first load weight are acquired; analyzing a first configurable load amount corresponding to the first load weight; comparing the first configurable load quantity with a preset load quantity, and if the first configurable load quantity is greater than or equal to the preset load quantity, determining to release the upgraded version application program to the first server; if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for releasing the application program of the upgrade version. The risk of downtime of the server system caused by gray scale distribution can be avoided accurately and timely.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an application upgrade version release program is stored on the computer-readable storage medium, and when executed by a processor, the application upgrade version release program implements the following operations:
after an instruction with a preset load for issuing an application program of an upgrade version is sent to a predetermined server cluster, acquiring identification information of a first server receiving the instruction in the server cluster and a corresponding first load weight;
inquiring a first mapping relation table between a load weight and a configurable load amount corresponding to identification information of each server in the server cluster, wherein the first mapping relation table is stored in advance, and determining a first configurable load amount corresponding to the first load weight;
comparing the first configurable load capacity with the preset load capacity, and if the first configurable load capacity is greater than or equal to the preset load capacity, determining to issue an upgraded version application program to the first server;
if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for releasing the application program of the upgrade version.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the electronic device and the method for releasing the application upgrade version, and will not be described in detail herein.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An electronic device, comprising a memory, and a processor coupled to the memory, wherein the processor is configured to execute an application upgrade version release program stored in the memory, and wherein the application upgrade version release program, when executed by the processor, implements the following steps:
a1, after an instruction with a preset load for issuing an upgrade version application program is sent to a predetermined server cluster, acquiring identification information of a first server receiving the instruction in the server cluster and a corresponding first load weight;
a2, inquiring a first mapping relation table between load weights and configurable load quantities corresponding to identification information of servers in the server cluster, which is stored in advance, and determining a first configurable load quantity corresponding to the first load weight;
a3, comparing the first configurable load quantity with the preset load quantity, and if the first configurable load quantity is greater than or equal to the preset load quantity, determining to issue an upgraded version application program to the first server;
and A4, if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for issuing an application program of an upgrade version.
2. The electronic device of claim 1, wherein the predetermined load analysis rule comprises:
respectively acquiring identification information of each server in the server cluster and corresponding second load weight;
determining a second configurable load amount corresponding to the second load weight based on the first mapping relation table, and generating a second mapping relation table between the second load weight and the second configurable load amount;
traversing the second mapping relation table based on the preset load, and if a second configurable load is greater than or equal to the preset load in the second mapping relation table, determining to release the upgrade version application program to a server corresponding to the second configurable load;
if no second configurable load capacity in the second mapping relation table is greater than or equal to the preset load capacity, readjusting the load weight of each server in the server cluster based on a predetermined polling rule.
3. The electronic device according to claim 1 or 2, wherein the preset load amount is greater than or equal to a minimum load amount required to run the upgraded version application.
4. The electronic device of claim 2, wherein the predetermined polling rule is a weight-based polling algorithm.
5. The electronic device of claim 1 or 2, wherein the identification information comprises a MAC address, an IP address, or a host name.
6. An application upgrade version release method is characterized by comprising the following steps:
s1, after an instruction with a preset load for issuing an upgraded version application program is sent to a predetermined server cluster, acquiring identification information of a first server receiving the instruction in the server cluster and a corresponding first load weight;
s2, inquiring a first mapping relation table between load weights and configurable load quantities corresponding to identification information of servers in the server cluster, wherein the first mapping relation table is stored in advance, and determining a first configurable load quantity corresponding to the first load weight;
s3, comparing the first configurable load amount with the preset load amount, and if the first configurable load amount is greater than or equal to the preset load amount, determining to issue an upgraded version application to the first server;
and S4, if the first configurable load capacity is smaller than the preset load capacity, analyzing the load weight corresponding to each server in the server cluster by using a predetermined load analysis rule, and determining a server for issuing an application program of an upgrade version.
7. The application upgrade version release method according to claim 6, wherein the predetermined load analysis rule includes:
respectively acquiring identification information of each server in the server cluster and corresponding second load weight;
determining a second configurable load amount corresponding to the second load weight based on the first mapping relation table, and generating a second mapping relation table between the second load weight and the second configurable load amount;
traversing the second mapping relation table based on the preset load, and if a second configurable load is greater than or equal to the preset load in the second mapping relation table, determining to release the upgrade version application program to a server corresponding to the second configurable load;
if no second configurable load capacity in the second mapping relation table is greater than or equal to the preset load capacity, readjusting the load weight of each server in the server cluster based on a predetermined polling rule.
8. The application upgrade version release method according to claim 6 or 7, wherein the preset load amount is greater than or equal to a minimum load amount required to run the upgrade version application program.
9. The application upgrade version release method according to claim 7, wherein the predetermined polling rule is a weight-based polling algorithm.
10. A computer-readable storage medium storing an application upgrade version release program executable by at least one processor to cause the at least one processor to perform the steps of the application upgrade version release method according to any one of claims 6-9.
CN201810042985.2A 2018-01-17 2018-01-17 Electronic device, method for releasing application upgrading version and storage medium Active CN108243254B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810042985.2A CN108243254B (en) 2018-01-17 2018-01-17 Electronic device, method for releasing application upgrading version and storage medium
PCT/CN2018/089454 WO2019140829A1 (en) 2018-01-17 2018-06-01 Electronic device, method for releasing application update version, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810042985.2A CN108243254B (en) 2018-01-17 2018-01-17 Electronic device, method for releasing application upgrading version and storage medium

Publications (2)

Publication Number Publication Date
CN108243254A CN108243254A (en) 2018-07-03
CN108243254B true CN108243254B (en) 2020-09-25

Family

ID=62698624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810042985.2A Active CN108243254B (en) 2018-01-17 2018-01-17 Electronic device, method for releasing application upgrading version and storage medium

Country Status (2)

Country Link
CN (1) CN108243254B (en)
WO (1) WO2019140829A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109327540A (en) * 2018-11-16 2019-02-12 平安科技(深圳)有限公司 Electronic device, server load balancing method and storage medium
CN110198353B (en) * 2019-05-30 2020-09-15 四川长虹电器股份有限公司 System for releasing weight gray scale of service version
CN111399875B (en) * 2020-03-06 2023-09-05 咪咕文化科技有限公司 Gray scale upgrading control method and device, electronic equipment and storage medium
CN112653579B (en) * 2020-12-16 2023-05-23 中国人寿保险股份有限公司 Gray release method based on OpenResity and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534244A (en) * 2009-02-09 2009-09-16 华为技术有限公司 Method, device and system for load distribution
CN102497454A (en) * 2011-12-31 2012-06-13 北京新媒传信科技有限公司 Method for realizing gray publication of application in application service platform system
CN103677765A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 Version automatic issuing method, device and storage medium
CN105677356A (en) * 2016-01-11 2016-06-15 上海雷腾软件股份有限公司 Operation and maintenance method and device
CN107016280A (en) * 2017-03-31 2017-08-04 武汉票据交易中心有限公司 The upgrade method and system of a kind of client application

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070083630A1 (en) * 2005-09-27 2007-04-12 Bea Systems, Inc. System and method for performance testing framework
US8959222B2 (en) * 2011-05-19 2015-02-17 International Business Machines Corporation Load balancing system for workload groups
CN103401713B (en) * 2013-07-31 2016-05-25 北京山海树科技有限公司 The system and method that a kind of software is issued
CN107015831A (en) * 2017-03-31 2017-08-04 武汉票据交易中心有限公司 A kind of client updating management method upgraded based on server end and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534244A (en) * 2009-02-09 2009-09-16 华为技术有限公司 Method, device and system for load distribution
CN102497454A (en) * 2011-12-31 2012-06-13 北京新媒传信科技有限公司 Method for realizing gray publication of application in application service platform system
CN103677765A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 Version automatic issuing method, device and storage medium
CN105677356A (en) * 2016-01-11 2016-06-15 上海雷腾软件股份有限公司 Operation and maintenance method and device
CN107016280A (en) * 2017-03-31 2017-08-04 武汉票据交易中心有限公司 The upgrade method and system of a kind of client application

Also Published As

Publication number Publication date
CN108243254A (en) 2018-07-03
WO2019140829A1 (en) 2019-07-25

Similar Documents

Publication Publication Date Title
CN108388599B (en) Electronic device, data migration and calling method and storage medium
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN108243254B (en) Electronic device, method for releasing application upgrading version and storage medium
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
CN108768875B (en) Application gray level publishing method and device and computer readable storage medium
CN108848039B (en) Server, message distribution method and storage medium
CN108415925B (en) Electronic device, data call log generation and query method and storage medium
CN108491301B (en) Electronic device, abnormality early warning method based on redis and storage medium
CN108847950B (en) Electronic device, cloud system software automatic deployment method and storage medium
CN109284205B (en) Snapshot backup method and device, computer equipment and storage medium
CN107911401B (en) Application plug-in extension function method and application server
CN108446171B (en) Electronic device, distributed system execution task allocation method and storage medium
CN108491304B (en) electronic device, business system risk control method and storage medium
CN108776631B (en) Server, method for acquiring compatibility test equipment and storage medium
CN111651667A (en) Data pushing and shunting control method and device and computer readable storage medium
CN112395187A (en) Test method, test system, computer device and storage medium
CN111343267B (en) Configuration management method and system
CN109561134B (en) Electronic device, distributed cluster service distribution method and storage medium
CN108491466B (en) Electronic device, access instruction information acquisition method, and storage medium
CN111190621A (en) Firmware burning method, device, system, terminal equipment and storage medium
CN107967305B (en) Image file uploading method, server and readable storage medium
CN109446159B (en) Multi-version file management method, server and computer readable storage medium
CN112130936A (en) Polling-based data calling method, device, equipment and storage medium
CN108829574B (en) Test data laying method, test server and computer readable storage medium
CN111736761A (en) Data distribution method, device, storage system and computer readable storage medium

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