CN111444008B - Inter-cluster service migration method and device - Google Patents

Inter-cluster service migration method and device Download PDF

Info

Publication number
CN111444008B
CN111444008B CN201811639411.XA CN201811639411A CN111444008B CN 111444008 B CN111444008 B CN 111444008B CN 201811639411 A CN201811639411 A CN 201811639411A CN 111444008 B CN111444008 B CN 111444008B
Authority
CN
China
Prior art keywords
service
server
migrated
server cluster
services
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
CN201811639411.XA
Other languages
Chinese (zh)
Other versions
CN111444008A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811639411.XA priority Critical patent/CN111444008B/en
Publication of CN111444008A publication Critical patent/CN111444008A/en
Application granted granted Critical
Publication of CN111444008B publication Critical patent/CN111444008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/508Monitor

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a method and a device for migrating service among clusters. The method comprises the following steps: acquiring resource consumption information of each service on each server in a server cluster to be migrated; determining the residual resource information of each server in the target server cluster; and migrating the service item data of the service on each server in the server cluster to be migrated to the corresponding server in the target server cluster according to the resource consumption information and the residual resource information. Based on the scheme provided by the invention, the automatic migration of the service between the two clusters is realized, so that the migration accuracy is improved, the problem that the service is unavailable after the migration caused by manual completion of the migration work is avoided, the normal operation of the service after the migration is ensured, a large amount of labor cost is saved, and the time required by the service migration is reduced.

Description

