CN113691583A - Blue-green deployment-based multimedia service system and method - Google Patents

Blue-green deployment-based multimedia service system and method Download PDF

Info

Publication number
CN113691583A
CN113691583A CN202110800318.8A CN202110800318A CN113691583A CN 113691583 A CN113691583 A CN 113691583A CN 202110800318 A CN202110800318 A CN 202110800318A CN 113691583 A CN113691583 A CN 113691583A
Authority
CN
China
Prior art keywords
service
load
blue
green
information
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.)
Pending
Application number
CN202110800318.8A
Other languages
Chinese (zh)
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.)
Shanghai Pudong Development Bank Co Ltd
Original Assignee
Shanghai Pudong Development Bank 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 Shanghai Pudong Development Bank Co Ltd filed Critical Shanghai Pudong Development Bank Co Ltd
Priority to CN202110800318.8A priority Critical patent/CN113691583A/en
Publication of CN113691583A publication Critical patent/CN113691583A/en
Pending legal-status Critical Current

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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • 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
    • 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

Abstract

The invention relates to a multimedia service system and a method based on blue-green deployment, comprising the following steps: the blue version deployment module: deploying distributed service nodes providing different service interfaces; the green version deployment module: deploying service nodes which correspond to the service nodes in the blue version deployment module one by one; a service management module: the load balancing control system is used for receiving the service registration information, the service offline information and the load information of the service node, carrying out load balancing control based on the service request of the calling party and guiding the service request to the low-load service node. Compared with the prior art, the method and the device can realize a more accurate load balancing strategy, reduce the transfer path of the file and reduce the load of the network.

Description

