CN113055723A - Version debugging and upgrading method, device, equipment and storage medium - Google Patents
Version debugging and upgrading method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113055723A CN113055723A CN201911375767.1A CN201911375767A CN113055723A CN 113055723 A CN113055723 A CN 113055723A CN 201911375767 A CN201911375767 A CN 201911375767A CN 113055723 A CN113055723 A CN 113055723A
- Authority
- CN
- China
- Prior art keywords
- version
- upgrading
- control strategy
- service
- micro
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000011217 control strategy Methods 0.000 claims abstract description 110
- 238000012360 testing method Methods 0.000 claims description 47
- 230000000007 visual effect Effects 0.000 claims description 11
- 238000001914 filtration Methods 0.000 claims description 5
- 238000012800 visualization Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 abstract description 2
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 239000000725 suspension Substances 0.000 description 2
- 238000013142 basic testing Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011900 installation process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26291—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25808—Management of client data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
- H04N21/4586—Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method, a device, equipment and a storage medium for version debugging and upgrading, which relate to the technical field of communication, wherein the method comprises the following steps: the gateway micro-service receives a plurality of request messages containing the IP addresses of the set top box sent by a service upgrading network element; the gateway micro-service filters and matches the set top box IP address in each request message according to the pre-stored IP address field, and judges whether the matching is successful; and when the matching is judged to be successful, the gateway micro-service forwards the request message containing the upgrading version control strategy to the corresponding downstream micro-service according to the pre-configured upgrading version control strategy, so that the downstream micro-service continues to request the downstream micro-service according to the upgrading version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for version debugging and upgrading.
Background
With the successful application of high-definition video, ultra-high-definition video, 4k and even 8k video to IPTV/OTT, the micro-service large video era under "large network, large content, large data, large ecology" has come by combining with the functional decomposition of micro-service architecture to achieve the decoupling of the solution. In recent years, IPTV/OTT is rapidly developed, and the market of IPTV/OTT is huge, so that in order to meet the service requirement of rapid development and the continuously optimized architecture demand, the following problems will certainly exist in upgrading and updating according to the version upgrading scheme under the original IPTV/OTT architecture:
firstly, in the process of upgrading a plurality of current complete system versions, all old versions related to network element software are generally required to be backed up first, then the service of the current network element is stopped, then a new version upgrading installation package of the software is uploaded, and then a service test is carried out after the normal upgrading installation process. Since the external service is still in the suspension stage at this time, the upgrade time window is limited, so the test can be performed only within the internal limited time, and it is difficult to cover all upgraded network elements. And finally restarting all network elements or services after the test is passed to realize the upgrade of the whole system. The system can not provide external service in the whole upgrading process. And once a serious problem that the system cannot be repaired in a short time occurs in the installation and upgrading process or the debugging process, the version of the system is backed off, and the service interruption time of the system is further prolonged, so that the upgrading process has certain risks, customers are easily discontented, and the user experience is directly influenced.
Secondly, the process of the upgrading test has certain risk and is long in time, so that the upgrading process can be carried out only in a time window when a few users are online, and generally, the upgrading test meets the upgrading condition only in the early morning at night. Therefore, on one hand, a research and development team is required to coordinate with extra human resources with a client operator, and on the other hand, a high requirement is put on testing before system upgrading is carried out.
Third, the conventional scheme adopted before the above problems generally needs to perform temporary division or adjustment of the network level on the system periphery, and allocate all user traffic to a temporary available environment, thereby avoiding service interruption. The operation is complex, and can be completed only by the cooperation of the operator and the customer, and the system can not be realized.
And fourthly, only one set of versions can be supported to be online before and after the current system is upgraded, and the multiple versions of multiple network elements cannot be supported to be simultaneously online for debugging and testing.
Disclosure of Invention
The technical problems solved by the scheme provided by the embodiment of the invention comprise the following steps:
1. the method can avoid a plurality of problems possibly introduced by links such as system service restart, difficult integral rollback and the like in the traditional version upgrading process. The method has the advantages that instantaneous online and debugging of the new version are realized, the introduction of directional flow is supported for testing, the unknown risk caused by replacing the old version can be effectively reduced, the upgrading risk is controllable, and the user flow can be rapidly switched to the original stable version in a short time when the new version goes wrong.
2. The method and the system can avoid the interruption of the whole network service caused by the conditions of restarting the service network element and the like, solve the problem of the related manpower coordination of the version update and the release time window by operators and research and development testing teams, improve the user experience and reduce the manpower cost.
3. The division and allocation of the peripheral network layer required by the current optimization scheme can be avoided, and only the system is simply operated and configured.
4. According to the characteristics of the current architecture platform, a single version or a plurality of versions of all network elements or part of network elements are supported under the IPTV/OTT architecture and are online to be tested, and the specific version of the network element through which the user traffic flows can be flexibly configured.
The method for debugging and upgrading the version provided by the embodiment of the invention comprises the following steps:
the gateway micro-service receives a plurality of request messages containing the IP addresses of the set top box sent by a service upgrading network element;
the gateway micro-service filters and matches the set top box IP address in each request message according to the pre-stored IP address field, and judges whether the matching is successful;
and when the matching is judged to be successful, the gateway micro-service forwards the request message containing the upgrading version control strategy to the corresponding downstream micro-service according to the pre-configured upgrading version control strategy, so that the downstream micro-service continues to request the downstream micro-service according to the upgrading version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
Preferably, the method further comprises the following steps:
when the matching is judged to be failed, the gateway micro-service forwards the request message containing the default version control strategy to the corresponding downstream default micro-service according to the default version control strategy configured in advance, so that the downstream default micro-service continues to request the downstream micro-service according to the default version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
Preferably, after the gateway microservice receives a plurality of request messages containing the IP address of the set-top box sent by the service upgrade network element, the method further includes:
the gateway micro-service receives and stores a debugging configuration message of a debugging version strategy or an upgrading configuration message of an upgrading version strategy sent by a visual portal;
the testing version strategy comprises IP address fields of IP addresses of N set top boxes, a default version control strategy and an upgrading version control strategy for testing a new version; the upgrading version strategy comprises IP address fields of IP addresses of M set-top boxes, a default version control strategy and an upgrading version control strategy for upgrading a new version;
wherein N and M are positive integers, and M is greater than N.
Preferably, when the matching is determined to be successful, the forwarding, by the gateway microservice, the request message containing the upgraded version control policy to the corresponding downstream microservice according to the preconfigured upgraded version control policy includes:
when the matching is judged to be successful, the gateway micro-service acquires an upgrade version control strategy for debugging and testing a new version from pre-stored test configuration information, and forwards the request information added with the upgrade version control strategy to a corresponding downstream micro-service according to the upgrade version control strategy; or
And when the matching is judged to be successful, the gateway micro-service acquires an upgrade version control strategy for upgrading the new version from the pre-stored upgrade configuration message, and forwards the request message added with the upgrade version control strategy to the corresponding downstream micro-service according to the upgrade version control strategy.
The device for debugging, testing and upgrading the version provided by the embodiment of the invention comprises the following components:
the receiving module is used for receiving a request message which is sent by a service upgrading network element and contains a plurality of set top box IP addresses;
the judging module is used for filtering and matching the set top box IP address in each request message according to the prestored IP address field and judging whether the matching is successful;
and the debugging or upgrading module is used for forwarding the request message containing the upgrading version control strategy to the corresponding downstream micro-service according to the pre-configured upgrading version control strategy when the matching is judged to be successful, so that the downstream micro-service continuously requests the downstream micro-service according to the upgrading version control strategy in the request message when needed, and the version debugging or the version upgrading is realized.
Preferably, the debugging or upgrading module further comprises: and when the matching is judged to be failed, forwarding the request message containing the default version control strategy to the corresponding downstream default microservice according to the default version control strategy configured in advance, so that the downstream default microservice can continuously request the downstream microservice according to the default version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
Preferably, the receiving module is further configured to receive and store a debugging configuration message of the debugging version policy or an upgrade configuration message of the upgrade version policy, which is sent by the visualization portal;
the testing version strategy comprises IP address fields of IP addresses of N set top boxes, a default version control strategy and an upgrading version control strategy for testing a new version; the upgrading version strategy comprises IP address fields of IP addresses of M set-top boxes, a default version control strategy and an upgrading version control strategy for upgrading a new version;
wherein N and M are positive integers, and M is greater than N.
Preferably, the debugging or upgrading module comprises:
the debugging unit is used for acquiring an upgrading version control strategy for debugging and testing a new version from a prestored test configuration message when the matching is judged to be successful, and forwarding the request message added with the upgrading version control strategy to a corresponding downstream micro-service according to the upgrading version control strategy; or
And the upgrading unit is used for acquiring an upgrading version control strategy for upgrading a new version from a prestored upgrading configuration message when the matching is judged to be successful, and forwarding the request message added with the upgrading version control strategy to the corresponding downstream micro-service according to the upgrading version control strategy.
According to the version debugging and upgrading device provided by the embodiment of the invention, the device comprises: a processor, and a memory coupled to the processor; the memory is stored with a version debugging and upgrading program which can run on the processor, and the steps of the version debugging and upgrading method provided by the embodiment of the invention are realized when the version debugging and upgrading program is executed by the processor.
According to the computer storage medium provided by the embodiment of the invention, the storage medium stores a version debugging and upgrading program, and the version debugging and upgrading program is executed by a processor according to the steps of the version debugging and upgrading method provided by the embodiment of the invention.
According to the scheme provided by the embodiment of the invention, the user experience in the upgrading process is promoted, the upgrading risk is reduced, the simultaneous coexistence online debugging and management of multiple network elements and multiple versions of the multiple network elements are supported, and the seamless connection of new and old versions can be realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a method for version debugging and upgrading according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus for version debugging and upgrading according to an embodiment of the present invention;
FIG. 3 is a flowchart of an upgrade and debug scheme based on client information and version information according to an embodiment of the present invention;
fig. 4 is a flowchart of basic logic processing for implementing upgrade and debugging of a gateway layer according to an embodiment of the present invention;
FIG. 5 is a flow chart of the basic logic processing for upgrading and debugging each microservice implementation provided in the embodiment of the present invention;
fig. 6 is an exemplary diagram of a management page for displaying, upgrading and debugging a visualization portal according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 1 is a flowchart of a method for version debugging and upgrading according to an embodiment of the present invention, as shown in fig. 1, including:
step S101: the gateway micro-service receives a plurality of request messages containing the IP addresses of the set top box sent by a service upgrading network element;
step S102: the gateway micro-service filters and matches the set top box IP address in each request message according to the pre-stored IP address field, and judges whether the matching is successful;
step S103: and when the matching is judged to be successful, the gateway micro-service forwards the request message containing the upgrading version control strategy to the corresponding downstream micro-service according to the pre-configured upgrading version control strategy, so that the downstream micro-service continues to request the downstream micro-service according to the upgrading version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
The embodiment of the invention also comprises: when the matching is judged to be failed, the gateway micro-service forwards the request message containing the default version control strategy to the corresponding downstream default micro-service according to the default version control strategy configured in advance, so that the downstream default micro-service continues to request the downstream micro-service according to the default version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
After the gateway microservice receives a plurality of request messages containing the IP addresses of the set-top box sent by a service upgrading network element, the method further comprises the following steps: the gateway micro-service receives and stores a debugging configuration message of a debugging version strategy or an upgrading configuration message of an upgrading version strategy sent by a visual portal; the testing version strategy comprises IP address fields of IP addresses of N set top boxes, a default version control strategy and an upgrading version control strategy for testing a new version; the upgrading version strategy comprises IP address fields of IP addresses of M set-top boxes, a default version control strategy and an upgrading version control strategy for upgrading a new version; wherein N and M are positive integers, and M is greater than N.
Wherein, when the matching is judged to be successful, the gateway microservice forwarding the request message containing the upgrade version control policy to the corresponding downstream microservice according to the pre-configured upgrade version control policy comprises: when the matching is judged to be successful, the gateway micro-service acquires an upgrade version control strategy for debugging and testing a new version from pre-stored test configuration information, and forwards the request information added with the upgrade version control strategy to a corresponding downstream micro-service according to the upgrade version control strategy; or when the matching is judged to be successful, the gateway micro-service acquires an upgrade version control strategy for upgrading a new version from pre-stored upgrade configuration information, and forwards the request information added with the upgrade version control strategy to the corresponding downstream micro-service according to the upgrade version control strategy.
Fig. 2 is a schematic diagram of a version debugging and upgrading apparatus provided in an embodiment of the present invention, as shown in fig. 2, including: a receiving module 201, a judging module 202 and a debugging or upgrading module 203.
The receiving module 201 is configured to receive a request message that includes a plurality of set top box IP addresses and is sent by a service upgrade network element; the judging module 202 is configured to filter and match the set top box IP address in each request message according to a pre-stored IP address segment, and judge whether matching is successful; the debugging or upgrading module 203 is configured to forward the request message including the upgrade version control policy to the corresponding downstream microservice according to the pre-configured upgrade version control policy when the matching is determined to be successful, so that the downstream microservice continues to request the downstream microservice according to the upgrade version control policy in the request message when necessary, thereby implementing version debugging or version upgrading.
The debugging or upgrading module 203 further includes: and when the matching is judged to be failed, forwarding the request message containing the default version control strategy to the corresponding downstream default microservice according to the default version control strategy configured in advance, so that the downstream default microservice can continuously request the downstream microservice according to the default version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
The receiving module 201 is further configured to receive and store a debugging configuration message of the debugging version policy or an upgrade configuration message of the upgrade version policy sent by the visual portal; the testing version strategy comprises IP address fields of IP addresses of N set top boxes, a default version control strategy and an upgrading version control strategy for testing a new version; the upgrading version strategy comprises IP address fields of IP addresses of M set-top boxes, a default version control strategy and an upgrading version control strategy for upgrading a new version; wherein N and M are positive integers, and M is greater than N.
Wherein the debugging or upgrading module 203 comprises: the debugging unit is used for acquiring an upgrading version control strategy for debugging and testing a new version from a prestored test configuration message when the matching is judged to be successful, and forwarding the request message added with the upgrading version control strategy to a corresponding downstream micro-service according to the upgrading version control strategy; or the upgrading unit is used for acquiring an upgrading version control strategy for upgrading a new version from a prestored upgrading configuration message when the matching is judged to be successful, and forwarding the request message added with the upgrading version control strategy to the corresponding downstream micro-service according to the upgrading version control strategy.
The embodiment of the invention also provides equipment for version debugging and upgrading, which comprises: a processor, and a memory coupled to the processor; the memory is stored with a version debugging and upgrading program which can run on the processor, and the version debugging and upgrading program is executed by the processor according to the steps of the version debugging and upgrading method provided by the embodiment of the invention.
The embodiment of the invention also provides a computer storage medium, wherein the storage medium stores a program for version debugging and upgrading, and the program for version debugging and upgrading is executed by the processor according to the steps of the method for version debugging and upgrading provided by the embodiment of the invention.
The embodiment of the invention comprises two stages: a debugging stage and an upgrading stage.
In the debugging stage, when the visual portal is configured in the IP address field of the set-top box, only a small number of set-top box IP addresses are contained, so that debugging and testing can be conveniently carried out on each micro service version strategy of new online; in the upgrading stage, when the visual portal is configured in the set-top box IP address field, a large number of set-top box IP addresses are included, so that each newly online micro-service version strategy can be upgraded conveniently. Therefore, the management flexibility and the realization efficiency of user experience and version updating and upgrading are improved from various aspects, and the risk is effectively controllable.
The invention relates to a specific implementation case of business upgrading under an IPTV/OTT micro-service architecture, which relates to the modification and related requirements of network elements, gateway micro-services and other micro-service versions, and the specific implementation details are as follows:
firstly, a user-defined message header field is added into a request message of the gateway micro service related to service upgrade, and the value is the IP address of the set top box.
And secondly, after receiving a request related to a network element for service upgrading, the gateway micro-service performs filtering matching according to an IP address in a header field of the request message and a pre-configured IP address field, wherein the address field configuration supports dynamic modification and loading. And if the matching is successful, the gateway micro-service adds a custom field in a request message header for forwarding the request to other downstream micro-services, and the value is a pre-configured downstream version control strategy. And if the matching fails, the value of the added custom field is a default version control strategy configured in advance. Meanwhile, the gateway microservice also needs to forward the request route to the microservice of the downstream corresponding network element version according to the result of matching the IP address field.
Finally, when other downstream micro-services receive the request forwarded from the gateway micro-service or sent from other upstream micro-services, the request is sent to the micro-service of the corresponding network element version according to the downstream version control strategy contained in the self-defined field in the message header of the other downstream micro-services when the request needs to be continued.
The method realizes the purpose of adjusting and testing the directed user flow to the network element version under the corresponding micro service architecture according to the IP address of the set top box and the configured address field rule. Meanwhile, a plurality of versions of a certain micro service or a plurality of micro services can be simultaneously on-line by dynamically configuring a version control strategy, and a part of flow user requests are introduced to carry out basic testing. When the function to be tested passes or meets the basic release condition, the micro-service of the old version is gradually off-line according to the requirement, and the version test release on-line process without interruption, user service suspension and user perception is realized.
The embodiment of the invention can effectively avoid the complicated process of updating and releasing the version of the existing IPTV/OTT micro-service architecture, fundamentally solves the problems of reduced user experience, increased manpower maintenance test and the like caused by application restart, and also effectively avoids unknown risks brought by replacing the old version and peripheral network allocation operation under the traditional optimization. On the whole, the management flexibility and the implementation efficiency of user experience and version updating and upgrading are greatly improved from all aspects, and the risk is effectively controllable.
Fig. 3 is a flowchart of an upgrade and debugging scheme based on client information and version information according to an embodiment of the present invention, and as shown in fig. 3, the flowchart indicates main functions of each network element in performing service version upgrade debugging. An EPG network element (equivalent to a service upgrading network element in the application) sends a message request to a gateway (equivalent to a gateway micro service in the application), an IP address of a set top box is added into a self-defined message header field, the gateway carries out matching according to the field and an IP address field configured by the current visual portal, and a related downstream version control strategy configured on the visual portal is written into a message header of the request according to a matching result and is forwarded to a downstream micro service of a corresponding network element version. After receiving the request information from the gateway or the request information of other micro-services, the downstream micro-service sends the request to other micro-services according to the version control strategy in the message header of the downstream micro-service when the request needs to be continuously sent to other micro-services. The version policy is divided into an upgrade version control policy and a default version control policy. Generally, if the matching of the IP address field is successful, the request is sent according to the upgrade version control policy. And if not, sending the request according to the default version control strategy. For example, if the IP address is successfully matched, the upgrade version control policy may allocate the user traffic matched with the IP address to the 2.0 version of the microservice a; and if the user traffic is not matched, the default version strategy calls the unmatched user traffic to the 1.0 version of the microservice A. Thus version 2.0 of microservice a will have traffic to test. At this time, the 1.0 version and the 2.0 version of the microservice A are simultaneously on-line, even if the version 3.0 is available, the version can be on-line, and the corresponding strategy is configured to realize. The control management of the multi-network element and the multi-version coexistence online is embodied. If the test passes, the default version control policy can be configured to be the same as the upgraded version control policy, so that traffic will pass through version 2.0 of microservice a regardless of the matching result. At this time, the version upgrading of the micro service A is finished by taking the version 1.0 of the micro service off line. Other microservices are the same upgrade flow.
Fig. 4 is a basic logic processing flow chart for implementing upgrade and debugging in the gateway layer according to the embodiment of the present invention, as shown in fig. 4, the gateway first matches the IP address field of the set-top box in the EPG request message header, if the matching is successful, it indicates that the current user is a test user, and then controls the policy according to the upgrade version configured on the visual portal, and transmits the version control policy to the micro service at the back end through the message header; and if the matching fails, transmitting the data to the back-end micro service according to a default version control strategy.
Fig. 5 is a basic logic processing flow diagram for implementing upgrade and debugging of each micro-service provided in the embodiment of the present invention, and as shown in fig. 5, when a micro-service receives a gateway request message or other micro-service request messages, the micro-service will continue to send a request to a corresponding version of the micro-service when necessary according to a version control policy in a message header of the micro-service.
Fig. 6 is an exemplary view of a management page for displaying, upgrading and debugging a visual portal according to an embodiment of the present invention, and as shown in fig. 6, the exemplary view mainly includes configuration and query of an IP address field of a set top box, configuration and query of service version information, configuration and query of an upgrade version control policy, configuration and query of a default version control policy, query of a test state condition, and query of a historical version. The specific configuration and query need to be configured and realized by combining the conditions of a gateway layer and a micro-service version.
According to the scheme provided by the embodiment of the invention, the following beneficial effects are achieved:
1. in the message request sent by the network element to the gateway, the message header is added with a self-defined field, and the value of the field is the IP address of the set top box.
2. And the gateway micro-service performs filtering matching on the message from the network element involved in the upgrading according to the message header field and the configured IP address field, wherein the address field configuration supports dynamic modification and loading.
3. The gateway adds self-defined field in the request message head of the forwarding request to other micro-service, marks the downstream micro-service version information control strategy, and the value is determined by filtering and matching conditions according to the address field in the previous step. If the matching is successful, the version control strategy is each newly online micro service version strategy, and the strategy can be flexibly configured; if the matching fails, the value is a configured default downstream micro-service version control strategy, and the configuration can also be flexibly performed, wherein the default downstream micro-service version control strategy is the condition of information of each downstream micro-service version which normally runs in a system before the updating in general.
4. And when other downstream micro services receive the request message, continuously sending the request to the micro service of the corresponding version when needed according to the micro service version control strategy in the message header.
5. For contents such as IP address field management, version upgrading strategy and the like and processing logic, corresponding realization needs to be carried out on a gateway module, and specific code realization is adjusted according to project practice. But finally, contents such as IP address field information, version control strategies and the like are displayed to the operator through a visual portal, and the operator configures the contents according to needs, so that the operability is improved.
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.
Claims (10)
1. A method for version debugging and upgrading is characterized by comprising the following steps:
the gateway micro-service receives a plurality of request messages containing the IP addresses of the set top box sent by a service upgrading network element;
the gateway micro-service filters and matches the set top box IP address in each request message according to the pre-stored IP address field, and judges whether the matching is successful;
and when the matching is judged to be successful, the gateway micro-service forwards the request message containing the upgrading version control strategy to the corresponding downstream micro-service according to the pre-configured upgrading version control strategy, so that the downstream micro-service continues to request the downstream micro-service according to the upgrading version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
2. The method of claim 1, further comprising:
when the matching is judged to be failed, the gateway micro-service forwards the request message containing the default version control strategy to the corresponding downstream default micro-service according to the default version control strategy configured in advance, so that the downstream default micro-service continues to request the downstream micro-service according to the default version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
3. The method of claim 1 or 2, wherein after the gateway microserver receives a plurality of request messages containing IP addresses of the set-top box sent by a service upgrade network element, the method further comprises:
the gateway micro-service receives and stores a debugging configuration message of a debugging version strategy or an upgrading configuration message of an upgrading version strategy sent by a visual portal;
the testing version strategy comprises IP address fields of IP addresses of N set top boxes, a default version control strategy and an upgrading version control strategy for testing a new version; the upgrading version strategy comprises IP address fields of IP addresses of M set-top boxes, a default version control strategy and an upgrading version control strategy for upgrading a new version;
wherein N and M are positive integers, and M is greater than N.
4. The method of claim 3, wherein when the matching is determined to be successful, the gateway microservice forwarding the request message containing the upgraded version control policy to the corresponding downstream microservice according to the preconfigured upgraded version control policy comprises:
when the matching is judged to be successful, the gateway micro-service acquires an upgrade version control strategy for debugging and testing a new version from pre-stored test configuration information, and forwards the request information added with the upgrade version control strategy to a corresponding downstream micro-service according to the upgrade version control strategy; or
And when the matching is judged to be successful, the gateway micro-service acquires an upgrade version control strategy for upgrading the new version from the pre-stored upgrade configuration message, and forwards the request message added with the upgrade version control strategy to the corresponding downstream micro-service according to the upgrade version control strategy.
5. A version debugging and upgrading device is characterized by comprising:
the receiving module is used for receiving a request message which is sent by a service upgrading network element and contains a plurality of set top box IP addresses;
the judging module is used for filtering and matching the set top box IP address in each request message according to the prestored IP address field and judging whether the matching is successful;
and the debugging or upgrading module is used for forwarding the request message containing the upgrading version control strategy to the corresponding downstream micro-service according to the pre-configured upgrading version control strategy when the matching is judged to be successful, so that the downstream micro-service continuously requests the downstream micro-service according to the upgrading version control strategy in the request message when needed, and the version debugging or the version upgrading is realized.
6. The apparatus of claim 5, wherein the commissioning or upgrading module further comprises: and when the matching is judged to be failed, forwarding the request message containing the default version control strategy to the corresponding downstream default microservice according to the default version control strategy configured in advance, so that the downstream default microservice can continuously request the downstream microservice according to the default version control strategy in the request message when needed, and the version debugging or version upgrading is realized.
7. The apparatus according to claim 5 or 6, wherein the receiving module is further configured to receive and store a commissioning configuration message of the commissioning version policy or an upgrade configuration message of the upgrade version policy sent by the visualization portal;
the testing version strategy comprises IP address fields of IP addresses of N set top boxes, a default version control strategy and an upgrading version control strategy for testing a new version; the upgrading version strategy comprises IP address fields of IP addresses of M set-top boxes, a default version control strategy and an upgrading version control strategy for upgrading a new version;
wherein N and M are positive integers, and M is greater than N.
8. The apparatus of claim 7, wherein the commissioning or upgrading module comprises:
the debugging unit is used for acquiring an upgrading version control strategy for debugging and testing a new version from a prestored test configuration message when the matching is judged to be successful, and forwarding the request message added with the upgrading version control strategy to a corresponding downstream micro-service according to the upgrading version control strategy; or
And the upgrading unit is used for acquiring an upgrading version control strategy for upgrading a new version from a prestored upgrading configuration message when the matching is judged to be successful, and forwarding the request message added with the upgrading version control strategy to the corresponding downstream micro-service according to the upgrading version control strategy.
9. An apparatus for version profiling and upgrading, the apparatus comprising: a processor, and a memory coupled to the processor; the memory has stored thereon a version test and upgrade program executable on the processor, the version test and upgrade program, when executed by the processor, implementing the steps of the method of version test and upgrade as claimed in any one of claims 1 to 4.
10. A computer storage medium, characterized in that the storage medium stores a version test and upgrade program, which when executed by a processor implements the steps of the method of version test and upgrade as claimed in any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911375767.1A CN113055723A (en) | 2019-12-27 | 2019-12-27 | Version debugging and upgrading method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911375767.1A CN113055723A (en) | 2019-12-27 | 2019-12-27 | Version debugging and upgrading method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113055723A true CN113055723A (en) | 2021-06-29 |
Family
ID=76506169
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911375767.1A Withdrawn CN113055723A (en) | 2019-12-27 | 2019-12-27 | Version debugging and upgrading method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113055723A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113918209A (en) * | 2021-12-16 | 2022-01-11 | 深圳市明源云科技有限公司 | Method and device for generating upgrade list and readable storage medium |
CN115174543A (en) * | 2022-07-29 | 2022-10-11 | 中国工商银行股份有限公司 | Method and device for determining version update release time |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106257894A (en) * | 2016-08-29 | 2016-12-28 | 北京海誉动想科技股份有限公司 | Gray scale dissemination method based on micro services |
CN107172460A (en) * | 2017-06-16 | 2017-09-15 | 深圳市云联志远网络科技有限公司 | Network television upgrade method, device and computer-readable recording medium |
CN107360010A (en) * | 2016-05-09 | 2017-11-17 | 阿里巴巴集团控股有限公司 | A kind of website gray scale dissemination method and device |
CN107465944A (en) * | 2017-08-31 | 2017-12-12 | 江苏省公用信息有限公司 | The gray scale delivery system and method for a kind of IPTV Content Management |
CN107872334A (en) * | 2016-09-23 | 2018-04-03 | 中兴通讯股份有限公司 | The method and device that gray scale upgrades in a kind of micro services architecture system |
CN108513144A (en) * | 2018-03-12 | 2018-09-07 | 四川合智聚云科技有限公司 | A kind of EPG gray scales dissemination method and its system based on IPTV |
CN108848092A (en) * | 2018-06-20 | 2018-11-20 | 中国联合网络通信集团有限公司 | The processing method and processing device of micro services gray scale publication based on call chain |
-
2019
- 2019-12-27 CN CN201911375767.1A patent/CN113055723A/en not_active Withdrawn
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360010A (en) * | 2016-05-09 | 2017-11-17 | 阿里巴巴集团控股有限公司 | A kind of website gray scale dissemination method and device |
CN106257894A (en) * | 2016-08-29 | 2016-12-28 | 北京海誉动想科技股份有限公司 | Gray scale dissemination method based on micro services |
CN107872334A (en) * | 2016-09-23 | 2018-04-03 | 中兴通讯股份有限公司 | The method and device that gray scale upgrades in a kind of micro services architecture system |
CN107172460A (en) * | 2017-06-16 | 2017-09-15 | 深圳市云联志远网络科技有限公司 | Network television upgrade method, device and computer-readable recording medium |
CN107465944A (en) * | 2017-08-31 | 2017-12-12 | 江苏省公用信息有限公司 | The gray scale delivery system and method for a kind of IPTV Content Management |
CN108513144A (en) * | 2018-03-12 | 2018-09-07 | 四川合智聚云科技有限公司 | A kind of EPG gray scales dissemination method and its system based on IPTV |
CN108848092A (en) * | 2018-06-20 | 2018-11-20 | 中国联合网络通信集团有限公司 | The processing method and processing device of micro services gray scale publication based on call chain |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113918209A (en) * | 2021-12-16 | 2022-01-11 | 深圳市明源云科技有限公司 | Method and device for generating upgrade list and readable storage medium |
CN115174543A (en) * | 2022-07-29 | 2022-10-11 | 中国工商银行股份有限公司 | Method and device for determining version update release time |
CN115174543B (en) * | 2022-07-29 | 2024-01-30 | 中国工商银行股份有限公司 | Version update release time determining method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8224936B2 (en) | Configuration file override | |
CN101577901B (en) | Wireless access platform and equipment upgrading management system and method thereof | |
CN105450455A (en) | System and method for automatically upgrading network devices in batch in factory | |
CN101635643B (en) | Method and system for changing terminal service and network management platform | |
US20140282487A1 (en) | Software update for a wireless communication device | |
CN103095783B (en) | A kind of method and device debugging Web application | |
CN111327640A (en) | Method for setting IPv6 for Pod in Kubernetes | |
CN107357571B (en) | Maintenance method and system for equipment component program | |
CN102215479B (en) | AKU is downloaded and method, server and the system of installation | |
CN103200271B (en) | The method of ARM server and automation installation system thereof | |
CN106911502A (en) | A kind of upgrade method and system of intelligent home gateway equipment | |
CN113055723A (en) | Version debugging and upgrading method, device, equipment and storage medium | |
EP2907024A1 (en) | Solution for distributed application life-cycle management | |
US9819545B2 (en) | Telecommunications node configuration management | |
US9871699B2 (en) | Telecommunications node configuration management | |
CN113556727A (en) | Data transmission method and system of cloud equipment based on mobile container | |
US11303506B2 (en) | Method, remote device and computer-readable medium for reselecting principal core device | |
CN104793998A (en) | Terminal system resource management method and device | |
US11979288B2 (en) | Systems and methods for zero touch provisioning (ZTP) over trunk/LACP ports | |
WO2007054007A1 (en) | a METHOD AND SYSTEM FOR IMPLEMENTING SERVICE DATA CONFIGURATION | |
US9612822B2 (en) | Telecommunications node configuration management | |
CN111769966B (en) | Clone upgrading method, system and application | |
CN108984191A (en) | A kind of method, apparatus and electronic equipment of application update | |
CN108521452B (en) | Method and system for intelligently upgrading service version | |
JP2003223387A (en) | Program download system, broadcasting communication fusion terminal and program download method |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210629 |