Inter-cluster service migration method and device
Technical Field
The invention relates to the technical field of Internet, in particular to a method and a device for migrating service among clusters.
Background
With the development of internet applications, the user volume is increased, so as to meet the user requirement, services are usually stored in each server in the server cluster to provide services for the outside, however, in the practical application process, service migration is inevitably involved, for example, when a certain server cluster on line needs to be offline, or when a machine room is maintained and moved, urgent tasks of service migration are faced, and services of an old server cluster need to be migrated into a new server cluster to continue to provide services.
In the prior art, when service migration is performed according to the existing recorded information, the migration work is performed manually and empirically, and because the number of services is very large, for example, a game service line has more than one hundred services, and the service types are various, for example, an integral service, a login service, a game coin service and the like, when the manual migration service is adopted, the service is likely to be not normally used after migration due to migration errors caused by manual negligence and the like, a large amount of manual checking and the like are required, a large amount of time is consumed, and the migration cannot be performed absolutely and accurately.
Disclosure of Invention
The present invention has been made in view of the above problems, and it is an object of the present invention to provide a method and apparatus for inter-cluster service migration that overcomes or at least partially solves the above problems.
According to one aspect of the present invention, there is provided an inter-cluster service migration method, including:
acquiring resource consumption information of each service on each server in a server cluster to be migrated;
determining the residual resource information of each server in the target server cluster;
and migrating the service item data of the service on each server in the server cluster to be migrated to the corresponding server in the target server cluster according to the resource consumption information and the residual resource information.
According to another aspect of the present invention, there is provided an inter-cluster service migration apparatus, including:
the acquisition module is suitable for acquiring resource consumption information of each service on each server in the server cluster to be migrated;
the determining module is suitable for determining the residual resource information of each server in the target server cluster;
and the migration module is suitable for migrating service item data of services on each server in the server cluster to be migrated to the corresponding server in the target server cluster according to the resource consumption information and the residual resource information.
According to yet another aspect of the present invention, there is provided a computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the inter-cluster service migration method.
According to still another aspect of the present invention, there is provided a computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the inter-cluster service migration method described above.
According to the scheme provided by the invention, the resource consumption information of each service on each server in the server cluster to be migrated is obtained; determining the residual resource information of each server in the target server cluster; and migrating the service item data of the service on each server in the server cluster to be migrated to the corresponding server in the target server cluster according to the resource consumption information and the residual resource information. Based on the scheme provided by the invention, the automatic migration of the service between the two clusters is realized, so that the migration accuracy is improved, the problem that the service is unavailable after the migration caused by manual completion of the migration work is avoided, the normal operation of the service after the migration is ensured, a large amount of labor cost is saved, and the time required by the service migration is reduced.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 illustrates a flow diagram of a method for inter-cluster service migration in accordance with one embodiment of the present invention;
FIG. 2 is a flow chart of a method for migrating services between clusters according to another embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a structure of an inter-cluster service migration apparatus according to one embodiment of the present invention;
FIG. 4 illustrates a schematic diagram of a computing device, according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a flow diagram of a method for inter-cluster service migration according to one embodiment of the invention. As shown in fig. 1, the method comprises the steps of:
step S100, obtaining the resource consumption information of each service on each server in the server cluster to be migrated.
The server cluster to be migrated refers to a server cluster with service migration requirements, the server cluster to be migrated is composed of a plurality of servers, a plurality of services can be operated on each server, resources of the servers are occupied when all the services are operated on the servers in the server cluster to be migrated, in order to ensure that the migrated services can be used normally, before the services are migrated to a target server cluster, resource consumption information of each service on each server in the server cluster to be migrated needs to be acquired, wherein the resource consumption information comprises: CPU consumption information, bandwidth consumption information, memory consumption information, and the like.
Step S101, determining the residual resource information of each server in the target server cluster.
The target server cluster is a server cluster carrying the migrated services, and the target server cluster is composed of a plurality of servers, in this embodiment, the servers in the target server cluster may already have other services running, and the other services consume resource information of the servers, so before migrating each service on each server in the server cluster to the servers in the target server cluster, the remaining resource information of each server in the target server cluster needs to be determined first to determine to which server in the target server cluster each service should be migrated.
The residual resource information represents the available resource condition of each server in the target server cluster, the total resource information of each server can be determined, and the resource consumption information of the service running on the server can be determined, so that the residual resource information of each server in the target server cluster can be determined according to the total resource information and the resource consumption information.
Step S102, migrating the service item data of the service on each server in the server cluster to be migrated to the corresponding server in the target server cluster according to the resource consumption information and the residual resource information.
After the resource consumption information of each service on each server in the server cluster to be migrated and the residual resource information of each server in the target server cluster are obtained, service item data of each service on each server in the server cluster to be migrated can be migrated to the corresponding server in the target server cluster according to the resource consumption information of each service on each server in the server cluster to be migrated and the residual resource information of each server in the target server cluster, so that normal use of the service after migration is ensured, and trouble is not caused to user use.
According to the method provided by the embodiment of the invention, the resource consumption information of each service on each server in the server cluster to be migrated is obtained; determining the residual resource information of each server in the target server cluster; and migrating the service item data of the service on each server in the server cluster to be migrated to the corresponding server in the target server cluster according to the resource consumption information and the residual resource information. Based on the scheme provided by the invention, the automatic migration of the service between the two clusters is realized, so that the migration accuracy is improved, the problem that the service is unavailable after the migration caused by manual completion of the migration work is avoided, the normal operation of the service after the migration is ensured, a large amount of labor cost is saved, and the time required by the service migration is reduced.
Fig. 2 is a flow chart of a method for migrating services between clusters according to another embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step S200, obtaining the resource consumption information and the service state information of each service on each server in the server cluster to be migrated.
The server cluster to be migrated refers to a server cluster with service migration requirements, the server cluster to be migrated is composed of a plurality of servers, a plurality of services can be operated on each server, resources of the servers are occupied when all the services are operated on the servers in the server cluster to be migrated, in order to ensure that the migrated services can be used normally, before the services are migrated to a target server cluster, resource consumption information of each service on each server in the server cluster to be migrated needs to be acquired, wherein the resource consumption information comprises: CPU consumption information, bandwidth consumption information, memory consumption information, and the like.
The service state information indicates a current state of the service, for example, being provided with or without the service. The service state information is determined here to facilitate determination of whether or not to run the migrated service on the servers in the target server cluster, i.e., whether or not to provide the service externally, after migrating the service to the servers in the target server cluster. Therefore, the present embodiment also needs to acquire service status information of each service on each server in the server cluster to be migrated.
Taking game service as an example, a game service line has more than one hundred services and is distributed on each server in a server cluster to be migrated, when offline processing is required to be performed on each server in the server cluster to be migrated to the server in other server clusters, in order to smoothly migrate the service, resource consumption information and service state information of each service on each server in the server cluster to be migrated need to be acquired, and the service state information is used for guiding migration work and whether the service runs after migration.
Step S201, determining an association relationship between services.
The association relationship is a dependency relationship between services, for example, there is a dependency relationship between service 1 and service 2, and there is a dependency relationship between service 2 and service 3, which is only exemplified here, and does not have any limiting effect. The method and the device for determining the association relationship among the services on each server in the server cluster to be migrated are used for guiding service migration work and ensuring that the services with the association relationship can be normally used after migration.
Step S202, determining the residual resource information of each server in the target server cluster.
The target server cluster is a server cluster carrying the migrated services, and the target server cluster is composed of a plurality of servers, in this embodiment, the servers in the target server cluster may already have other services running, and the other services consume resource information of the servers, so before migrating each service on each server in the server cluster to the servers in the target server cluster, the remaining resource information of each server in the target server cluster needs to be determined first to determine to which server in the target server cluster each service should be migrated.
The residual resource information represents the available resource condition of each server in the target server cluster, the total resource information of each server can be determined, and the resource consumption information of the service running on the server can be determined, so that the residual resource information of each server in the target server cluster can be determined according to the total resource information and the resource consumption information.
Step S203, migrating the service item data of the service on each server in the server cluster to be migrated, the call information of other services having an association relationship with the service, and the service status information of each service to the corresponding server in the target server cluster according to the resource consumption information and the remaining resource information, so as to operate the migrated service on each server in the target server cluster according to the service status information.
After acquiring the resource consumption information and the service state information of each service on each server in the server cluster to be migrated, determining the association relation between each service, and determining the residual resource information of each server in the target server cluster, service migration work can be executed, specifically, service item data of the service on each server in the server cluster to be migrated, call information of other services having association relation with the service and service state information of each service are migrated to corresponding servers in the target server cluster according to the resource consumption information and the residual resource information, so that the migrated service can be ensured to be normally used after service migration, and no trouble is caused to user use.
In this embodiment, service item data of a service on each server in a server cluster to be migrated and call information of other services having an association relationship with the service should be migrated to the same server in a target server cluster, so as to ensure that the service can be normally used after migration. Wherein the service item data is data on which the service operates.
Step S204, service testing is carried out on each service migrated to the corresponding server in the target server cluster, and a service testing result is generated so that the user can switch the service according to the service testing result.
After each service on each server in the server cluster to be migrated is migrated to a server in the target server cluster, service testing is required to be performed on each service on a corresponding server in the target server cluster, wherein the service testing is to test whether the migrated service can be normally used or not, and after the testing is completed, a service testing result is generated so that a user can determine whether to perform service switching or not according to the service testing result.
In an alternative embodiment of the present invention, the following method may be used to perform service testing on each service in the corresponding server in the target server cluster: reporting and registering each migrated service on a corresponding server in the target server cluster; and starting the registered service, and performing service test on the started service.
After each service on each server in the server cluster to be migrated is migrated to a server in the target server cluster, each migrated service is reported and registered to a corresponding server in the target server cluster, after the service is reported and registered to the corresponding server in the target server cluster, the registered service is started, and service test is carried out on the started service. By performing service testing on the service, it can be determined whether the service can be used normally, so as to determine whether service switching is performed, that is, whether the service is provided by the server in the target server cluster.
For the service with the association relationship, after the service is reported and registered to the corresponding server in the target server cluster, the service starting can be completed by calling other service calling information according to the association relationship among the services; then, a service test is performed on the initiated service.
Step S205, after the service switching, monitoring whether each server in the server cluster to be migrated receives a service request within a preset time period, and if not, executing step S206.
After service switching is determined according to a service test result, when a user accesses the service again, the service request is sent to a server in the target server cluster, but instead of immediately downloading the server to be migrated, the server in the server cluster to be migrated is subjected to a period of time, whether each server in the server cluster to be migrated receives the service request in a preset period of time is monitored, and under the condition that the service request is not received, the server cluster to be migrated can be subjected to the offline processing, so that normal use of the user can be ensured, the condition that after service switching, the server cluster to be migrated is immediately subjected to the offline processing is avoided, and part of service requests caused by the service requests are sent to the server in the server cluster to be migrated, so that the user cannot normally use the service, and the user experience is poor.
Step S206, performing offline processing on the server cluster to be migrated.
And under the condition that each server in the server cluster to be migrated does not receive a service request in a preset time period, performing offline processing on the server cluster to be migrated.
According to the method provided by the embodiment of the invention, the resource consumption information and the service state information of each service on each server in the server cluster to be migrated are obtained, the association relation between each service is determined, and the residual resource information of each server in the target server cluster is determined; and migrating service item data of services on each server in the server cluster to be migrated, calling information of other services with association relation with the services and service state information of each service to corresponding servers in the target server cluster according to the resource consumption information and the residual resource information, so as to run migrated services on each server in the target server cluster according to the service state information, perform service test on each service migrated to the corresponding servers in the target server cluster, generate service test results, enable a user to perform service switching according to the service test results, and monitor whether each server in the server cluster to be migrated receives a service request within a preset time period after service switching, and if not, perform downlink processing on the server cluster to be migrated. Based on the scheme provided by the invention, the automatic migration of the service between the two clusters is realized, so that the migration accuracy is improved, the defect that the service is unavailable after migration due to the adoption of manual migration service in the prior art is overcome, the normal operation of the service after migration is ensured, a large amount of labor cost is saved, and the time required by service migration is reduced. In addition, during the service migration, the normal use of the service by the user is not influenced, so that the service migration which is not perceived by the user is realized.
Fig. 3 is a schematic diagram illustrating a structure of an inter-cluster service migration apparatus according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes: an acquisition module 300, a determination module 310, a migration module 320.
The obtaining module 300 is adapted to obtain resource consumption information of each service on each server in the server cluster to be migrated;
a determining module 310 adapted to determine remaining resource information of each server in the target server cluster;
the migration module 320 is adapted to migrate service item data of services on each server in the server cluster to be migrated to a corresponding server in the target server cluster according to the resource consumption information and the remaining resource information.
Optionally, the apparatus further comprises: an association determination module 330 adapted to determine an association between services;
the migration module 320 is further adapted to: and migrating service item data of the service on each server in the server cluster to be migrated and call information of other services with association relation with the service to the same server in the target server cluster according to the resource consumption information and the residual resource information.
Optionally, the acquisition module 300 is further adapted to: acquiring service state information of each service on each server in a server cluster to be migrated;
the migration module 320 is further adapted to: and migrating the service item data of the service on each server in the server cluster to be migrated and the service state information of each service to the corresponding server in the target server cluster according to the resource consumption information and the residual resource information, so as to operate the migrated service on each server in the target server cluster according to the service state information.
Optionally, the apparatus further comprises: the service test module 340 is adapted to perform service test on each service migrated to the corresponding server in the target server cluster, and generate a service test result, so that the user performs service switching according to the service test result.
Optionally, the service test module 340 is further adapted to: reporting and registering each migrated service on a corresponding server in the target server cluster; and starting the registered service, and performing service test on the started service.
Optionally, the apparatus further comprises: the monitoring module 350 is adapted to monitor whether each server in the server cluster to be migrated receives a service request within a preset time period;
the processing module 360 is adapted to perform offline processing on the server cluster to be migrated if the service request is not received within a preset time period.
According to the device provided by the embodiment of the invention, the resource consumption information of each service on each server in the server cluster to be migrated is obtained; determining the residual resource information of each server in the target server cluster; and migrating the service item data of the service on each server in the server cluster to be migrated to the corresponding server in the target server cluster according to the resource consumption information and the residual resource information. Based on the scheme provided by the invention, the automatic migration of the service between the two clusters is realized, so that the migration accuracy is improved, the problem that the service is unavailable after the migration caused by manual completion of the migration work is avoided, the normal operation of the service after the migration is ensured, a large amount of labor cost is saved, and the time required by the service migration is reduced.
The embodiment of the invention also provides a non-volatile computer storage medium, which stores at least one executable instruction, and the computer executable instruction can execute the inter-cluster service migration method in any of the method embodiments.
FIG. 4 illustrates a schematic diagram of a computing device, according to one embodiment of the invention, the particular embodiment of the invention not being limited to a particular implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor 402, a communication interface (Communications Interface) 404, a memory 406, and a communication bus 408.
Wherein:
processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408.
A communication interface 404 for communicating with network elements of other devices, such as clients or other servers.
The processor 402 is configured to execute the program 410, and may specifically perform relevant steps in the foregoing embodiment of the inter-cluster service migration method.
In particular, program 410 may include program code including computer-operating instructions.
The processor 402 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 406 for storing programs 410. Memory 406 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 410 may be specifically configured to cause processor 402 to perform the inter-cluster service migration method of any of the method embodiments described above. The specific implementation of each step in the procedure 410 may refer to the corresponding descriptions in the corresponding steps and units in the above embodiment of service migration between clusters, which are not described herein. It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and modules described above may refer to corresponding procedure descriptions in the foregoing method embodiments, which are not repeated herein.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in an inter-cluster service migration apparatus according to embodiments of the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.

Claims (14)

1. An inter-cluster service migration method, comprising:
acquiring resource consumption information of each service on each server in a server cluster to be migrated;
determining the residual resource information of each server in the target server cluster;
and migrating service item data of services on each server in the server cluster to be migrated and call information of other services with association relation with the services to the same server in the target server cluster according to the resource consumption information and the residual resource information, wherein the service item data is data on which the service operates, and the other services are services with association relation with the services and assist in normal starting of the migrated services.
2. The method of claim 1, wherein after obtaining the resource consumption information for each service on each server in the server cluster to be migrated, the method further comprises:
and determining the association relation among the services.
3. The method of claim 1, wherein after obtaining the resource consumption information for each service on each server in the server cluster to be migrated, the method further comprises:
acquiring service state information of each service on each server in a server cluster to be migrated;
and migrating service item data of services on each server in the server cluster to be migrated and service state information of each service to corresponding servers in the target server cluster according to the resource consumption information and the residual resource information, so as to operate the migrated services on each server in the target server cluster according to the service state information.
4. A method according to any of claims 1-3, wherein after migrating service item data for services on each server in a server cluster to be migrated to a corresponding server in a target server cluster based on the resource consumption information and the remaining resource information, the method further comprises:
and carrying out service testing on each service migrated to the corresponding server in the target server cluster, and generating a service testing result so that a user can switch the service according to the service testing result.
5. The method of claim 4, wherein the service testing of each service migrated to a corresponding server in the target server cluster further comprises:
reporting and registering each migrated service on a corresponding server in the target server cluster;
and starting the registered service, and performing service test on the started service.
6. The method of claim 4, wherein after a service handoff, the method further comprises: monitoring whether each server in the server cluster to be migrated receives a service request in a preset time period, and if not, performing offline processing on the server cluster to be migrated.
7. An inter-cluster service migration apparatus, comprising:
the acquisition module is suitable for acquiring resource consumption information of each service on each server in the server cluster to be migrated;
the determining module is suitable for determining the residual resource information of each server in the target server cluster;
and the migration module is suitable for migrating service item data of services on each server in the server cluster to be migrated and call information of other services with association relation with the services to the same server in the target server cluster according to the resource consumption information and the residual resource information, wherein the service item data is data on which the service operates, and the other services are services with association relation with the services and assist in normal starting of the migrated services.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the association relation determining module is suitable for determining the association relation among the services.
9. The apparatus of claim 7, wherein the acquisition module is further adapted to: acquiring service state information of each service on each server in a server cluster to be migrated;
the migration module is further adapted to: and migrating service item data of services on each server in the server cluster to be migrated and service state information of each service to corresponding servers in the target server cluster according to the resource consumption information and the residual resource information, so as to operate the migrated services on each server in the target server cluster according to the service state information.
10. The apparatus of any of claims 7-9, wherein the apparatus further comprises:
and the service test module is suitable for carrying out service test on each service migrated to the corresponding server in the target server cluster, and generating a service test result so that a user can carry out service switching according to the service test result.
11. The apparatus of claim 10, wherein the service testing module is further adapted to:
reporting and registering each migrated service on a corresponding server in the target server cluster;
and starting the registered service, and performing service test on the started service.
12. The apparatus of claim 10, wherein the apparatus further comprises: the monitoring module is suitable for monitoring whether each server in the server cluster to be migrated receives a service request in a preset time period;
and the processing module is suitable for carrying out offline processing on the server cluster to be migrated if the service request is not received within a preset time period.
13. A computing device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform operations corresponding to the inter-cluster service migration method according to any one of claims 1 to 6.
14. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the inter-cluster service migration method of any one of claims 1-6.
CN201811639411.XA 2018-12-29 2018-12-29 Inter-cluster service migration method and device Active CN111444008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811639411.XA CN111444008B (en) 2018-12-29 2018-12-29 Inter-cluster service migration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811639411.XA CN111444008B (en) 2018-12-29 2018-12-29 Inter-cluster service migration method and device