Blue-green deployment-based multimedia service system and method
Technical Field
The invention relates to the technical field of multimedia data transmission, in particular to a multimedia service system and method based on blue-green deployment.
Background
In the existing multimedia data transmission server, when a calling party needs to upload/download a file, a fixed IP address/domain name is used for directly connecting a load balancing server of the multimedia data transmission server, the load balancing server distributes the flow, and then the flow is processed by a specific file server.
In the existing technical scheme of the multimedia data transmission server, under the condition of high concurrency, a server needs a plurality of load balancing servers, and one load balancing server is selected by a client to process. The loads of the load balancing nodes are randomly extracted by the calling party, network resources of all the load balancing nodes cannot be effectively utilized, all traffic transmitted by the file passes through the load balancing nodes first and then reaches specific service nodes, and the network load is increased.
When the multimedia data transmission server performs function upgrading, all the servers are upgraded in sequence when the multimedia data transmission server performs system upgrading, and after all the servers are upgraded, the calling party can upgrade and use the latest functions. The load balancing server cannot effectively dye the requests, cannot perform overall test after part of the servers are upgraded, can perform overall test only after all the server nodes are upgraded, can affect all current requests if an upgrade program has errors, and cannot test new functions without affecting the original functions.
Disclosure of Invention
The present invention aims to overcome the defects of the prior art and provide a multimedia service system and method based on blue-green deployment.
The purpose of the invention can be realized by the following technical scheme:
a multimedia service system based on a blue-green deployment, comprising:
the blue version deployment module: deploying distributed service nodes providing different service interfaces;
the green version deployment module: deploying service nodes which correspond to the service nodes in the blue version deployment module one by one;
a service management module: the load balancing control system is used for receiving the service registration information, the service offline information and the load information of the service node, carrying out load balancing control based on the service request of the calling party and guiding the service request to the low-load service node.
Preferably, the service administration module comprises:
a common mode service governance submodule: the system is used for carrying out uniform load balancing control when the versions of the service nodes in the blue version deployment module and the green version deployment module are the same;
a differentiated mode service treatment submodule: the method is used for independently controlling load balance of the environment when the versions of the service nodes in the blue version deployment module and the green version deployment module are different when the blue and green are released.
Preferably, the system further comprises a broadcasting module for broadcasting information between each service node and the service administration module.
Preferably, the broadcasting module comprises a Rabbit-MQ server.
A blue-green deployment based multimedia service method based on the multimedia service system, the method comprising:
the service management module acquires service registration information, service offline information and load information of each service node and updates the service registration information, the service offline information and the load information at regular time;
after the service management module receives a service request of a calling party, service nodes capable of providing corresponding service interfaces are screened as recommended service nodes based on service content, service registration information and service offline information in the service request, the load of the recommended service nodes is calculated based on load information, the recommended service nodes are pushed to the service party according to the load sequence from low to high, and the service request is guided to low-load service nodes.
Preferably, when the version is upgraded, the service of the blue-green party is upgraded, the upgraded service node automatically notifies the service administration module of the function of the current service node, the service administration module automatically switches to the differentiated processing mode after discovering the version difference, independent load balancing control is performed on the blue-green party and the blue-green party aiming at the condition that the service node does not pass through the environment, after the upgraded service node is tested, the service of the other party is upgraded, and after the upgrade module discovers that the versions of the two parties are consistent, the service administration module switches back to the common processing mode, and uniform load balancing control is performed on the blue-green party and the blue-green party.
Preferably, the service registration information, the service offline information and the load information are sent to the service administration module by each service node in a broadcast manner.
Preferably, the broadcasting mode comprises a Rabbit-MQ broadcasting mode.
Preferably, in the differentiated processing mode, if the service request of the caller is a new service function or the caller is in the test white list, the service request of the caller is distributed to the upgraded service node according to the load balancing policy, and if the service request of the caller is an original service function and the caller is not in the test white list, the service request of the caller is distributed to the non-upgraded service node according to the load balancing policy.
Preferably, when the load size is calculated, the load elements in the load information are subjected to weighted summation to calculate the load size of the recommended service node, when independent load balancing control is performed, the weights of the load elements of the blue-green two parties under different environments are independently set, and when unified load balancing control is performed, the weights of the load elements of the blue-green two parties are consistent.
Compared with the prior art, the invention has the following advantages:
(1) the invention is provided with the service management module, the service management module acquires the load condition of each service node in real time, controls the request path of the calling party, realizes a more accurate load balancing strategy according to the actual condition of each service node, reduces the transfer path of the file and reduces the load of the network.
(2) The service management module supports a common processing mode and a differential processing mode, accurately distinguishes the test request and the formal request when the blue-green is issued by controlling the request path of a calling party, accurately sends the test request to the test node (the upgraded service node), and sends the normal request to the normal node (the service node which is not upgraded).
Drawings
Fig. 1 is a schematic diagram of a multimedia service system based on blue-green deployment for performing multimedia transmission service according to the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. Note that the following description of the embodiments is merely a substantial example, and the present invention is not intended to be limited to the application or the use thereof, and is not limited to the following embodiments.
Examples
The embodiment provides a blue-green deployment-based multimedia service system, which includes:
the blue version deployment module: deploying distributed service nodes providing different service interfaces;
the green version deployment module: deploying service nodes which correspond to the service nodes in the blue version deployment module one by one;
a service management module: the load balancing control system is used for receiving the service registration information, the service offline information and the load information of the service node, carrying out load balancing control based on the service request of the calling party and guiding the service request to the low-load service node.
The service governance module comprises:
a common mode service governance submodule: the system is used for carrying out uniform load balancing control when the versions of the service nodes in the blue version deployment module and the green version deployment module are the same;
a differentiated mode service treatment submodule: the method is used for independently controlling load balance of the environment when the versions of the service nodes in the blue version deployment module and the green version deployment module are different when the blue and green are released.
The system also comprises a broadcasting module used for broadcasting information between each service node and the service administration module, wherein the broadcasting module comprises a Rabbit-MQ server.
As shown in fig. 1, both sides of the blue and green respectively deploy n service nodes providing image management services, including an image management service node 1 to an image management service node n, n service nodes providing video management services, including a video management service node 1 to a video management service node n, and n service nodes providing document management services, including a document management service node 1 to a document management service node n, and receive service registration information, service offline information, and load information broadcasted by each service node through a service administration module to administer the service, and recommend the corresponding service node to the caller for the caller to directly call the service interface of the corresponding service node.
Based on the foregoing multimedia service system deployed based on blue-green, the present embodiment further provides a multimedia service method, where the method is based on the multimedia service system, and the method includes:
the service management module acquires service registration information, service offline information and load information of each service node and updates the service registration information, the service offline information and the load information at regular time;
after the service management module receives a service request of a calling party, service nodes capable of providing corresponding service interfaces are screened as recommended service nodes based on service content, service registration information and service offline information in the service request, the load of the recommended service nodes is calculated based on load information, the recommended service nodes are pushed to the service party according to the load sequence from low to high, and the service request is guided to low-load service nodes.
When the version is upgraded, the service of the blue-green party is upgraded, the upgraded service node automatically informs the service management module of the function of the current service node, the service management module automatically switches to a differentiated processing mode after discovering the version difference, independent load balancing control is carried out on the blue-green party and the blue-green party aiming at the condition that the service node does not pass through the environment, the service of the other party is upgraded after the upgraded service node is tested, and the service management module switches back to a common processing mode after discovering that the versions of the two parties are consistent after the upgrade, and unified load balancing control is carried out on the blue-green party and the blue-green party.
And the service registration information, the service offline information and the load information are sent to the service management module by each service node in a broadcasting mode.
The broadcasting mode comprises a Rabbit-MQ broadcasting mode.
In the differential processing mode, if the service request of the calling party is a new service function or the calling party is in the test white list, the service request of the calling party is distributed to the upgraded service node according to the load balancing strategy, and if the service request of the calling party is the original service function and the calling party is not in the test white list, the service request of the calling party is distributed to the service node which is not upgraded according to the load balancing strategy.
When the load size is calculated, the load elements in the load information are subjected to weighted summation to calculate the load size of the recommended service node, when independent load balancing control is carried out, the weights of the load elements of the blue-green two parties under different environments are independently set, and when unified load balancing control is carried out, the weights of the load elements of the blue-green two parties are consistent.
In the invention, a calling party needs to request a service management module before uploading/downloading files, the service management module can return all supported interfaces and corresponding calling address lists, the address lists are sorted according to the current load condition, the calling party only needs to take the first address in sequence for calling, and the calling party directly connects service nodes for file transmission, so that the transfer path of the files is reduced, and the load of a network is reduced.
In the invention, when the version is upgraded, the blue-green party service is upgraded, the upgraded service can automatically inform the service management module of the function of the current node, the service management module can be automatically switched into a differentiation processing mode after discovering the version difference, newly add the functions and test the systems in the white list, the flow is switched to the upgraded service node, the flow of other systems is completely switched to the nodes which are not upgraded, after the new node is tested, the service of the other party is upgraded, after the upgrade, the service management module switches back to a common processing mode after discovering that the versions of the two parties are consistent, and the distribution management is carried out according to the load balance condition.
The invention comprises two parts of a load balancing strategy and a blue-green issuing strategy based on service management. And finding a service node according to the distribution result of service management when the calling party uploads/downloads the file, and performing actual file processing.
1) Load balancing strategy based on service management
In the invention, after the multimedia data management service node is started, the functions supported by the service are automatically discovered, the registration message is generated, the self functions are broadcast and sent to the service management module through the MQ, the probe is added, and the self load of the node is reported to the service management module. The service management module collects the information of all nodes in real time, sorts the nodes according to the sequence from low to high, returns the information sorted in real time when the service management interface is called externally, and the calling party finds the information of the interface to be called actually from the address list and carries out file operation. The content of each partial completion is as follows:
after the multimedia data management service is started, all interface functions supported by the service are found by scanning the specified annotation, information such as key words and compatible versions of the interfaces are obtained, registration messages are generated, and the registration messages are broadcasted to the service management module through MQ; the registration message is periodically retransmitted, and the service management nodes started after the retransmission can be ensured to correctly manage all services.
After the multimedia data management service is started, adding a probe, monitoring information such as network occupation, processor occupation and the like of a node in real time, generating a monitoring message, and broadcasting the monitoring message to a service management module through MQ;
before the multimedia data management service is offline, a service offline message is generated firstly and is sent to the service management module through MQ broadcast, and normal service is still provided within 30 seconds after the service offline message is sent, so that the incomplete request can be ensured to be correctly executed and completed;
after the service management module is started, the MQ broadcast messages are received in real time, the current surviving nodes are managed, the load of all the nodes is calculated in real time according to the load condition, and the optimal sequence is given;
2) blue-green publishing strategy
In the invention, the service management module has two working modes, namely a common mode, the versions of the blue and green parties are the same, the same service is provided, and the weight is calculated according to the consistency of the blue and green. The other is a differentiated processing mode, when the versions of the blue-green party and the blue-green party are not consistent, the load balance of each node of the two environments is independently calculated, and when an external request service management interface is used, the service distribution strategy is as follows: and newly adding functions and testing systems in the white list, requesting to be distributed to nodes of the new version according to a load strategy, and distributing the original functions and the systems not in the white list to the old version according to the load strategy.
The above embodiments are merely examples and do not limit the scope of the present invention. These embodiments may be implemented in other various manners, and various omissions, substitutions, and changes may be made without departing from the technical spirit of the present invention.

Claims (10)

1. A blue-green deployment based multimedia service system, comprising:
the blue version deployment module: deploying distributed service nodes providing different service interfaces;
the green version deployment module: deploying service nodes which correspond to the service nodes in the blue version deployment module one by one;
a service management module: the load balancing control system is used for receiving the service registration information, the service offline information and the load information of the service node, carrying out load balancing control based on the service request of the calling party and guiding the service request to the low-load service node.
2. The blue-green deployment based multimedia service system according to claim 1, wherein said service administration module comprises:
a common mode service governance submodule: the system is used for carrying out uniform load balancing control when the versions of the service nodes in the blue version deployment module and the green version deployment module are the same;
a differentiated mode service treatment submodule: the method is used for independently controlling load balance of the environment when the versions of the service nodes in the blue version deployment module and the green version deployment module are different when the blue and green are released.
3. The bluegreen deployment-based multimedia service system of claim 1, further comprising a broadcasting module for broadcasting information between each service node and the service administration module.
4. The bluegreen deployment-based multimedia service system of claim 3, wherein the broadcast module comprises a Rabbit-MQ server.
5. A multimedia service method based on blue-green deployment, characterized in that the method is based on the multimedia service system of any one of claims 1-4, the method comprises:
the service management module acquires service registration information, service offline information and load information of each service node and updates the service registration information, the service offline information and the load information at regular time;
after the service management module receives a service request of a calling party, service nodes capable of providing corresponding service interfaces are screened as recommended service nodes based on service content, service registration information and service offline information in the service request, the load of the recommended service nodes is calculated based on load information, the recommended service nodes are pushed to the service party according to the load sequence from low to high, and the service request is guided to low-load service nodes.
6. The multimedia service method based on blue-green deployment according to claim 5, characterized in that, when upgrading versions, the service of the blue-green party is upgraded first, the upgraded service node automatically notifies the service administration module of the function of the current service node, the service administration module automatically switches to the differentiated processing mode after discovering the version difference, performs independent load balancing control on the blue-green party and the blue-green party without passing through the environment, upgrades the service of the other party after the upgraded service node is tested, and switches back to the normal processing mode after the upgraded service administration module discovers that the versions of the two parties are consistent, and performs uniform load balancing control on the blue-green party and the blue-green party.
7. The bluish green deployment-based multimedia service method of claim 5, wherein the service registration information, the service offline information, and the load information are sent by each service node to the service administration module by broadcast.
8. The method of claim 7, wherein the broadcast means comprises a Rabbit-MQ broadcast means.
9. The method of claim 6, wherein in a differentiated processing mode, if the service request of the caller is a new service function or the caller is in a test white list, the service request of the caller is distributed to the upgraded service node according to a load balancing policy, and if the service request of the caller is an original service function and the caller is not in the test white list, the service request of the caller is distributed to the non-upgraded service node according to the load balancing policy.
10. The method of claim 6, wherein when calculating the load size, the load elements in the load information are weighted and summed to calculate the load size of the recommended service node, when performing independent load balancing control, the weights of the load elements in different environments of the blue and green parties are set independently, and when performing unified load balancing control, the weights of the load elements of the blue and green parties are consistent.
CN202110800318.8A 2021-07-15 2021-07-15 Blue-green deployment-based multimedia service system and method Pending CN113691583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110800318.8A CN113691583A (en) 2021-07-15 2021-07-15 Blue-green deployment-based multimedia service system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110800318.8A CN113691583A (en) 2021-07-15 2021-07-15 Blue-green deployment-based multimedia service system and method

