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

Inter-cluster service migration method and device Download PDF

Info

Publication number
CN111444008A
CN111444008A CN201811639411.XA CN201811639411A CN111444008A CN 111444008 A CN111444008 A CN 111444008A CN 201811639411 A CN201811639411 A CN 201811639411A CN 111444008 A CN111444008 A CN 111444008A
Authority
CN
China
Prior art keywords
service
server
cluster
migrated
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.)
Granted
Application number
CN201811639411.XA
Other languages
Chinese (zh)
Other versions
CN111444008B (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

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/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 service migration 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 accuracy of the migration is improved, the problem that the service is unavailable after the migration due to the 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 service migration between clusters.
Background
With the development of internet applications and the proliferation of users, in order to meet the use requirements of users, services are usually stored in each server in a server cluster to provide services to the outside, however, in the actual application process, service migration is inevitably involved, for example, when a certain server cluster on the line needs to be taken off-line, or a machine room is maintained and moved, an urgent task of service migration is faced, and the services of an old server cluster need to be migrated to a new server cluster to continue to provide services.
In the prior art, when service migration is performed, manual migration is performed according to existing recorded information, migration work is performed completely by manpower and experience, and due to the fact that the number of services is large, for example, a game service line has more than one hundred services, and the types of the services are various, such as credit service, login service, game coin service, and the like.
Disclosure of Invention
In view of the above, the present invention is proposed to provide an inter-cluster service migration method and apparatus that overcomes or at least partially solves the above problems.
According to an 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 system comprises an acquisition module, a migration module and a migration module, wherein the acquisition module is suitable for acquiring resource consumption information of each service on each server in a 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 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 yet another aspect of the present invention, there is provided a computing device comprising: the processor, the memory and the communication interface complete mutual communication 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, a computer storage medium is provided, in which at least one executable instruction is stored, and the executable instruction causes a processor to perform operations corresponding to the above-mentioned inter-cluster service migration method.
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 accuracy of the migration is improved, the problem that the service is unavailable after the migration due to the 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 technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of a method of inter-cluster service migration in accordance with one embodiment of the present invention;
FIG. 2 shows a flow diagram of a method of inter-cluster service migration in accordance with another embodiment of the present invention;
FIG. 3 shows a schematic structural diagram of an inter-cluster service migration apparatus according to an embodiment of the present invention;
FIG. 4 shows a schematic structural 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 an inter-cluster service migration method according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
step S100, acquiring resource consumption information of each service on each server in the server cluster to be migrated.
The cluster of the server to be migrated refers to a cluster of servers with service migration requirements, the cluster of the server to be migrated is composed of a plurality of servers, each server can run a plurality of services, all the services can occupy resources of the server when running on the servers in the cluster of the server to be migrated, in order to ensure that the migrated services can be normally used, before migrating the services to a target cluster of servers, resource consumption information of each service on each server in the cluster of the server to be migrated needs to be acquired, wherein the resource consumption information includes: CPU consumption information, bandwidth consumption information, memory consumption information, etc.
Step S101, determining the residual resource information of each server in the target server cluster.
In this embodiment, the servers in the target server cluster may already have other services running, and the other services will also consume resource information of the servers, so before migrating each service on each server in the server cluster to be migrated to the server in the target server cluster, it is necessary to determine the remaining resource information of each server in the target server cluster first to determine to which server in the target server cluster each service should be migrated.
The remaining 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 remaining resource information of each server in the target server cluster can be determined according to the total resource information and the resource consumption information.
And step S102, migrating the service item data of the service on each server in the cluster of the servers to be migrated to the corresponding server in the cluster of the target server 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 is acquired and the residual resource information of each server in the target server cluster is determined, the service item data of the 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 troubles are not caused to the use of a user.
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 accuracy of the migration is improved, the problem that the service is unavailable after the migration due to the 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 shows a flow diagram of an inter-cluster service migration method according to another embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step S200, acquiring resource consumption information and service state information of each service on each server in the cluster of the servers to be migrated.
The cluster of the server to be migrated refers to a cluster of servers with service migration requirements, the cluster of the server to be migrated is composed of a plurality of servers, each server can run a plurality of services, all the services can occupy resources of the server when running on the servers in the cluster of the server to be migrated, in order to ensure that the migrated services can be normally used, before migrating the services to a target cluster of servers, resource consumption information of each service on each server in the cluster of the server to be migrated needs to be acquired, wherein the resource consumption information includes: CPU consumption information, bandwidth consumption information, memory consumption information, etc.
The service state information indicates a current state of the service, for example, whether the service is being provided to the outside or not. The service status information is determined here in order to determine whether to run the migrated service on a server in the target server cluster, i.e., whether to provide the service to the outside, after migrating the service to the server in the target server cluster. Therefore, in this embodiment, it is also necessary to obtain service state information of each service on each server in the server cluster to be migrated.
Taking a game service as an example, a game service line has a hundred or more services distributed on each server in a to-be-migrated server cluster, and when the to-be-migrated server cluster needs to be offline, each service on each server in the to-be-migrated server cluster needs to be migrated to a server in another server cluster, and in order to smoothly migrate a service, resource consumption information and service state information of each service on each server in the to-be-migrated server cluster need to be acquired for guiding migration work and whether the migrated service is running.
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 an example and has no limiting effect. The embodiment determines the association relationship between the services on the servers in the server cluster to be migrated so as to guide the service migration work and ensure 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.
In this embodiment, the servers in the target server cluster may already have other services running, and the other services will also consume resource information of the servers, so before migrating each service on each server in the server cluster to be migrated to the server in the target server cluster, it is necessary to determine the remaining resource information of each server in the target server cluster first to determine to which server in the target server cluster each service should be migrated.
The remaining 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 remaining 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, according to the resource consumption information and the remaining resource information, 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 state information of each service to a corresponding server in the target server cluster, so as to run the migrated service on each server in the target server cluster according to the service state information.
The method comprises the steps of obtaining resource consumption information and service state information of each service on each server in a server cluster to be migrated, determining an association relation between the services, and determining residual resource information of each server in a target server cluster, and then executing service migration work.
In this embodiment, the service item data of the service on each server in the server cluster to be migrated and the call information of other services having an association relationship with the service should be migrated to the same server in the target server cluster, so as to ensure that the service can be normally used after migration. Wherein the service item data is data upon which the service runs.
And step S204, performing service test on each service migrated to the corresponding server in the target server cluster, and generating a service test result so that the user can perform service switching according to the service test result.
After each service on each server in the server cluster to be migrated is migrated to a server in the target server cluster, a service test needs to be performed on each service migrated to a corresponding server in the target server cluster, wherein the service test is used for testing whether the migrated service can be normally used, and after the test is completed, a service test result is generated so that a user can determine whether to perform service switching according to the service test result.
In an optional embodiment of the present invention, the following method may be adopted to perform service test 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 carrying out service test on the started service.
After all services on all servers in the server cluster to be migrated are migrated to servers in the target server cluster, reporting and registering all migrated services to corresponding servers in the target server cluster, starting the registered services after the services are reported and registered to the corresponding servers in the target server cluster, and carrying out service test on the started services. By performing service test on the service, whether the service can be used normally can be determined, so as to determine whether to perform service switching, namely, to provide the service to the outside by the server in the target server cluster.
For the services with the association relationship, after the services are reported and registered to the corresponding servers in the target server cluster, the calling information of other services can be called according to the association relationship among the services to complete the service starting; then, a service test is performed on the started service.
Step S205, after the service is switched, monitoring whether each server in the cluster of servers to be migrated receives the service request within a preset time period, and if not, executing step S206.
After the service switching is determined according to the service test result, when the user accesses the service again, the service request is sent to the server in the target server cluster, but the server cluster to be migrated is not immediately offline, but the server in the server cluster to be migrated is carried out for a period of time, whether the server in the server cluster to be migrated receives the service request or not is monitored, and the offline processing can be carried out on the server cluster to be migrated under the condition that the service request is not received, so that the normal use of the user can be ensured, and the phenomenon that the offline processing is carried out on the server cluster to be migrated immediately after the service switching, so that part of the service request is sent to the server in the server cluster to be migrated, the user cannot normally use the service, and the user experience is poor is avoided.
And step S206, performing offline processing on the server cluster to be migrated.
And under the condition that it is monitored that each server in the server cluster to be migrated does not receive the service request within a preset time period, offline processing is carried out 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 incidence relation among the services is determined, and the residual resource information of each server in the target server cluster is determined; according to the resource consumption information and the residual resource information, migrating the service item data of the service on each server in the server cluster to be migrated, the calling information of other services which have an association relation with the service and the service state information of each service to a corresponding server in the target server cluster, so as to run the migrated service on each server in the target server cluster according to the service state information, performing service test on each service migrated to the corresponding server in the target server cluster, and generating a service test result for a user to perform service switching according to the service test result, 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, performing offline 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 accuracy of the migration is improved, the defect that the service after the migration is unavailable due to the adoption of manual migration service in the prior art is overcome, 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. In addition, during service migration, normal service use of the user is not influenced, and therefore service migration which is not perceived by the user is achieved.
Fig. 3 shows a schematic structural diagram 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, and a migration module 320.
An obtaining module 300, adapted to obtain resource consumption information of each service on each server in the cluster of servers 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 the service item data of the service on each server in the cluster of servers to be migrated to the corresponding server in the cluster of target servers according to the resource consumption information and the remaining resource information.
Optionally, the apparatus further comprises: an association relation determining module 330 adapted to determine an association relation between services;
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 calling information of other services which have an 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 obtaining 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 services 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 run the migrated services on each server in the target server cluster according to the service state information.
Optionally, the apparatus further comprises: the service testing module 340 is adapted to perform service testing on each service migrated to the corresponding server in the target server cluster, and generate a service testing result, so that a user performs service switching according to the service testing 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 carrying out service test on the started service.
Optionally, the apparatus further comprises: the monitoring module 350 is adapted to monitor whether each server in the cluster of servers to be migrated receives a service request within a preset time period;
the processing module 360 is adapted to perform offline processing on the to-be-migrated server cluster if the service request is not received within the 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 accuracy of the migration is improved, the problem that the service is unavailable after the migration due to the 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 nonvolatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the service migration method between clusters in any method embodiment.
Fig. 4 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein:
the processor 402, communication interface 404, and memory 406 communicate with each other via a 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 execute relevant steps in the foregoing inter-cluster service migration method embodiment.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to enable the processor 402 to execute the inter-cluster service migration method in any of the above-described method embodiments. For specific implementation of each step in the program 410, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing inter-cluster service migration embodiment, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, 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 interpreted as reflecting an intention that: that the invention as claimed 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 device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. 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. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements 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 included in other embodiments, rather than other features, 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 may be used in any combination.
The 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 a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement 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. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or 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 usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses:
A1. 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 the service item data of the service 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 residual resource information.
A2. The method according to a1, wherein after acquiring resource consumption information of each service on each server in the cluster of servers to be migrated, the method further comprises:
determining an incidence relation among services;
the migrating the service item data of the service on each server in the cluster of the servers to be migrated to the corresponding server in the cluster of the target server according to the resource consumption information and the residual resource information further comprises:
and migrating the service item data of the service on each server in the server cluster to be migrated and the calling information of other services which have an 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.
A3. The method according to a1 or a2, wherein after obtaining resource consumption information for each service on each server in the cluster of servers to be migrated, the method further comprises: acquiring service state information of each service on each server in a server cluster to be migrated;
the migrating the service item data of the service on each server in the cluster of the servers to be migrated to the corresponding server in the cluster of the target server according to the resource consumption information and the residual resource information further comprises:
and migrating the service item data of the services 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 run the migrated services on each server in the target server cluster according to the service state information.
A4. The method of any of A1-A3, wherein, after migrating service item data served on each server in a cluster of servers to be migrated to a corresponding server in a cluster of target servers according to the resource consumption information and the remaining resource information, the method further comprises:
and 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.
A5. The method of a4, wherein the performing service testing on 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 carrying out service test on the started service.
A6. The method of a4 or a5, wherein, after service handover, the method further comprises: and monitoring whether each server in the server cluster to be migrated receives the service request within a preset time period, and if not, performing offline processing on the server cluster to be migrated.
B7. An inter-cluster service migration apparatus comprising:
the system comprises an acquisition module, a migration module and a migration module, wherein the acquisition module is suitable for acquiring resource consumption information of each service on each server in a 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 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.
B8. The apparatus of B7, wherein the apparatus further comprises:
the incidence relation determining module is suitable for determining the incidence relation among the services;
the migration module 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 calling information of other services which have an 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.
B9. The apparatus of B7 or B8, 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 the service item data of the services 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 run the migrated services on each server in the target server cluster according to the service state information.
B10. The apparatus of any one of B7-B9, 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.
B11. The apparatus of B10, 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 carrying out service test on the started service.
B12. The apparatus of any one of B9-B11, 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 within a preset time period;
and the processing module is suitable for performing offline processing on the server cluster to be migrated if the service request is not received within the preset time period.
C13. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform operations corresponding to the inter-cluster service migration method of any one of A1-A6.
D14. A computer storage medium having stored therein at least one executable instruction that causes a processor to perform operations corresponding to the inter-cluster service migration method of any one of a1-a 6.

Claims (10)

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 the service item data of the service 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 residual resource information.
2. The method of claim 1, wherein after obtaining resource consumption information for each service on each server in the cluster of servers to be migrated, the method further comprises:
determining an incidence relation among services;
the migrating the service item data of the service on each server in the cluster of the servers to be migrated to the corresponding server in the cluster of the target server according to the resource consumption information and the residual resource information further comprises:
and migrating the service item data of the service on each server in the server cluster to be migrated and the calling information of other services which have an 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.
3. The method according to claim 1 or 2, wherein after obtaining resource consumption information of each service on each server in the cluster of servers to be migrated, the method further comprises: acquiring service state information of each service on each server in a server cluster to be migrated;
the migrating the service item data of the service on each server in the cluster of the servers to be migrated to the corresponding server in the cluster of the target server according to the resource consumption information and the residual resource information further comprises:
and migrating the service item data of the services 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 run the migrated services on each server in the target server cluster according to the service state information.
4. The method according to any one of claims 1-3, wherein after migrating service item data of services on each server in the cluster of servers to be migrated to a corresponding server in the cluster of target servers according to the resource consumption information and the remaining resource information, the method further comprises:
and 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.
5. The method of claim 4, wherein the performing service testing on 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 carrying out service test on the started service.
6. The method of claim 4 or 5, wherein after a service handover, the method further comprises: and monitoring whether each server in the server cluster to be migrated receives the service request within 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 system comprises an acquisition module, a migration module and a migration module, wherein the acquisition module is suitable for acquiring resource consumption information of each service on each server in a 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 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.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the incidence relation determining module is suitable for determining the incidence relation among the services;
the migration module 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 calling information of other services which have an 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.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction, the executable instruction causing the processor to perform operations corresponding to the inter-cluster service migration method according to any one of claims 1 to 6.
10. A computer storage medium having stored therein at least one executable instruction that causes 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 true CN111444008A (en) 2020-07-24
CN111444008B 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 (13)

* 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
US20130326038A1 (en) * 2012-06-05 2013-12-05 Microsoft Corporation Management of datacenters for fault tolerance and bandwidth
US20140006621A1 (en) * 2012-06-28 2014-01-02 Paul Sims Flexible Resource Configuration Management For Computing Clusters
CN103873534A (en) * 2012-12-18 2014-06-18 中国移动通信集团公司 Method and device for application cluster migration
US20160179636A1 (en) * 2014-12-17 2016-06-23 International Business Machines Corporation Cluster creation and management for workload recovery
CN107391629A (en) * 2017-06-30 2017-11-24 北京奇虎科技有限公司 Data migration method, system, server and computer-readable storage medium between cluster
US20170364423A1 (en) * 2016-06-21 2017-12-21 EMC IP Holding Company LLC Method and apparatus for failover processing
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

Patent Citations (13)

* 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
US20130326038A1 (en) * 2012-06-05 2013-12-05 Microsoft Corporation Management of datacenters for fault tolerance and bandwidth
US20140006621A1 (en) * 2012-06-28 2014-01-02 Paul Sims Flexible Resource Configuration Management For Computing Clusters
CN103873534A (en) * 2012-12-18 2014-06-18 中国移动通信集团公司 Method and device for application cluster migration
US20160179636A1 (en) * 2014-12-17 2016-06-23 International Business Machines Corporation Cluster creation and management for workload recovery
US20170364423A1 (en) * 2016-06-21 2017-12-21 EMC IP Holding Company LLC Method and apparatus for failover processing
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
JIAN YANG等: "Dynamic Cluster Reconfiguration for Energy Conservation in Computation Intensive Service", 《IEEE TRANSACTIONS ON COMPUTERS》, 23 August 2012 (2012-08-23), pages 1401 - 1416 *
刘粟等: "大数据流式计算框架Storm的任务迁移策略", 《计算机应用》, 25 July 2018 (2018-07-25), pages 71 - 92 *

Also Published As

Publication number Publication date
CN111444008B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
CN108234630A (en) Method for reading data and device based on distributed consensus protocol realization
CN113067875B (en) Access method, device and equipment based on dynamic flow control of micro-service gateway
US10305974B2 (en) Ranking system
CN109324962B (en) Method and equipment for testing application program based on cloud Internet of things technology
JP5796722B2 (en) Computer server capable of supporting CPU virtualization
CN115033352A (en) Task scheduling method, device and equipment for multi-core processor and storage medium
CN109426544A (en) Virtual machine deployment method and device
RU2696299C2 (en) Control when initiating elementary tasks on server platform
CN111506388B (en) Container performance detection method, container management platform and computer storage medium
CN107045452B (en) Virtual machine scheduling method and device
CN111126604A (en) Model training method, device, server and storage medium
CN109995571B (en) Method and device for matching server configuration and VNF application
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
CN112286622A (en) Virtual machine migration processing and strategy generating method, device, equipment and storage medium
CN111444008A (en) Inter-cluster service migration method and device
CN110163554A (en) Operation method, device, server and the storage medium of workflow
CN115686746A (en) Access method, task processing method, computing device, and computer storage medium
CN113868218A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN113806035A (en) Distributed scheduling method and service server
CN111352710A (en) Process management method and device, computing equipment and storage medium
US10860347B1 (en) Virtual machine with multiple content processes
US8549537B2 (en) Middleware bridge system and method
CN112988405A (en) Micro-service automatic degradation method and device and computing 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