Publications (2)

Publication Number Publication Date
CN111444008A CN111444008A (en) 2020-07-24
CN111444008B true CN111444008B (en) 2024-04-16

Family

ID=71653886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811639411.XA Active CN111444008B (en) 2018-12-29 2018-12-29 Inter-cluster service migration method and device

Country Status (1)

Country Link
CN (1) CN111444008B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895586A (en) * 2010-08-18 2010-11-24 天津理工大学 B/S mode-based multimedia remote seamless transfer method
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
CN102629906A (en) * 2012-03-30 2012-08-08 浪潮电子信息产业股份有限公司 Design method for improving cluster business availability by using cluster management node as two computers
CN103873534A (en) * 2012-12-18 2014-06-18 中国移动通信集团公司 Method and device for application cluster migration
CN107391629A (en) * 2017-06-30 2017-11-24 北京奇虎科技有限公司 Data migration method, system, server and computer-readable storage medium between cluster
CN107621980A (en) * 2016-07-13 2018-01-23 阿里巴巴集团控股有限公司 A kind of virtual machine migration method, cluster control system and control device
CN107733916A (en) * 2017-11-09 2018-02-23 新华三云计算技术有限公司 The distributed lock resources control authority moving method and device of a kind of image file
CN108200218A (en) * 2018-03-09 2018-06-22 北京奇艺世纪科技有限公司 A kind of method, apparatus and electronic equipment for realizing load balancing
CN109039933A (en) * 2018-08-14 2018-12-18 郑州云海信息技术有限公司 A kind of cluster network optimization method, device, equipment and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130326038A1 (en) * 2012-06-05 2013-12-05 Microsoft Corporation Management of datacenters for fault tolerance and bandwidth
US9411648B2 (en) * 2012-06-28 2016-08-09 Rackspace Us, Inc. Flexible resource configuration management for computing clusters
US9507676B2 (en) * 2014-12-17 2016-11-29 International Business Machines Corporation Cluster creation and management for workload recovery
CN107526659B (en) * 2016-06-21 2021-02-12 伊姆西Ip控股有限责任公司 Method and apparatus for failover

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895586A (en) * 2010-08-18 2010-11-24 天津理工大学 B/S mode-based multimedia remote seamless transfer method
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
CN102629906A (en) * 2012-03-30 2012-08-08 浪潮电子信息产业股份有限公司 Design method for improving cluster business availability by using cluster management node as two computers
CN103873534A (en) * 2012-12-18 2014-06-18 中国移动通信集团公司 Method and device for application cluster migration
CN107621980A (en) * 2016-07-13 2018-01-23 阿里巴巴集团控股有限公司 A kind of virtual machine migration method, cluster control system and control device
CN107391629A (en) * 2017-06-30 2017-11-24 北京奇虎科技有限公司 Data migration method, system, server and computer-readable storage medium between cluster
CN107733916A (en) * 2017-11-09 2018-02-23 新华三云计算技术有限公司 The distributed lock resources control authority moving method and device of a kind of image file
CN108200218A (en) * 2018-03-09 2018-06-22 北京奇艺世纪科技有限公司 A kind of method, apparatus and electronic equipment for realizing load balancing
CN109039933A (en) * 2018-08-14 2018-12-18 郑州云海信息技术有限公司 A kind of cluster network optimization method, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Dynamic Cluster Reconfiguration for Energy Conservation in Computation Intensive Service;Jian Yang等;《IEEE Transactions on Computers》;20120823;第1401-1416页 *
大数据流式计算框架Storm的任务迁移策略;刘粟等;《计算机应用》;20180725;第71-92页 *