Publications (1)

Publication Number Publication Date
CN113691583A true CN113691583A (en) 2021-11-23

Family

ID=78577097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110800318.8A Pending CN113691583A (en) 2021-07-15 2021-07-15 Blue-green deployment-based multimedia service system and method

Country Status (1)

Country Link
CN (1) CN113691583A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114490419A (en) * 2022-02-16 2022-05-13 湖南智擎科技有限公司 Cross-cloud testing method and system of heterogeneous architecture and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453125A (en) * 2016-11-04 2017-02-22 中国电子科技集团公司第二十八研究所 Load balancing system for remote service calling based on real-time load rate
CN110032393A (en) * 2019-04-18 2019-07-19 恒生电子股份有限公司 A kind of micro services dissemination method, device, equipment and medium
CN110471683A (en) * 2019-08-06 2019-11-19 上海浦东发展银行股份有限公司信用卡中心 A kind of bluish-green dissemination method of container cloud application based on intelligent DNS
CN112073240A (en) * 2020-09-04 2020-12-11 上海浦东发展银行股份有限公司 Blue-green deployment system and method based on registration center component and storage medium
US20210176167A1 (en) * 2019-12-05 2021-06-10 Citrix Systems, Inc. System and method for canary deployment using dns srv records

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453125A (en) * 2016-11-04 2017-02-22 中国电子科技集团公司第二十八研究所 Load balancing system for remote service calling based on real-time load rate
CN110032393A (en) * 2019-04-18 2019-07-19 恒生电子股份有限公司 A kind of micro services dissemination method, device, equipment and medium
CN110471683A (en) * 2019-08-06 2019-11-19 上海浦东发展银行股份有限公司信用卡中心 A kind of bluish-green dissemination method of container cloud application based on intelligent DNS
US20210176167A1 (en) * 2019-12-05 2021-06-10 Citrix Systems, Inc. System and method for canary deployment using dns srv records
CN112073240A (en) * 2020-09-04 2020-12-11 上海浦东发展银行股份有限公司 Blue-green deployment system and method based on registration center component and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114490419A (en) * 2022-02-16 2022-05-13 湖南智擎科技有限公司 Cross-cloud testing method and system of heterogeneous architecture and computer equipment
CN114490419B (en) * 2022-02-16 2024-02-13 湖南智擎科技有限公司 Heterogeneous architecture cross-cloud testing method, system and computer equipment

