CN114650319B - Resource migration method, device, server and storage medium - Google Patents

Resource migration method, device, server and storage medium Download PDF

Info

Publication number
CN114650319B
CN114650319B CN202011497631.0A CN202011497631A CN114650319B CN 114650319 B CN114650319 B CN 114650319B CN 202011497631 A CN202011497631 A CN 202011497631A CN 114650319 B CN114650319 B CN 114650319B
Authority
CN
China
Prior art keywords
resource
migration
service
resources
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011497631.0A
Other languages
Chinese (zh)
Other versions
CN114650319A (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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011497631.0A priority Critical patent/CN114650319B/en
Publication of CN114650319A publication Critical patent/CN114650319A/en
Application granted granted Critical
Publication of CN114650319B publication Critical patent/CN114650319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a method, a device, a server and a storage medium for resource migration, wherein the method comprises the following steps: receiving first information; the first information is used for indicating a first resource to be migrated; determining at least one first service using the first resource according to the first information; confirming that migration of the first resource is performed in the case that the first resource includes all second resources; wherein the second resource is all resources used by the at least one first service.

Description

Resource migration method, device, server and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a server, and a storage medium for resource migration.
Background
In the related art, the comprehensive resource management system is an integrated management system for space resources, physical resources, logic resources and services of a communication network. When the machine room migration is performed on the comprehensive resource management system, the service borne by the resources needs to be manually surveyed, and the problem of low efficiency of resource migration exists.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, a server, and a storage medium for resource migration, so as to at least solve the problem of low efficiency of resource migration in the related art.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a method for migrating resources, which comprises the following steps:
receiving first information; the first information is used for indicating a first resource to be migrated;
determining at least one first service using the first resource according to the first information;
confirming that migration of the first resource is performed in the case that the first resource includes all second resources; wherein the second resource is all resources used by the at least one first service.
The embodiment of the application also provides a device for resource migration, which comprises:
a first receiving unit configured to receive first information; the first information is used for indicating a first resource to be migrated;
a first determining unit, configured to determine, according to the first information, at least one first service that uses the first resource;
the first execution unit is used for confirming to execute the migration of the first resource under the condition that the first resource comprises all second resources; wherein the second resource is all resources used by the at least one first service.
The embodiment of the application also provides a server, which comprises: a processor and a memory for storing a computer program capable of running on the processor,
the processor is used for executing the steps of the method for migrating the resources when the computer program is run.
The embodiment of the application also provides a storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps of the method for resource migration described above.
In the embodiment of the application, first information for indicating first resources to be migrated is received, at least one first service using the first resources is determined according to the first information, all resources used by the at least one first service are determined to be second resources, and the execution of the migration of the first resources is confirmed under the condition that the first resources to be migrated comprise all the second resources. Therefore, by confirming the associated service of the migrated resources, the manual investigation of the service of the resource bearing and the confirmation of all the resources used by the service of the resource bearing are not needed, and the efficiency of migrating the resources is improved.
Drawings
FIG. 1 is a flow chart of a method of resource migration in the related art;
FIG. 2 is a schematic diagram of a resource relationship according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for migrating resources according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for resource migration according to an embodiment of the present application;
FIG. 5 is an interface schematic diagram of a migration application for resource migration according to an embodiment of the present application;
FIG. 6 is an interface diagram of another application for resource migration according to an embodiment of the present application;
FIG. 7 is an interface diagram of another application for resource migration according to an embodiment of the present application;
FIG. 8 is an interface diagram of another application for resource migration according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an interface for migration audit of resource migration provided by an embodiment of the present application;
FIG. 10 is a schematic diagram of an interface for resource adjustment after migration of resource migration according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a system architecture for resource migration according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a device for resource migration according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
At present, the flow of resource migration of the comprehensive resource management system is as follows: newly building a resource migration task, evaluating the resource migration task, and manually confirming whether a service is opened on the resource on the system. For the resources with services to be opened, whether all the resources associated with the related services are migrated at the time needs to be manually confirmed, and the problem of low efficiency of resource migration exists. And if part of the resources associated with the service are not in the migration range, all the resources associated with the service cannot be migrated, so that the quantity of the migrated resources is limited.
Based on this, in various embodiments of the present application, first information for determining resources to be migrated is received, at least one first service using the first resources is determined according to the first information, all resources used by each first service are determined as second resources according to the at least one first service, and in the case that the first resources to be migrated include all the second resources, execution of migration of the first resources is confirmed. Therefore, when the machine room migration is carried out on the comprehensive resource management system, the system confirms the associated service of the migrated resources, and the manual investigation of the service carried by the resources is not needed, so that the efficiency of migrating the resources is improved. And simultaneously, all resources related to the resource-related service to be migrated are migrated together, so that the migration bearing service is supported to be the resource in the on state, and more target objects capable of being migrated are supported.
Fig. 2 is a schematic diagram of a resource relationship according to an embodiment of the present application. The port ID of the port object corresponding to the resource can be associated to the optical path and the circuit object, and according to the service field carried by the optical path and the circuit object, the first service carried by the optical path and the circuit object can be determined according to the service field; therefore, by the mode, the system can determine the associated service needing to be used for the resource to be migrated through the information of the site where the resource is located, the resource, the port, the optical path circuit and the like. And the system can further determine all associated resources required to be used by the associated service of the resource to be migrated through the association relationship between the resource and the port ID, namely, determine the relationship of the resource to be migrated, the associated service and the associated resource.
Similarly, the machine frame to which the equipment object belongs is identified through a machine frame field, the machine room to which the machine frame object belongs is identified through a machine room field, and the station to which the machine room belongs is identified through a station field, so that the system can enable the equipment object to be related to the machine room and the station in which the equipment is located through the fields.
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Fig. 3 is a schematic flow chart of an implementation of a method for resource migration according to an embodiment of the present application, where, as shown in fig. 3, the method for resource migration includes:
step 301: first information is received.
The first information is used for indicating a first resource to be migrated.
In this embodiment, first information characterizing a first resource is received, where the first resource represents a resource to be migrated input by a user, the first information includes a resource name and a resource ID under a source computer room, and the resource includes various devices, network elements, and the like. Here, the execution subject may be a server, a terminal, or other devices.
In practical application, according to types such as wireless, transmission internal line, public, transmission external line, client side service equipment and the like, the graphical interface presents the resources to be selected in a tree shape, and the user inputs the first information by selecting a check box in the graphical interface or by inputting a resource name and/or a resource ID.
Step 302: and determining at least one first service using the first resource according to the first information.
According to the received first information, at least one first service which needs to be realized by using the first resource indicated by the first information is determined, namely, the first service needs to be realized by using the first resource. Here, at least one first service implemented by using the first resource indicated by the first information is determined, and the determining manner may be that the first service associated with the first resource is selected by the user, or the first service associated with the first resource is determined according to the first information; the determined first service may be some or all of all services that need to be implemented using the first resource.
Here, the port ID of the port object corresponding to the resource may be associated to the optical path and the circuit object, and according to the service field carried by the optical path and the circuit object, the first service carried by the optical path and the circuit object may be determined according to the service field; therefore, by the mode, the system can determine the associated service needing to be used for the resource to be migrated through the information of the site where the resource is located, the resource, the port, the optical path circuit and the like. And the system can further determine all associated resources required to be used by the associated service of the resource to be migrated through the association relationship between the resource and the port ID, namely, determine the relationship of the resource to be migrated, the associated service and the associated resource.
Step 303: and confirming that the migration of the first resource is executed under the condition that the first resource comprises all second resources.
Wherein the second resource is all resources used by the at least one first service.
And determining all resources associated with each first service in the at least one first service, namely determining second resources according to each first service in the at least one first service, judging whether the received first resources comprise all the second resources, and executing migration of the first resources under the condition that the first resources comprise all the second resources. For example, the first information indicates that the resources to be migrated are three first resources, i.e., a first resource, a second resource and a third resource, and the first service determined according to the first information is a, and all the resources associated with the first service a, i.e., the second resources are the first resource and the third resource, and if the first resources include all the second resources, the migration of the first resources a, b and c resources is executed. By determining the associated service of the resource to be migrated, all the associated resources of the associated service are migrated, namely fusion migration, the migration mode can determine the resources directly associated or indirectly associated with the service associated with the resource to be migrated, and the equipment associated with the service is migrated together, so that the migration of the resources with the service bearing the open state is supported, the service bearing the resource is not required to be closed, and more target objects capable of being migrated are supported.
Wherein, in an embodiment, the method further comprises:
outputting a first hint if the first resource does not include a portion of the second resource; the first hint is used for prompting to migrate the part of the second resource;
receiving a first response regarding the first prompt; said first response being for acknowledging migration of said portion of said second resource;
based on the first response, it is confirmed that the migration of the first resource and the portion of the second resource is performed.
Determining all resources used by each first service in at least one first service, namely determining second resources, judging whether the first resources indicated by the received first information comprise all the second resources or not according to each first service in the at least one first service, outputting a first prompt for prompting a user to associate a part of resources which are not selected when the first resources do not comprise part of the second resources, confirming that the user confirms to migrate the part of the second resources which are not contained in the first resources when a first response about the first prompt is received, confirming to execute migration of the first resources and the second resources based on the first response, and confirming that all the resources associated with the first service execute migration when all the resources associated with the first service are confirmed to execute migration. Therefore, the user does not need to input the first information again, and the efficiency of resource migration in the comprehensive resource management system is improved by confirming the non-input business associated resources provided by migration.
For example, the resources to be migrated indicated by the first information are three first resources, i.e., a first resource, a second resource and a third resource, a first service determined according to the first information is a, and all the resources associated with the first service a, i.e., the second resources are four resources, i.e., a first resource, a second resource, a third resource and a fourth resource, which can be judged not to be included in the first resources, the first resources do not include a part of the second resources, and at this time, output "whether to migrate the third resource? "receiving a first response about the prompt, indicating that the user confirms that the butyl resource migration is performed, and confirming that the migration of the first resource and the second resource, namely, the migration of the four resources of A, B, C and D, is performed based on the first response.
In addition, the first response can also be used for confirming that resources except the first resource and the second resource are migrated, so that a user can increase the resources to be migrated according to service requirements, and the corresponding resource migration can be confirmed to be executed based on the first response.
Because the occasion of synthesizing the computer lab involves resources such as multiple equipment, network element, and the resource is of a great variety, quantity, and the business that the resource born is very complicated, needs the manual work to survey the business that the resource born when the user inputs first information, has great degree of difficulty. In an embodiment, after determining at least one first service using the first resource according to the first information, the method further includes:
outputting a second prompt; the second hint is to hint information about the second resource.
Here, after determining at least one first service associated with the first resources indicated by the first information according to the received first information, a prompt of all resources associated with each of the at least one first service is output for prompting a user of all resource information associated with the at least one first service. Therefore, the user can acquire all resource information related to the service related to the first information without manually surveying the service borne by the resources, and the efficiency of resource migration in the comprehensive resource management system is improved.
In addition, when the first resource has the service to be handled, if the service to be handled is not considered, the migration of the first resource is directly executed, the service handling can be performed after the migration is completed, and the user waits for the service handling time to be too long, so that the migration planning mode of directly migrating the first resource without considering the service to be handled is not reasonable enough, and the user experience is affected. In an embodiment, the validating performs migration of the first resource, comprising:
determining whether the first resource has a service to be handled;
and under the condition that the first resource has the business to be handled, confirming the migration of the first resource to be executed after the business to be handled is finished.
Here, whether the first resource has a to-do business is determined through verification, the migration of the first resource can be performed under the condition that the to-do business is not available, and the migration of the first resource is performed after the to-do business is over under the condition that the to-do business is available. Therefore, the time for waiting for business handling by the user can be shortened, the resource migration planning mode is more reasonable, and the user experience is improved.
In an embodiment, the waiting for the to-do business to end includes:
the business to be handled is completed; and/or the number of the groups of groups,
and canceling the to-be-handled service.
Here, whether the first resource has the to-do business is determined through verification, and if the first resource has the to-do business, the migration of the first resource is confirmed to be executed after the to-do business is completed and/or canceled. Because the business to be handled of some resources can be completed rapidly, for example, the user network broadband is opened, and after the business to be handled is completed, the migration of the first resource is confirmed to be executed; the to-do business of some resources needs to wait for a long time, so that the to-do business of the resources can be canceled, and whether to continue to transact the to-do business is determined after migration; and, because the first resource includes at least one resource, it is possible to wait for a part of the to-do business of the first business to be completed and cancel the rest of the to-do business as needed.
In an embodiment, after the confirming that the migration of the first resource is performed, the method further comprises:
updating network parameters of the first resource; the network parameters include at least one of:
a rack location to which the first resource belongs;
a machine room to which the first resource belongs;
the circuit name of the circuit in which the first resource is located;
the optical path name of the optical path where the first resource is located.
After confirming that the migration of the first resource is executed, checking by the system whether the resource equipment in the target machine room is put on shelf, whether the frame position to which the first resource belongs is updated, and changing the information of the attribution space of the resource through the equipment, the network element and other resources after the migration, thereby updating the network parameters of the first resource after the migration, namely updating the network parameters corresponding to the first resource, wherein the network parameters comprise the frame position to which the first resource belongs, the machine room to which the first resource belongs, the circuit name of the circuit in which the first resource belongs and/or the light path name of the light path in which the first resource belongs. Therefore, the system can automatically update the information corresponding to the migrated resources, realize closed-loop management of the resources end to end and improve the accuracy of the resources.
Here, the rack to which the equipment object belongs is identified by the rack field, the rack position to which the rack object belongs is identified by the rack position field, the machine room to which the rack position object belongs is identified by the machine room field, and the site to which the machine room belongs is identified by the site field, so that the equipment object can be related to the machine room and the site in which the equipment is located through the fields.
In an embodiment, after the performing the migration of the first resource, the method further includes:
the routing information of the first resource is modified.
The machine frame to which the equipment object belongs is identified through the machine frame field, the machine frame position to which the machine frame object belongs is identified through the machine frame position field, the machine room to which the machine frame position object belongs is identified through the machine room field, and the site to which the machine room belongs is identified through the site field, so that the equipment object can be related to the machine room in which the equipment is located through the fields, and the routing information of the resource after migration is converted into the routing information of the machine room in which the resource before migration is located, wherein the routing information comprises network segments and/or IP addresses, the data transmission of the resource after migration is realized without interruption, and service shutdown and migration change are not needed.
In an embodiment, the validating performs migration of the first resource, comprising:
outputting a third prompt; the third hint is used for prompting that the migration of the first resource is about to be performed;
confirming execution of migration of the first resource upon receipt of a second response regarding the third hint; the second response indicates that execution of the migration of the first resource is confirmed.
And outputting a third prompt for prompting that the migration of the first resource is about to be performed, wherein the second response represents confirmation of executing the migration of the first resource, and executing the migration of the first resource after receiving the second response about the third prompt. Here, the third hint includes attribute information of the resource before and after migration, a verification result of the business to be handled, and/or attribute information of the associated resource, and by providing comparison of the resource data before and after migration, a data basis can be provided for evaluating the possible influence caused by the migration of the resource. The prompting object of the third prompt can be a user inputting the first information or another auditor.
Therefore, the comparison of the resource data before and after migration is provided, so that a user or an auditor can conveniently judge the influence of the migration, and the efficiency of resource migration in the comprehensive resource management system is improved.
The present application will be described in further detail with reference to examples of application.
Referring to fig. 4, a corresponding resource migration method, a machine room migration flow includes: migration application (selecting migration resources), migration audit, resource adjustment after migration and archiving.
Migration application: filling and modifying the business bill main body information, including contents such as business bill titles, required completion time and the like; the selection of migration data and migration verification are completed, and the list of function points is shown in table 1.
TABLE 1
As shown in fig. 5, an interface schematic diagram of a migration application for resource migration, where information to be filled in during the migration application is as follows:
the business bill basic information comprises a business bill theme, a bill dispatching department, a bill dispatching person, a contact way, a bill dispatching time, a acceptance time limit, a processing time limit, a completion time and remarks.
Source and destination machine room information: machine room name, machine room ID.
Source machine room lower equipment (network element) presents: device (network element) name, device (network element) ID. The graphical interface presents the resources to be selected in a tree form according to the types of wireless, transmission internal lines, public, transmission external lines and client side service equipment, and a user selects the resources through a check box or inputs the equipment name and/or the resource ID.
The fusion migration is selected, and the equipment in the same machine room can be connected without disconnecting the jump fiber and the like; and if the cutting and transferring are selected, the equipment is cut and transferred independently, and all the connections of the transferred equipment are required to be disconnected.
And selecting equipment needing to be migrated through the resource type, clicking on 'resource selection', and entering a resource utilization selection interface. Clicking determines that the selected device data is presented in a list.
Clicking on "migrate resource preview verification" may verify the selected migrate device as well as the associated device.
As shown in fig. 6 to 8, the interface schematic diagrams of another migration application for resource migration are shown, and the information previewed in the migration application process is as follows:
the selected resource information is previewed.
And verifying the in-transit service list information, judging whether the to-be-handled service exists, prompting that the to-be-handled service cannot go to the next step, and if the to-be-handled service does not exist, directly submitting the to-be-handled service to the next step.
And obtaining the jump fiber and fiber core connection data of the resource to be migrated, wherein the migration equipment can know other associated equipment through the association relation (jump fiber or jumper) of the equipment port, so that the system can know all equipment directly associated or indirectly associated with the equipment, and the equipment can enter a main page for submission after no problem.
Migration audit: migration audit presents the service bill information and migration data information of response; checking and presenting selected information, and enabling the migration fusion check box to be consistent with the application time and not selectable; the audit can check the attribute information of the resources before and after migration, the verification result of the business to be handled and/or the attribute information of the associated resources, such as the interface schematic diagram of the migration audit of another resource migration shown in fig. 9.
And (3) resource adjustment after migration: after the equipment is migrated, the equipment is put on a rack again, the attribution space information of the resources is changed through the equipment, network elements and other resources after the equipment is put on the rack, the attribution machine room of the equipment is determined through the existing machine frame position by changing the machine frame position field of the equipment attribution, and therefore the equipment is related to the attribution machine room. Another interface schematic for post-migration resource adjustment for resource migration is shown in fig. 10.
As shown in fig. 11, a system architecture diagram of resource migration is shown, where the whole system architecture is divided into four layers, namely a presentation layer, a service logic layer and a data access layer. The front end is a presentation layer in the whole architecture system, and the back end is divided into a service layer, a business logic layer and a data access layer in the whole architecture system. The system is fully realized in a system layering mode, the standardized implementation is realized, the logic layer is multiplexed, the expansibility is strong, the safety is high, the maintenance is convenient, and the like.
In order to implement the method of the embodiment of the present application, the embodiment of the present application further provides a device for resource migration, as shown in fig. 12, where the device includes:
a first receiving unit 1201 for receiving first information; the first information is used for indicating a first resource to be migrated;
a first determining unit 1202, configured to determine, according to the first information, at least one first service that uses the first resource;
a first execution unit 1203 configured to confirm that migration of the first resource is performed, in a case where the first resource includes all second resources; wherein the second resource is all resources used by the at least one first service.
Wherein, in one embodiment, the apparatus further comprises:
a first output unit configured to output a first hint if the first resource does not include a part of the second resource; the first hint is used for prompting to migrate the part of the second resource;
a second receiving unit for receiving a first response regarding the first prompt; said first response being for acknowledging migration of said portion of said second resource;
and the second execution unit is used for confirming to execute the migration of the first resource and the part of the second resource based on the first response.
In one embodiment, the apparatus further comprises:
the second output unit is used for outputting a second prompt; the second hint is to hint information about the second resource.
In one embodiment, the apparatus further comprises:
an updating unit, configured to update a network parameter of the first resource; the network parameters include at least one of:
a rack location to which the first resource belongs;
a machine room to which the first resource belongs;
the circuit name of the circuit in which the first resource is located;
the optical path name of the optical path where the first resource is located.
In one embodiment, the first executing unit 1203 is configured to:
determining whether the first resource has a service to be handled;
and under the condition that the first resource has the business to be handled, confirming the migration of the first resource to be executed after the business to be handled is finished.
In one embodiment, the waiting for the to-do business to end includes:
the business to be handled is completed;
and/or the number of the groups of groups,
and canceling the to-be-handled service.
In one embodiment, the first executing unit 1203 is configured to:
outputting a third prompt; the third hint is used for prompting that the migration of the first resource is about to be performed;
confirming execution of migration of the first resource upon receipt of a second response regarding the third hint; the second response indicates that execution of the migration of the first resource is confirmed.
In practical application, the first receiving unit 1201, the second receiving unit, and the second output unit may be implemented by a communication interface in a device based on resource migration, the first determining unit 1202, the second executing unit, and the updating unit may be implemented by a processor in the device based on resource migration, and the first executing unit 1203 and the first output unit may be implemented by a processor in the device based on resource migration in combination with the communication interface.
It should be noted that: in the device for resource migration provided in the above embodiment, only the division of each program module is used for illustration, and in practical application, the process allocation may be performed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules, so as to complete all or part of the processes described above. In addition, the device for migrating resources provided in the foregoing embodiment and the method embodiment for migrating resources belong to the same concept, and specific implementation processes of the device and the method embodiment are detailed in the method embodiment, which is not repeated herein.
Based on the hardware implementation of the program modules, and in order to implement the method for resource migration according to the embodiment of the present application, the embodiment of the present application further provides a server, as shown in fig. 13, where the server 1300 includes:
a communication interface 1310 capable of information interaction with other devices such as network devices and the like;
processor 1320, coupled to communication interface 1310, is configured to interact with other devices to perform methods provided by one or more of the above-described aspects when the computer program is run. And the computer program is stored on memory 1330.
Specifically, the communication interface 1310 is configured to:
receiving first information; the first information is used for indicating a first resource to be migrated; the processor 1320 is configured to:
determining at least one first service using the first resource according to the first information;
confirming that migration of the first resource is performed in the case that the first resource includes all second resources; wherein the second resource is all resources used by the at least one first service.
Wherein, in one embodiment, the communication interface 1310 is configured to:
outputting a first hint if the processor 1320 determines that the first resource does not include a portion of the second resource; the first hint is used for prompting to migrate the part of the second resource;
receiving a first response regarding the first prompt; said first response being for acknowledging migration of said portion of said second resource;
the processor 1320 is configured to:
based on the first response, it is confirmed that the migration of the first resource and the portion of the second resource is performed.
In one embodiment, the communication interface 1310 is configured to:
outputting a second prompt; the second hint is to hint information about the second resource.
In one embodiment, the processor 1320 is configured to:
updating network parameters of the first resource; the network parameters include at least one of:
a rack location to which the first resource belongs;
a machine room to which the first resource belongs;
the circuit name of the circuit in which the first resource is located;
the optical path name of the optical path where the first resource is located.
In one embodiment, the processor 1320 is configured to:
determining whether the first resource has a service to be handled;
and under the condition that the first resource has the business to be handled, confirming the migration of the first resource to be executed after the business to be handled is finished.
In one embodiment, the waiting for the to-do business to end includes:
the business to be handled is completed;
and/or the number of the groups of groups,
and canceling the to-be-handled service.
In one embodiment, the communication interface 1310 is configured to:
outputting a third prompt; the third hint is used for prompting that the migration of the first resource is about to be performed;
the processor 1320 is configured to:
confirming execution of the migration of the first resource in the event that the communication interface 1310 receives a second response regarding the third hint; the second response indicates that execution of the migration of the first resource is confirmed.
Of course, in actual practice, the various components of server 1300 are coupled together by bus system 1340. It is to be appreciated that the bus system 1340 is used to implement the connected communications between these components. The bus system 1340 includes, in addition to data buses, a power bus, a control bus, and a status signal bus. The various buses are labeled as bus system 1340 in fig. 13 for clarity of illustration.
The memory 1330 in the embodiment of the present application is used to store various types of data to support the operation of the server 1300. Examples of such data include: any computer program for operating on server 1300.
It is to be appreciated that the memory 1330 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory 1330 described by embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The methods disclosed in the embodiments of the present application described above may be applied to the processor 1320 or implemented by the processor 1320. Processor 1320 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the methods described above may be performed by integrated logic circuitry in hardware in processor 1320 or by instructions in software. The processor 1320 may be a general purpose processor, DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 1320 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the application can be directly embodied in the hardware of the decoding processor or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium in the memory 1330, and the processor 1320 reads the program in the memory 1330 to perform the steps of the method described above in connection with its hardware.
Optionally, when the processor 1320 executes the program, a corresponding flow implemented by the server in each method of the embodiment of the present application is implemented, which is not described herein for brevity.
In an exemplary embodiment, the present application also provides a storage medium, i.e., a computer storage medium, in particular a computer readable storage medium, for example, including a memory 1330 storing a computer program executable by a processor 1320 of an electronic device to perform the steps described in the foregoing method. The computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, electronic device, and method may be implemented in other manners. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Alternatively, the above-described integrated units of the present application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The technical schemes described in the embodiments of the present application may be arbitrarily combined without any collision. Unless otherwise indicated and defined, the term "connected" shall be construed broadly, and for example, may be electrical, may be in communication with the interior of two elements, may be in direct communication, may be in indirect communication via an intermediary, and may be understood by those of ordinary skill in the art in view of the specific meaning of the term.
In addition, in the present examples, "first," "second," etc. are used to distinguish similar objects and not necessarily to describe a particular order or sequence. It is to be understood that the "first\second\third" distinguishing objects may be interchanged where appropriate such that embodiments of the application described herein may be practiced in sequences other than those illustrated or described herein.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Various combinations of the features described in the embodiments may be performed without contradiction, for example, different embodiments may be formed by combining different features, and various possible combinations of the features in the present application are not described further to avoid unnecessary repetition.

Claims (9)

1. A method of resource migration, the method comprising:
receiving first information; the first information is used for indicating a first resource to be migrated;
determining at least one first service using the first resource according to the first information;
confirming that migration of the first resource is performed in the case that the first resource includes all second resources; wherein the second resource is all resources used by the at least one first service;
the method further comprises the steps of:
outputting a first hint if the first resource does not include a portion of the second resource; the first hint is used for hinting a second resource of the migration part;
receiving a first response regarding the first prompt; the first response is used to confirm that the second resource of the portion was migrated;
based on the first response, migration of the first resource and the portion of the second resource is confirmed to be performed.
2. The method of resource migration according to claim 1, wherein after determining at least one first service using the first resource based on the first information, the method further comprises:
outputting a second prompt; the second hint is to hint information about the second resource.
3. The method of resource migration of claim 1, wherein after the confirming that the migration of the first resource is performed, the method further comprises:
updating network parameters of the first resource; the network parameters include at least one of:
a rack location to which the first resource belongs;
a machine room to which the first resource belongs;
the circuit name of the circuit in which the first resource is located;
the optical path name of the optical path where the first resource is located.
4. The method of resource migration according to claim 1, wherein said confirming that migration of said first resource is performed comprises:
determining whether the first resource has a service to be handled;
and under the condition that the first resource has the business to be handled, confirming the migration of the first resource to be executed after the business to be handled is finished.
5. The method for migrating resources according to claim 4, wherein waiting for the to-do business to end comprises:
the business to be handled is completed; and/or the number of the groups of groups,
and canceling the to-be-handled service.
6. The method of resource migration according to claim 1, wherein said confirming that migration of said first resource is performed comprises:
outputting a third prompt; the third hint is used for prompting that the migration of the first resource is about to be performed;
confirming execution of migration of the first resource upon receipt of a second response regarding the third hint; the second response indicates that execution of the migration of the first resource is confirmed.
7. An apparatus for resource migration, comprising:
a first receiving unit configured to receive first information; the first information is used for indicating a first resource to be migrated;
a first determining unit, configured to determine, according to the first information, at least one first service that uses the first resource;
the first execution unit is used for confirming to execute the migration of the first resource under the condition that the first resource comprises all second resources; wherein the second resource is all resources used by the at least one first service;
a first output unit configured to output a first hint if the first resource does not include a part of the second resource; the first hint is used for prompting to migrate the part of the second resource;
a second receiving unit for receiving a first response regarding the first prompt; said first response being for acknowledging migration of said portion of said second resource;
and the second execution unit is used for confirming to execute the migration of the first resource and the part of the second resource based on the first response.
8. A server, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of resource migration of any of claims 1 to 6 when the computer program is run.
9. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method of resource migration according to any one of claims 1 to 6.
CN202011497631.0A 2020-12-17 2020-12-17 Resource migration method, device, server and storage medium Active CN114650319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011497631.0A CN114650319B (en) 2020-12-17 2020-12-17 Resource migration method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011497631.0A CN114650319B (en) 2020-12-17 2020-12-17 Resource migration method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN114650319A CN114650319A (en) 2022-06-21
CN114650319B true CN114650319B (en) 2023-11-03

Family

ID=81990977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011497631.0A Active CN114650319B (en) 2020-12-17 2020-12-17 Resource migration method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN114650319B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102369688A (en) * 2011-04-07 2012-03-07 华为技术有限公司 Method for adjusting resources dynamically and scheduling device
CN102750178A (en) * 2012-06-08 2012-10-24 华为技术有限公司 Virtualization management method of communication equipment hardware resources, and device related to method
CN102917025A (en) * 2012-09-21 2013-02-06 江苏乐买到网络科技有限公司 Method for business migration based on cloud computing platform
CN102955675A (en) * 2011-08-19 2013-03-06 株式会社日立制作所 Method and apparatus to improve efficiency in the use of resources in data center
CN104572179A (en) * 2014-12-19 2015-04-29 华为技术有限公司 IAAS (infrastructure as a service) software upgrading method and device
CN104615598A (en) * 2013-11-04 2015-05-13 南京中兴新软件有限责任公司 Migration processing method and device of metadata server
JP2016212690A (en) * 2015-05-11 2016-12-15 株式会社日立製作所 Data migration tuning device and data migration tuning method
CN106301876A (en) * 2015-06-26 2017-01-04 中兴通讯股份有限公司 Physical machine upgrade method, business migration method and device
CN107222891A (en) * 2017-05-25 2017-09-29 西安电子科技大学 Based on the two benches C RAN carrier wave emigration dispatching methods for improving LR algorithm
CN108874411A (en) * 2017-05-12 2018-11-23 华为技术有限公司 A kind of method and related system of system infrastructure upgrading
CN110737467A (en) * 2018-07-18 2020-01-31 中移(苏州)软件技术有限公司 service migration method and device
WO2020198884A1 (en) * 2019-04-05 2020-10-08 Grass Valley Canada System and method of identifying equivalents for task completion

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10795539B2 (en) * 2013-12-10 2020-10-06 International Business Machines Corporation Visualizing migration of a resource of a distributed computing environment
US11232494B2 (en) * 2014-10-28 2022-01-25 Deskpass Corporation Resource utilization management

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102369688A (en) * 2011-04-07 2012-03-07 华为技术有限公司 Method for adjusting resources dynamically and scheduling device
CN102955675A (en) * 2011-08-19 2013-03-06 株式会社日立制作所 Method and apparatus to improve efficiency in the use of resources in data center
CN102750178A (en) * 2012-06-08 2012-10-24 华为技术有限公司 Virtualization management method of communication equipment hardware resources, and device related to method
CN102917025A (en) * 2012-09-21 2013-02-06 江苏乐买到网络科技有限公司 Method for business migration based on cloud computing platform
CN104615598A (en) * 2013-11-04 2015-05-13 南京中兴新软件有限责任公司 Migration processing method and device of metadata server
CN104572179A (en) * 2014-12-19 2015-04-29 华为技术有限公司 IAAS (infrastructure as a service) software upgrading method and device
JP2016212690A (en) * 2015-05-11 2016-12-15 株式会社日立製作所 Data migration tuning device and data migration tuning method
CN106301876A (en) * 2015-06-26 2017-01-04 中兴通讯股份有限公司 Physical machine upgrade method, business migration method and device
CN108874411A (en) * 2017-05-12 2018-11-23 华为技术有限公司 A kind of method and related system of system infrastructure upgrading
CN107222891A (en) * 2017-05-25 2017-09-29 西安电子科技大学 Based on the two benches C RAN carrier wave emigration dispatching methods for improving LR algorithm
CN110737467A (en) * 2018-07-18 2020-01-31 中移(苏州)软件技术有限公司 service migration method and device
WO2020198884A1 (en) * 2019-04-05 2020-10-08 Grass Valley Canada System and method of identifying equivalents for task completion

Also Published As

Publication number Publication date
CN114650319A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN108346028B (en) Business approval processing method, device and system
US10331549B2 (en) Collaborative computer aided test plan generation
CN109800154B (en) Test data loading method and device, computer equipment and storage medium
CN108984712A (en) Counting method, equipment and readable storage medium storing program for executing are made based on business scenario
CN110069297A (en) Abnormality eliminating method, device, computer equipment and storage medium based on Spring MVC
CN111984239B (en) Page configuration method, page configuration device, server and storage medium
CN112559635B (en) Service processing method, device, equipment and medium for Ethernet alliance chain node
CN111124917A (en) Public test case management and control method, device, equipment and storage medium
CN110727948B (en) Intelligent contract auditing method and device, computer equipment and storage medium
CN107357721B (en) Method and device for testing system
CN107015902A (en) A kind of method of testing and equipment
CN111144837A (en) Flow arrangement method and device, storage medium and electronic equipment
CN104572439A (en) Regression alert method and system
CN114650319B (en) Resource migration method, device, server and storage medium
CN104252413A (en) Automatic script generation method, device and system
CN105988785A (en) RPC (remote procedure call) service development method and device
CN112734387A (en) Document approval method and device, electronic equipment and storage medium
US20160371624A1 (en) Quality Control Checklist Systems and Methods
CN115827051A (en) Software integration management system, method and server
CN115617780A (en) Data import method, device, equipment and storage medium
CN115629743A (en) Service component arranging method, service scheduling method and device, electronic equipment and storage medium
CN111090638A (en) Method and device for comparing transaction functions in database migration
CN110618991A (en) Method, system, equipment and storage medium for automatically inputting parameter values
CN112819554B (en) Service processing method and device based on page operation and computer equipment
CN114090419A (en) Program testing method, system, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant