CN110324184B - Service capacity expansion and migration method, device, system, equipment and readable storage medium - Google Patents

Service capacity expansion and migration method, device, system, equipment and readable storage medium Download PDF

Info

Publication number
CN110324184B
CN110324184B CN201910564558.5A CN201910564558A CN110324184B CN 110324184 B CN110324184 B CN 110324184B CN 201910564558 A CN201910564558 A CN 201910564558A CN 110324184 B CN110324184 B CN 110324184B
Authority
CN
China
Prior art keywords
service
service registration
task
message queue
registration 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.)
Active
Application number
CN201910564558.5A
Other languages
Chinese (zh)
Other versions
CN110324184A (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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910564558.5A priority Critical patent/CN110324184B/en
Publication of CN110324184A publication Critical patent/CN110324184A/en
Priority to PCT/CN2020/097436 priority patent/WO2020259438A1/en
Application granted granted Critical
Publication of CN110324184B publication Critical patent/CN110324184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a service expansion and migration method, which is applied to a service management platform and relates to the field of financial science and technology, and comprises the following steps: when receiving a service registration request, acquiring service registration information corresponding to the service registration request and registering; determining the task type of the task corresponding to the service registration request according to the service registration information; if the task corresponding to the service registration request is an expansion task, creating a first message queue in a preset message middleware according to service registration information; and if the task corresponding to the service registration request is a migration task, creating a second message queue in the preset message middleware according to the service registration information, and adjusting the authority of the created target message queue in the preset message middleware according to the service registration information. The invention also discloses a device, a system, equipment and a readable storage medium for service capacity expansion and migration. The service capacity expansion and migration process of the invention has no influence on the on-line service, and the service availability is improved.

Description

Service capacity expansion and migration method, device, system, equipment and readable storage medium
Technical Field
The invention relates to the technical field of financial technology (Fintech), in particular to a service capacity expansion and migration method, a device, a system, equipment and a readable storage medium.
Background
In recent years, with the rapid development of internet technologies, especially internet financial technology (Fintech), more and more technologies (big data, distributed, Blockchain, artificial intelligence, etc.) are applied in the financial field.
Financial data also grows in a geometric level, and large commercial bank behavior examples generally comprise mass data of hundreds of business systems and hundreds of millions of users, and under the condition, services corresponding to the business systems are integrated through a distributed system; in a distributed system, the cluster scale can be continuously adjusted along with the increase of services, the situation that a certain node is on-line and off-line frequently occurs in a node in a cluster, when the node in the cluster is adjusted, operation and maintenance personnel need to manually modify a routing strategy and configure adjustment information into the routing strategy, and traffic can enter the on-line cluster.
Disclosure of Invention
The invention mainly aims to provide a service capacity expansion and migration method, a device, a system, equipment and a readable storage medium, and aims to solve the technical problems that operation and maintenance personnel are complex to operate and easily cause on-line service response timeout or even no response when the current service capacity expansion and migration are carried out.
In order to achieve the above object, the present invention provides a service expansion and migration method, including the following steps:
the service capacity expansion and migration method is applied to a service management platform, the service management platform is in communication connection with a preset message middleware, and the method comprises the following steps:
when a service registration request is received, acquiring service registration information corresponding to the service registration request and registering;
determining the task type of the task corresponding to the service registration request according to the service registration information;
if the task corresponding to the service registration request is an expansion task, creating a first message queue in a preset message middleware according to the service registration information;
and if the task corresponding to the service registration request is a migration task, creating a second message queue in a preset message middleware according to the service registration information, determining a target message queue to be offline according to the service registration information, and modifying the authority of the target message queue.
Optionally, the step of determining a task type of a task corresponding to the service registration request according to the service registration information includes:
judging whether a target service IP address to be offline exists in the service registration information;
if the service registration information does not have a target service IP address to be offline, judging that the task corresponding to the service registration request is a capacity expansion task;
and if the service registration information contains the target service IP address to be offline, judging that the task corresponding to the service registration request is a migration task.
Optionally, if the task corresponding to the service registration request is a capacity expansion task, the step of creating a first message queue in a preset message middleware according to the service registration information includes:
and if the task corresponding to the service registration request is an expansion task, creating a first message queue corresponding to the service registration information in preset message middleware, and setting the first message queue as a read-write permission.
Optionally, if the task corresponding to the service registration request is a migration task, the step of creating a second message queue in a preset message middleware according to the service registration information includes:
if the task corresponding to the service registration request is a migration task, creating a second message queue corresponding to the service registration information in a preset message middleware, and setting the second message queue as a read-only permission;
and modifying the second message queue with read-only permission into read-write permission when detecting that the second message queue is monitored by an application instance.
Optionally, the step of determining a target message queue to be offline according to the service registration information and modifying the authority of the target message queue includes:
acquiring a target service IP address to be offline in the service registration information, and determining a target message queue corresponding to the target service IP address in the preset message middleware;
and modifying the permission of the target message queue to be invisible to the application of the read-only permission, and downloading the service response cluster corresponding to the target service IP address.
In addition, to achieve the above object, the present invention further provides a service expansion and migration apparatus, including:
the request receiving module is used for acquiring and registering service registration information corresponding to a service registration request when the service registration request is received;
the task determining module is used for determining the task type of the task corresponding to the service registration request according to the service registration information;
a first creating module, configured to create a first message queue in a preset message middleware according to the service registration information if a task corresponding to the service registration request is a capacity expansion task;
and the second creating module is used for creating a second message queue in a preset message middleware according to the service registration information if the task corresponding to the service registration request is a migration task, determining a target message queue to be offline according to the service registration information, and modifying the authority of the target message queue.
Optionally, the task determination module includes:
the address judging unit is used for judging whether a target service IP address to be offline exists in the service registration information;
a first determination unit, configured to determine that a task corresponding to the service registration request is an expansion task if a target service IP address to be offline does not exist in the service registration information;
and the second judging unit is used for judging that the task corresponding to the service registration request is a migration task if the target service IP address to be offline exists in the service registration information.
Optionally, the first creating module is further configured to:
and if the task corresponding to the service registration request is an expansion task, creating a first message queue corresponding to the service registration information in preset message middleware, and setting the first message queue as a read-write permission.
Optionally, the second creating module includes:
the creating and setting unit is used for creating a second message queue corresponding to the service registration information in a preset message middleware and setting the second message queue as a read-only permission if the task corresponding to the service registration request is a migration task;
and the permission modification unit is used for modifying the second message queue of the read-only permission into the read-write permission when detecting that the second message queue is monitored by an application example.
Optionally, the second creating module includes:
a queue determining unit, configured to obtain a target service IP address to be offline in the service registration information, and determine a target message queue corresponding to the target service IP address in the preset message middleware;
and the queue offline unit is used for modifying the permission of the target message queue into the read-only permission which is invisible to the application, and offline the service response cluster corresponding to the target service IP address.
In addition, in order to achieve the above object, the present invention further provides a service expansion and migration system, where the service expansion and migration system includes a service management platform, a preset message middleware, and a service response subsystem, which are in communication connection; the service capacity expansion and migration system comprises:
when receiving a service registration request, a service management platform acquires and registers service registration information corresponding to the service registration request;
the service management platform determines the task type of the task corresponding to the service registration request according to the service registration information;
if the task corresponding to the service registration request is a capacity expansion task, the service management platform creates a first message queue in preset message middleware according to the service registration information
The service response subsystem starts an application instance to monitor the first message queue and processes a service request in the first message queue;
if the task corresponding to the service registration request is a migration task, the service management platform creates a second message queue in a preset message middleware according to the service registration information;
the service response subsystem starts an application instance to monitor the second message queue and processes the service request in the second message queue;
and the service management platform determines a target message queue to be offline according to the service registration information and modifies the authority of the target message queue.
In addition, to achieve the above object, the present invention further provides a service expansion and migration device, where the service expansion and migration device includes: the system comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the computer program corresponding to service expansion and migration realizes the steps of the service expansion and migration method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, where a computer program corresponding to service expansion and migration is stored, and when executed by a processor, the computer program corresponding to service expansion and migration implements the steps of the service expansion and migration method described above.
The embodiment of the invention relates to a service capacity expansion and migration method, a device, a system, equipment and a readable storage medium, which are applied to a service management platform, wherein the service management platform is in communication connection with a preset message middleware; the flow switching strategy related to the service request does not need human intervention, the operation complexity of operation and maintenance personnel and the cost and risk of operation and maintenance are reduced, and the service availability is improved.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a service expansion and migration method according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating a specific scenario of a first embodiment of a service expansion and migration method according to the present invention;
fig. 4 is a functional module diagram of an embodiment of a service expansion and migration apparatus according to 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
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The service capacity expansion and migration equipment of the embodiment of the invention can be a PC (personal computer) or server equipment, and a Java virtual machine runs on the equipment.
As shown in fig. 1, the service expansion and migration apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a computer program that service expansion and migration correspond.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; the processor 1001 may be configured to call a computer program corresponding to service expansion and migration stored in the memory 1005, and execute operations in the service expansion and migration method described below.
Based on the above hardware structure, an embodiment of the service expansion and migration method of the present invention is provided.
Referring to fig. 2, fig. 2 is a schematic flowchart of a service expansion and migration method according to a first embodiment of the present invention, where the method includes:
step S10, when receiving the service registration request, acquires and registers service registration information corresponding to the service registration request.
The service expansion and migration method in this embodiment is applied to a service management platform, the service management platform is disposed in a service expansion and migration device, the service management platform receives a service registration request, a triggering manner of the service registration request is not specifically limited, that is, the service registration request may be actively triggered, for example, a financial institution operation and maintenance worker finds that a service request number in a xxx region is large, a pressure of an existing service response cluster is large, the financial institution operation and maintenance worker determines to add a service response cluster in the xxx region, and the financial institution operation and maintenance worker inputs a manual service registration triggering request of "service expansion registration or service migration registration" to register new service registration information on the service management platform, thereby implementing service expansion; in addition, the service registration request may also be triggered automatically, for example, when the service management platform detects that the service response cluster a cannot respond to the service request in time, the operation and maintenance personnel determine to bring the service response cluster a down and bring a new service response cluster B up to the line to implement service response cluster migration, the service management platform triggers the service registration request automatically to register information of the service response cluster a that is down and information of the new service response cluster B on the service management platform to implement service migration.
The service management platform obtains service registration information corresponding to the service registration request, the service registration information refers to information related to online or offline of the service response cluster, and the service registration information includes but is not limited to: service request information, service response information, and application information; wherein the content of the first and second substances,
the service request information includes, but is not limited to: service identification, scene identification and service request subsystem identification;
the service response information includes, but is not limited to: service identification, scene identification and service response subsystem identification;
application information includes, but is not limited to: the service response subsystem identification is mapped with the service IP address.
Referring to fig. 3, the service management platform is communicatively connected to a service request subsystem (which may be understood as a client), a preset message middleware and a service response subsystem, the service response subsystem includes a plurality of response clusters of communication connection, and the preset message middleware includes a plurality of queues. After receiving the service request, the service management platform registers service registration information corresponding to the service registration request, as shown in fig. 3, the service management platform registers service request information corresponding to the service request subsystem, registers service capacity expansion/service migration information corresponding to the preset message middleware, registers service response information corresponding to the service response subsystem and registers response cluster information corresponding to capacity expansion/migration by the service management platform; executing service capacity expansion and migration operation according to the service registration information, specifically:
step S20, determining a task type of the task corresponding to the service registration request according to the service registration information.
Specifically, the method comprises the following steps:
step a1, judging whether the service registration information has a target service IP address to be offline;
step a2, if there is no target service IP address waiting for offline in the service registration information, determining that the task corresponding to the service registration request is a capacity expansion task;
step a3, if there is a target service IP address to be offline in the service registration information, determining that the task corresponding to the service registration request is a migration task.
And the service management platform analyzes the service registration information, judges whether the service registration information has a target service IP address to be offline or not, and determines the task type of the task corresponding to the service registration request according to the analysis result.
For example, the number of service IP addresses corresponding to the pre-registered service subsystem in the service management platform is 6, and the service IP addresses are Shenzhen Shentian region address 1, Shenzhen Shenian region address 2, Shenzhen Nanshan region address 3, Shenzhen Shenzhou Roche region address 4, Guangzhou Baiyun region address 5 and Guangzhou Tianhe region address 6; the service management platform resolves that the service registration information contains an address 7 of a Bomb area of Guangzhou city of online Guangzhou, and if the service registration information does not contain a target service IP address to be offline, the service management platform judges that a task corresponding to the service registration request is an expansion task; the service management platform resolves that the service registration information comprises an online Guangzhou Dabu region address 7 and an offline Shenzhen Dabu region address 2, a target service IP address Shenzhen Dabu region address 2 to be offline exists in the service registration information, and the service management platform judges that a task corresponding to the service registration request is a migration task.
In this embodiment, the service management platform determines a task type corresponding to the service registration request according to service registration information corresponding to the service registration request, so that the service management platform creates a corresponding message queue in a preset message middleware, and performs service expansion and migration operations, specifically:
step S30, if the task corresponding to the service registration request is a capacity expansion task, creating a first message queue in a preset message middleware according to the service registration information.
If the task capacity expansion task corresponding to the service registration request, the service management platform establishes a first message queue of read-write permission in a preset message middleware in a capacity expansion IDC (Internet Data Center), so that the client can send service request information to the first message queue, and a service response cluster in a service response subsystem can monitor an application instance and respond to the service request in the first message queue.
In this embodiment, since the task corresponding to the service registration request is an expansion task, a service response cluster that needs to be offline does not exist in the service response subsystem, the service management platform directly creates a first message queue of read-write permission in the preset message middleware, and the client can send a message to the first message queue when the service is executed.
Step S40, if the task corresponding to the service registration request is a migration task, creating a second message queue in a preset message middleware according to the service registration information, determining a target message queue to be offline according to the service registration information, and modifying the authority of the target message queue.
Specifically, the method comprises the following steps:
b1, if the task corresponding to the service registration request is a migration task, creating a second message queue corresponding to the service registration information in a preset message middleware, and setting the second message queue as a read-only permission;
step b2, when detecting that the second message queue is monitored by the application instance, modifying the second message queue of the read-only permission to the read-write permission.
If the task corresponding to the service registration request is a migration task, the service management platform creates a second message queue corresponding to the service registration information in a preset message middleware in the expansion IDC, for example, the service registration information contains an address 7 of a Bomb area in Guangzhou city; the service management platform creates a second message queue corresponding to the address 7 of the Cambodia area in Guangzhou city, and sets the second message queue as a read-only permission, in this embodiment, the second message queue is set as the read-only permission, so that a client corresponding to a user cannot send service request information to the second message queue, and then, a service response cluster corresponding to the address 7 of the Cambodia area in Guangzhou city starts an application instance to monitor the second message queue; when the service management platform detects that the second message queue is monitored by the application instance of the service response cluster corresponding to the address 7 of the Cambodium area in Guangzhou, the service management platform modifies the second message queue of the read-only permission into the read-write permission, so that the client can send messages to the second message queue, and the service response cluster corresponding to the address 7 of the Cambodium area in Guangzhou in the service response subsystem responds in time.
In this embodiment, a task corresponding to the service registration request is a migration task, and in order to prevent a situation that the created message queue cannot be monitored by the application instance due to the fact that the service response cluster is not set, the service management platform sets the permission of the second message queue as a read-only permission first, so that the client is prevented from sending a request to the second message queue, and when the service management platform determines that the second message queue can be monitored by the application instance, the service management platform modifies the second message queue into a read-write permission, so that the client can send service request information to the second message queue, and finally, service migration is not affected on the online service.
After the second message queue is established, the service management platform adjusts the authority of the established target message queue in the preset message middleware according to the service registration information, and a response cluster corresponding to the offline target message queue is downloaded.
It can be understood that the difference between service expansion and migration is that service expansion is added with service contraction capacity on the basis of service expansion, or called a service offline event, specifically, the service management platform determines a target message queue that needs to be offline in the preset message middleware according to the service registration information, that is, the service management platform obtains a target service IP address to be offline in the service registration information, determines a target message queue corresponding to the target service IP address in the preset message middleware, and adjusts the authority of the target message queue, so that the client cannot send a service request message to the target message queue and download the target message queue.
The service registration information is registered on the service management platform, and the message queue corresponding to the service registration information is created in the preset message middleware, so that when the preset message middleware receives a service request, the preset message middleware caches the service request to the created message queue, and a response cluster in a service response subsystem responds in time; the flow switching strategy related to the service request does not need human intervention, the operation complexity of operation and maintenance personnel and the cost and risk of operation and maintenance are reduced, and the service availability is improved.
The technical scheme in the embodiment is applied to the field of finance, on one hand, the workload of operation and maintenance personnel corresponding to a financial institution can be reduced, and on the other hand, the capacity expansion or migration of financial services can be ensured to have no influence on online financial services.
Further, based on the first embodiment of the service expansion and migration method of the present invention, a second embodiment of the service expansion and migration method of the present invention is provided.
This embodiment is a refinement of step S40 in the first embodiment, and is different from the above-described embodiments in that:
acquiring a target service IP address to be offline in the service registration information, and determining a target message queue corresponding to the target service IP address in the preset message middleware;
and modifying the permission of the target message queue to be invisible to the application of the read-only permission, and downloading the service response cluster corresponding to the target service IP address.
The service management platform acquires a target service IP address to be offline in the service registration information, queries a preset message middleware, and determines a target message queue corresponding to the target service IP address in the preset message middleware; then, the service management platform modifies the authority of the target message queue into read-only authority, so that the client cannot send service request information to the target message queue, and meanwhile, the service management platform modifies the target message queue into a service response cluster corresponding to an offline target service IP address, wherein the service response cluster is invisible to the application.
In this embodiment, the permission of the service management platform to modify the target message queue created in the preset message middleware is specifically described, so that the service response cluster to be offline in the service response subsystem may not monitor the target message queue, so as to implement offline of the service.
Referring to fig. 4, the present invention further provides a service expansion and migration apparatus, where the service expansion and migration apparatus includes:
a request receiving module 10, configured to, when receiving a service registration request, obtain service registration information corresponding to the service registration request and register the service registration information;
a task determining module 20, configured to determine, according to the service registration information, a task type of a task corresponding to the service registration request;
a first creating module 30, configured to create a first message queue in a preset message middleware according to the service registration information if the task corresponding to the service registration request is a capacity expansion task;
a second creating module 40, configured to create a second message queue in a preset message middleware according to the service registration information if the task corresponding to the service registration request is a migration task, determine, according to the service registration information, a target message queue to be offline, and modify the authority of the target message queue.
In one embodiment, the task determination module 20 includes:
the address judging unit is used for judging whether a target service IP address to be offline exists in the service registration information;
a first determination unit, configured to determine that a task corresponding to the service registration request is an expansion task if a target service IP address to be offline does not exist in the service registration information;
and the second judging unit is used for judging that the task corresponding to the service registration request is a migration task if the target service IP address to be offline exists in the service registration information.
In an embodiment, the first creating module 30 is further configured to:
and if the task corresponding to the service registration request is an expansion task, creating a first message queue corresponding to the service registration information in preset message middleware, and setting the first message queue as a read-write permission.
In an embodiment, the second creating module 40 includes:
the creating and setting unit is used for creating a second message queue corresponding to the service registration information in a preset message middleware and setting the second message queue as a read-only permission if the task corresponding to the service registration request is a migration task;
and the permission modification unit is used for modifying the second message queue of the read-only permission into the read-write permission when detecting that the second message queue is monitored by an application example.
In an embodiment, the second creating module 40 includes:
a queue determining unit, configured to obtain a target service IP address to be offline in the service registration information, and determine a target message queue corresponding to the target service IP address in the preset message middleware;
and the queue offline unit is used for modifying the permission of the target message queue into the read-only permission which is invisible to the application, and offline the service response cluster corresponding to the target service IP address.
The method implemented when the computer program corresponding to service expansion and migration run on the processor is executed may refer to each embodiment of the service expansion and migration method of the present invention, and details thereof are not described herein.
The invention also provides a service capacity expansion and migration system, which comprises a service management platform, a preset message middleware and a service response subsystem, wherein the service management platform, the preset message middleware and the service response subsystem are in communication connection; the service capacity expansion and migration system comprises:
when receiving a service registration request, a service management platform acquires and registers service registration information corresponding to the service registration request;
the service management platform determines the task type of the task corresponding to the service registration request according to the service registration information;
if the task corresponding to the service registration request is a capacity expansion task, the service management platform creates a first message queue in preset message middleware according to the service registration information
The service response subsystem starts an application instance to monitor the first message queue and processes a service request in the first message queue;
if the task corresponding to the service registration request is a migration task, the service management platform creates a second message queue in a preset message middleware according to the service registration information;
the service response subsystem starts an application instance to monitor the second message queue and processes the service request in the second message queue;
and the service management platform determines a target message queue to be offline according to the service registration information and modifies the authority of the target message queue.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
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 solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., 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 (9)

1. A service capacity expansion and migration method is characterized in that the service capacity expansion and migration method is applied to a service management platform, the service management platform is in communication connection with a preset message middleware, and the method comprises the following steps:
when a service registration request is received, acquiring service registration information corresponding to the service registration request and registering;
determining the task type of the task corresponding to the service registration request according to the service registration information;
if the task corresponding to the service registration request is an expansion task, creating a first message queue in a preset message middleware according to the service registration information;
if the task corresponding to the service registration request is a migration task, creating a second message queue in a preset message middleware according to the service registration information, determining a target message queue to be offline according to the service registration information, and modifying the authority of the target message queue;
the step of determining a target message queue to be offline according to the service registration information and modifying the authority of the target message queue comprises the following steps:
acquiring a target service IP address to be offline in the service registration information, and determining a target message queue corresponding to the target service IP address in the preset message middleware;
and modifying the permission of the target message queue to be invisible to the application of the read-only permission, and downloading the service response cluster corresponding to the target service IP address.
2. The service expansion and migration method according to claim 1, wherein the step of determining the task type of the task corresponding to the service registration request according to the service registration information includes:
judging whether a target service IP address to be offline exists in the service registration information;
if the service registration information does not have a target service IP address to be offline, judging that the task corresponding to the service registration request is a capacity expansion task;
and if the service registration information contains the target service IP address to be offline, judging that the task corresponding to the service registration request is a migration task.
3. The service expansion and migration method according to claim 1, wherein the step of creating a first message queue in a preset message middleware according to the service registration information if the task corresponding to the service registration request is an expansion task includes:
and if the task corresponding to the service registration request is an expansion task, creating a first message queue corresponding to the service registration information in preset message middleware, and setting the first message queue as a read-write permission.
4. The service expansion and migration method according to claim 1, wherein if the task corresponding to the service registration request is a migration task, the step of creating a second message queue in a preset message middleware according to the service registration information includes:
if the task corresponding to the service registration request is a migration task, creating a second message queue corresponding to the service registration information in a preset message middleware, and setting the second message queue as a read-only permission;
and modifying the second message queue with read-only permission into read-write permission when detecting that the second message queue is monitored by an application instance.
5. A service expansion and migration apparatus, comprising:
the request receiving module is used for acquiring and registering service registration information corresponding to a service registration request when the service registration request is received;
the task determining module is used for determining the task type of the task corresponding to the service registration request according to the service registration information;
a first creating module, configured to create a first message queue in a preset message middleware according to the service registration information if a task corresponding to the service registration request is a capacity expansion task;
a second creating module, configured to create a second message queue in a preset message middleware according to the service registration information if the task corresponding to the service registration request is a migration task, determine a target message queue to be offline according to the service registration information, and modify a permission of the target message queue;
wherein the second creating module comprises:
a queue determining unit, configured to obtain a target service IP address to be offline in the service registration information, and determine a target message queue corresponding to the target service IP address in the preset message middleware;
and the queue offline unit is used for modifying the permission of the target message queue into the read-only permission which is invisible to the application, and offline the service response cluster corresponding to the target service IP address.
6. The service volume expansion and migration apparatus of claim 5, wherein the task determination module comprises:
the address judging unit is used for judging whether a target service IP address to be offline exists in the service registration information;
a first determination unit, configured to determine that a task corresponding to the service registration request is an expansion task if a target service IP address to be offline does not exist in the service registration information;
and the second judging unit is used for judging that the task corresponding to the service registration request is a migration task if the target service IP address to be offline exists in the service registration information.
7. A service capacity expansion and migration system is characterized in that the service capacity expansion and migration system comprises a service management platform, a preset message middleware and a service response subsystem which are in communication connection; the service capacity expansion and migration system comprises:
when receiving a service registration request, a service management platform acquires and registers service registration information corresponding to the service registration request;
the service management platform determines the task type of the task corresponding to the service registration request according to the service registration information;
if the task corresponding to the service registration request is a capacity expansion task, the service management platform creates a first message queue in preset message middleware according to the service registration information
The service response subsystem starts an application instance to monitor the first message queue and processes a service request in the first message queue;
if the task corresponding to the service registration request is a migration task, the service management platform creates a second message queue in a preset message middleware according to the service registration information;
the service response subsystem starts an application instance to monitor the second message queue and processes the service request in the second message queue;
the service management platform determines a target message queue to be offline according to the service registration information and modifies the authority of the target message queue;
the steps that the service management platform determines a target message queue to be offline according to the service registration information and modifies the authority of the target message queue include:
the service management platform acquires a target service IP address to be offline in the service registration information and determines a target message queue corresponding to the target service IP address in the preset message middleware;
and the service management platform modifies the authority of the target message queue into a read-only authority which is invisible to the application, and the service response cluster corresponding to the target service IP address is downloaded.
8. A service expansion and migration device, the service expansion and migration device comprising: memory, a processor and a service expansion and migration program stored on the memory and executable on the processor, the service expansion and migration program when executed by the processor implementing the steps of the service expansion and migration method according to any one of claims 1 to 4.
9. A computer-readable storage medium, having stored thereon a service expansion and migration program, which when executed by a processor, performs the steps of the service expansion and migration method according to any one of claims 1 to 4.
CN201910564558.5A 2019-06-26 2019-06-26 Service capacity expansion and migration method, device, system, equipment and readable storage medium Active CN110324184B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910564558.5A CN110324184B (en) 2019-06-26 2019-06-26 Service capacity expansion and migration method, device, system, equipment and readable storage medium
PCT/CN2020/097436 WO2020259438A1 (en) 2019-06-26 2020-06-22 Service expansion and migration method, device, system, apparatus and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910564558.5A CN110324184B (en) 2019-06-26 2019-06-26 Service capacity expansion and migration method, device, system, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110324184A CN110324184A (en) 2019-10-11
CN110324184B true CN110324184B (en) 2021-06-25

Family

ID=68120512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910564558.5A Active CN110324184B (en) 2019-06-26 2019-06-26 Service capacity expansion and migration method, device, system, equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN110324184B (en)
WO (1) WO2020259438A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324184B (en) * 2019-06-26 2021-06-25 深圳前海微众银行股份有限公司 Service capacity expansion and migration method, device, system, equipment and readable storage medium
CN112764717A (en) * 2020-12-30 2021-05-07 广州凡科互联网科技股份有限公司 Service automation management platform based on event flow driving model
CN113225576B (en) * 2021-04-30 2023-03-21 广州虎牙科技有限公司 Service migration system and method based on live broadcast platform edge computing scene
CN114710311B (en) * 2022-02-11 2024-01-02 浙江高信技术股份有限公司 Multi-project message management method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006099046A3 (en) * 2005-03-09 2008-01-03 4Dhc Consulting Inc Automated interface-specification generation for enterprise architectures
CN106210119A (en) * 2016-07-29 2016-12-07 深圳前海微众银行股份有限公司 The smooth expansion method and system of message-oriented middleware
CN107592284A (en) * 2016-07-06 2018-01-16 华为技术有限公司 The apparatus and method of anti-DoS/DDoS attacks

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8667171B2 (en) * 2010-05-28 2014-03-04 Microsoft Corporation Virtual data center allocation with bandwidth guarantees
CN103257683A (en) * 2013-05-07 2013-08-21 华为技术有限公司 Method and device of cloud calculation service expansion and contraction
CN106453564B (en) * 2016-10-18 2019-11-05 北京京东尚科信息技术有限公司 The method, apparatus and system of elastic cloud distribution magnanimity request processing
CN109842636A (en) * 2017-11-24 2019-06-04 阿里巴巴集团控股有限公司 Cloud service moving method, device and electronic equipment
CN108347476B (en) * 2018-01-22 2020-01-14 Oppo广东移动通信有限公司 Cross-machine-room data synchronization method and device and server
CN110324184B (en) * 2019-06-26 2021-06-25 深圳前海微众银行股份有限公司 Service capacity expansion and migration method, device, system, equipment and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006099046A3 (en) * 2005-03-09 2008-01-03 4Dhc Consulting Inc Automated interface-specification generation for enterprise architectures
CN107592284A (en) * 2016-07-06 2018-01-16 华为技术有限公司 The apparatus and method of anti-DoS/DDoS attacks
CN106210119A (en) * 2016-07-29 2016-12-07 深圳前海微众银行股份有限公司 The smooth expansion method and system of message-oriented middleware

Also Published As

Publication number Publication date
CN110324184A (en) 2019-10-11
WO2020259438A1 (en) 2020-12-30

Similar Documents

Publication Publication Date Title
CN110324184B (en) Service capacity expansion and migration method, device, system, equipment and readable storage medium
KR101574026B1 (en) Internet of things using fog computing network
CN102682242B (en) For method and the dummy machine system of managing virtual machines system
CN108200132B (en) Resource acquisition method, device, equipment and computer readable storage medium
CN111357256A (en) System and method for managing access control between processes in a computing device
CN106657259B (en) Routing server and routing service method for server cluster
EP3465992B1 (en) Location based access control for artificial conversational entities
CN110677492B (en) Access request processing method and device, electronic equipment and storage medium
CN106708539B (en) Client updating method and device
CN102932325A (en) Registered users of an application
CN112269628A (en) Resource scheduling system and method
CN114040024A (en) Gateway-based micro-service gray level publishing method, device, equipment and storage medium
CN108111496B (en) Method, device and system for exposing http service for dubbo distributed application
CN110750780A (en) User role permission fusion method, device and equipment based on multi-service system
CN112351077B (en) Application service operation method, system, device and storage medium
CN113177179A (en) Data request connection management method, device, equipment and storage medium
CN111930482A (en) Task processing method, device and equipment based on node cluster and storage medium
CN113783914A (en) Data processing method, device and equipment
CN111930565A (en) Process fault self-healing method, device and equipment for components in distributed management system
US20160330151A1 (en) Method and system for managing an informational site using a social networking application
CN107679871B (en) List management method, device, system and computer readable storage medium
CN113596119B (en) Edge capability distribution method, system, device and computer readable storage medium
JP2017021667A (en) System and control method
CN115633093A (en) Resource acquisition method and device, computer equipment and computer readable storage medium
CN111106971B (en) Device registration management method, device 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