Also Published As

Publication number Publication date
CN111444008A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
US10977167B2 (en) Application monitoring with a decoupled monitoring tool
CN104838405B (en) The method and system of test frame for application program
CN108255707B (en) Development role creating method, device, equipment and storage medium of test case
CN110275775B (en) Resource allocation method, system and storage medium for container application
CN110389903B (en) Test environment deployment method and device, electronic equipment and readable storage medium
CN106897299B (en) Database access method and device
CN109324962B (en) Method and equipment for testing application program based on cloud Internet of things technology
CN108874549B (en) Resource multiplexing method, device, terminal and computer readable storage medium
CN113067875B (en) Access method, device and equipment based on dynamic flow control of micro-service gateway
CN108733545B (en) Pressure testing method and device
CN113448730A (en) Service processing method and device, computer equipment and storage medium
CN111506388B (en) Container performance detection method, container management platform and computer storage medium
CN111444008B (en) Inter-cluster service migration method and device
CN107045452B (en) Virtual machine scheduling method and device
US11755310B2 (en) Prioritized ranking for memory device preparation
CN110971478A (en) Pressure measurement method and device for cloud platform service performance and computing equipment
CN113806035A (en) Distributed scheduling method and service server
CN110113181B (en) Node configuration method, node configuration device, computer device, and readable storage medium
US8549537B2 (en) Middleware bridge system and method
CN113572701A (en) Service interface flow control method, device, equipment and storage medium
CN111124795A (en) Application start monitoring method, device and equipment
CN113518974A (en) System and method for finding and identifying computing nodes in a network
US10860347B1 (en) Virtual machine with multiple content processes
CN112214286B (en) Container starting method and device and electronic equipment

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