Similar Documents

Publication Publication Date Title
CN111600930B (en) Micro-service request traffic management method, device, server and storage medium
US8001555B2 (en) Method and apparatus for operating an open API network having a proxy
US7356577B2 (en) System and method for providing an online software upgrade in load sharing servers
US20040006586A1 (en) Distributed server software distribution
EP2404405A1 (en) Managing network elements
CN113055421A (en) Service grid management method and system
US20220326940A1 (en) Service Upgrade Method, Apparatus, and System
US20210281485A1 (en) Methods and systems for service policy orchestration in a communication network
US7463610B2 (en) System and method for providing an online software upgrade
CN112073247A (en) Block chain network deployment method, device, computer system and medium
CN114036236A (en) Multi-gateway cluster system
CN111770122A (en) Service communication agent SCP registration method, service calling method and network equipment
CN112732456A (en) Micro-service calling method and device, electronic equipment and storage medium
CN113691583A (en) Blue-green deployment-based multimedia service system and method
CN101227335A (en) Method for upgrading software version of network cell device
CN111371615A (en) Online server, updating method and system of operation and maintenance tool and readable storage medium
CN115314571A (en) Cloud protocol gateway implementation method and system supporting heterogeneous device access
CN106815053A (en) A kind of data-updating method, device, data call end and data update system
US20230102122A1 (en) Methods, systems, and computer readable media for identifying alternate delivery endpoints for mobile originated data and monitoring reports in a communications network
CN110995890B (en) Domain name request scheduling method and device
US20050182763A1 (en) Apparatus and method for on-line upgrade using proxy objects in server nodes
US8526940B1 (en) Centralized rules repository for smart phone customer care
US9531836B2 (en) Distributing an application via a network node
KR102207786B1 (en) User plane function and method for identifying application using the same
CN101394426B (en) Internet service processing method and system based on network television

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