Business processing method and device, equipment and storage medium
By acquiring migration information on the server side and adjusting client access, the high cost and resource consumption problems caused by resending multi-client service requests are solved, and the service recovery efficiency and reliability are improved.
Patent Information
- Application Number
- CN202310690153.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-12
- Publication Date
- 2024-12-13
AI Technical Summary
During the server-side service switching, service requests from multiple clients are resent to the new server. The existing technology triggers service recovery operations by contacting the client account, resulting in high costs, high resource consumption and low efficiency.
Obtain business migration information during server migration, determine the available status of the business, adjust the target client access to ensure access recovery, reduce system resource consumption and improve efficiency.
It realizes automatic determination of whether the client access service will return to normal on the server side, reducing costs and resource consumption, and improving efficiency and business reliability.
Smart Images

Figure CN119135747A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a business processing method, device, equipment and storage medium. Background Art
[0002] Since the client code cannot be modified by itself and the business security requirements are high, service operation and maintenance personnel cannot directly access the client. When the service on the server is switched, all client business requests need to be resent to the new server.
[0003] In the related art, it is usually necessary to contact the client accounts corresponding to all the clients, and confirm whether the access services of all the clients are restored by responding to the service recovery determination operation triggered by the client accounts corresponding to all the clients. However, when there are many clients corresponding to a service, the method of determining whether the access services of the clients are restored by responding to the service recovery determination operation triggered by the client accounts makes the cost of determining whether the access services of the clients are restored high, the system resource consumption is large, and the efficiency is low. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a business processing method, device, equipment and storage medium.
[0005] On the one hand, the present application proposes a business processing method, the method comprising:
[0006] In a migration process in which the first server migrates a service in the first server to a second server, obtaining service migration information; the service migration information is used to characterize a migration status of the service in the migration process;
[0007] Determine service availability status information of the service according to the service migration information; the service availability status information is used to indicate whether the service can be normally accessed by the client;
[0008] In a case where it is determined based on the service availability status information that the first target service in the second server is normally accessible to the client, target access status information of the service in the target server being accessed by at least one client is determined; the target server includes the first server and the second server; the first target service is a service in the first server that has been migrated to the second server;
[0009] When it is determined that the target access status information indicates that the target client accesses a second target service in the first server, the second target service is adjusted so that the target client accesses the second server; the second target service is a service in the first server other than the first target service.
[0010] On the other hand, the present application proposes a service processing device, the device comprising:
[0011] A service migration information acquisition module, used to acquire service migration information during a migration process in which a first server migrates a service in the first server to a second server; the service migration information is used to characterize a migration status of the service during the migration process;
[0012] A service availability status information determination module, used to determine the service availability status information of the service according to the service migration information; the service availability status information is used to indicate whether the service can be normally accessed by the client;
[0013] a target access status information determination module, configured to determine target access status information that a service in a target server is accessed by at least one client, when it is determined based on the service availability status information that a first target service in the second server is normally accessible to a client; the target server includes the first server and the second server; the first target service is a service in the first server that has been migrated to the second server;
[0014] An adjustment module is used to adjust the second target business in the first server when it is determined that the target access status information indicates that the target client accesses the second target business, so that the target client accesses the second server; the target client is any one of the at least one client, and the second target business is a business in the first server except the first target business.
[0015] In an optional embodiment, the service migration information includes a candidate server where the service is currently located, and the candidate server is any one of the first server and the second server; the service availability status information determination module includes:
[0016] an input / output operation recovery determination unit, configured to determine whether the first target service recovers input / output operations when the candidate server is the second server;
[0017] A first status information determining unit is configured to determine, when determining that the first target service resumes input and output operations, that the service availability status information of the first target service is: the first target service is in a service access availability status that can be normally accessed by the client in the second server;
[0018] The second status information determining unit is used to determine the service availability status information of the first target service as follows: the first target service is in a service access unavailable state in the second server and cannot be normally accessed by the client when it is determined that the first target service has not resumed input and output operations.
[0019] In an optional embodiment, the migration information further includes block device migration information, shared file system migration information, service sharing migration information and virtual Internet Protocol address migration information, and the recovery input and output operation determination unit includes:
[0020] A migration data acquisition subunit, configured to acquire the block device migration information, the shared file system migration information, the service sharing migration information and the virtual Internet Protocol address migration information from the second server;
[0021] a link establishment determination subunit, configured to determine whether to establish access link information between the client and the first target service in the second server, when determining that the second server mounts a block device based on the block device migration information, determining that the second server mounts a shared file system based on the shared file system information, determining that the second server starts a business sharing service based on the business sharing migration information, and determining that the second server enables the virtual Internet Protocol address information of the first target service based on the virtual Internet Protocol address migration information;
[0022] a recovery subunit, configured to determine that the first target service resumes input and output operations when it is determined that the access link information between the client and the first target service is established in the second server;
[0023] The unrecovered subunit is used to determine that the first target service has not recovered the input and output operations when it is determined that the access link information between the client and the first target service is not established in the second server.
[0024] In an optional embodiment, the target server includes at least one service, the at least one service includes the first target service and the second target service, and the target access state information determination module includes:
[0025] A traversal unit, used to traverse the service configuration files corresponding to each service in the target server in sequence;
[0026] a link establishment determination unit, configured to determine whether access link information between at least one client and each service is established in the target server when traversing the service configuration file corresponding to each service;
[0027] A generating unit, configured to generate access status information of each service being accessed by at least one client according to the access link information, sharing information and attribute information of the target server between at least one client and each service, when determining that access link information between at least one client and each service is established in the target server; wherein the sharing information represents at least one of virtual Internet Protocol address information corresponding to each service, access permission information corresponding to each service and service parameter information corresponding to each service;
[0028] The access status information processing unit is used to obtain the target access status information of the target server being accessed by at least one client according to the access status information of each service being accessed by at least one client.
[0029] In an optional embodiment, the link establishment determination unit includes:
[0030] An address acquisition subunit, configured to acquire virtual Internet Protocol address information corresponding to each service and Internet Protocol address information corresponding to at least one client;
[0031] a link establishment subunit, configured to determine access link information between at least one client and each service to be established in the target server when it is determined that the Internet Protocol address information corresponding to at least one client matches the virtual Internet Protocol address information corresponding to each service;
[0032] The link not established subunit is used to determine that access link information between at least one client and each service is not established in the target server when it is determined that there is no match between the Internet Protocol address information corresponding to at least one client and the virtual Internet Protocol address information corresponding to each service.
[0033] In an optional embodiment, the device further comprises:
[0034] A first storage module is used to store access link information between at least one client and each service in a preset database when there is no access link information between at least one client and each service in the preset database; wherein the access link information stored in the preset database is used to determine access status information of each service accessed by the client;
[0035] The second storage module is used to update the determination time of the corresponding access link information in the preset database based on the currently determined determination time of the access link information between at least one client and each service, when there is access link information between at least one client and each service in the preset database; wherein the access link information after the time update is used to determine the access status information of each service accessed by the client.
[0036] In an alternative embodiment,
[0037] The adjustment module is used to adjust the second target business when it is determined that the access link information between at least one client and each business includes target access link information based on the access status information of each business being accessed by at least one client, so as to establish the access link information between the target client and the second target business in the second server; the target access link information is the access link information between the target client and the second target business.
[0038] In an optional embodiment, the adjustment module includes:
[0039] a migration unit, configured to migrate the second target service and the virtual Internet Protocol address information corresponding to the second target service to the second server;
[0040] A response unit is used to adjust the access service of the target client in response to a service access retry request sent by the target client when the access duration of the target client accessing the first server meets a preset condition, so that the target client can access the virtual Internet Protocol address information corresponding to the second target service in the second server, so as to establish access link information between the target client and the second target service in the second server.
[0041] On the other hand, the present application proposes an electronic device for business processing, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the business processing method as described above.
[0042] On the other hand, the present application proposes a computer-readable storage medium, which stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the business processing method as described above.
[0043] On the other hand, the present application proposes a computer program product, which implements the business processing method as described above when the computer program is executed by a processor.
[0044] The business processing method, apparatus, device and storage medium proposed in the embodiments of the present application obtain business migration information during the migration process of the first server migrating the business in the first server to the second server, determine the business availability status information of the business according to the business migration information, and when it is determined based on the business availability status information that the first target business that has been migrated to the second server is in a business access availability state that can be normally accessed by the client, determine the target access status information of the business in the target server that is accessed by at least one client, and when it is determined that the target access status information indicates that the target client accesses the second target business in the first server, it indicates that the access business of the target client is still on the first server, that is, the access business of the target client has not been restored, that is, the second server has not restored the business access in the first server, and at this time, the second target business can be adjusted to enable the target client to access the business in the second server. Therefore, when the first target business on the server side is migrated, the target access status information of the target server on the server side accessed by the client can be automatically determined, and whether the client's access business has returned to normal can be automatically determined based on the target access status information corresponding to the target server on the server side, thereby achieving the goal of detecting the client's access status information on the server side to determine whether the client's access business has returned to normal, thereby reducing the cost of determining whether the client's access business has returned to normal and the consumption of system resources, and improving the efficiency of determining whether the client's access business has returned to normal and business reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 The present invention is a schematic diagram of an implementation environment of a business processing method according to an exemplary embodiment.
[0047] Figure 2 A process diagram of a business processing method according to an exemplary embodiment is shown Figure 1 .
[0048] Figure 3A process diagram of a business processing method according to an exemplary embodiment is shown Figure 2 .
[0049] Figure 4 The present invention is a flow chart showing a process of determining target access status information of a target server being accessed by at least one client according to an exemplary embodiment.
[0050] Figure 5 The figure is a schematic diagram of access link information migration according to an exemplary embodiment.
[0051] Figure 6 A process diagram of a business processing method according to an exemplary embodiment is shown Figure 3 .
[0052] Figure 7 The figure is a schematic diagram of a service access link information page according to an exemplary embodiment.
[0053] Figure 8 The figure is a schematic diagram of a migration task status page according to an exemplary embodiment.
[0054] Fig. 9 The invention is a block diagram of a service processing device according to an exemplary embodiment.
[0055] Fig.10 A hardware structure block diagram of a server provided according to an exemplary embodiment. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0058] In order to make the purpose, technical solution and advantages disclosed in the embodiments of the present application more clearly understood, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present application and are not used to limit the embodiments of the present application.
[0059] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0060] Cloud computing refers to the delivery and use model of IT infrastructure, which means obtaining required resources through the network in an on-demand and easily scalable manner; in a broad sense, cloud computing refers to the delivery and use model of services, which means obtaining required services through the network in an on-demand and easily scalable manner. This service can be related to IT and software, the Internet, or other services. Cloud computing is the product of the development and integration of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing.
[0061] With the development of the Internet, real-time data streams, and the diversification of connected devices, as well as the demand for search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Different from the previous parallel distributed computing, the emergence of cloud computing will promote revolutionary changes in the entire Internet model and enterprise management model from a conceptual perspective.
[0062] In order to better understand the technical solutions of the embodiments of the present application, the technical terms involved in the embodiments of the present application are first explained:
[0063] Client: The device on which the client account uses the service.
[0064] Server: The server that provides the service.
[0065] Private network gateway: When a client sends a request to a server, the gateway forwards the request to the server.
[0066] Link: In the client-private network gateway-server development model, the complete link from client to private network gateway to server is called a link.
[0067] Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a business processing method according to an exemplary embodiment. Figure 1 As shown, the implementation environment may include at least a client 01, a first server 02, a second server 03 and a service management node 04. The client 01, the first server 02, the second server 03 and the service management node 04 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0068] Specifically, the client 01 is used to send a service access request to the first server 02 and the second server 03. Exemplarily, the client 01 may include: a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.
[0069] The first server 02 can be used to actively or passively migrate the services therein to the second server 03. Exemplarily, the first server 02 and the second server 03 can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0070] Specifically, the service management node 04 can be used to obtain service migration information during the migration process of the service in the first server to the second server; and to determine the service availability status information of the service according to the service migration information; and to determine the target access status information of the service in the target server being accessed by at least one client when the first target service migrated to the second server is in a service access availability state that can be normally accessed by the client based on the service availability status information; and to adjust the second target service to enable the target client to access the service in the second server when the target access status information indicates that the target client accesses the second target service in the first server. Exemplarily, the service management node 04 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0071] It should be noted that Figure 1 This is just an example. In other scenarios, its implementation environment may also be included.
[0072] Figure 2 A process diagram of a business processing method according to an exemplary embodiment is shown Figure 1 This method can be used for Figure 1 In the implementation environment of the embodiment. This specification provides the method operation steps as described in the embodiment or flowchart, but may include more or fewer operation steps based on routine or non-creative work. The order of steps listed in the embodiment is only one way of executing the steps among many steps, and does not represent the only execution order. When the actual system or server product is executed, it can be executed in the order of the method shown in the embodiment or the figure or in parallel (for example, in a parallel processor or multi-threaded processing environment). Specifically, Figure 2 As shown, the method may include:
[0073] S101. Acquire service migration information during a migration process in which a first server migrates a service in the first server to a second server; the service migration information is used to characterize a migration status of the service in the first server during the migration process.
[0074] In this embodiment, the service management node may obtain the service migration information during the migration process of the first server migrating the service in the first server to the second server.
[0075] Optionally, the service migration information may characterize the migration status of the service in the first server during the migration process. Exemplarily, the service migration information may include, but is not limited to: the candidate server where the service is currently located, the block device migration information corresponding to the service, the shared file system migration information corresponding to the service, the service sharing migration information corresponding to the service, and the virtual Internet Protocol address migration information corresponding to the service.
[0076] The candidate server where the service is currently located may be the first server or the second server.
[0077] The block device migration information may be used to indicate whether the block device is migrated from the first server to the second server, that is, whether the first server unmounts the block device and whether the second server mounts the block device.
[0078] The shared file system migration information may be used to indicate whether the file system is migrated from the first server to the second server, that is, whether the first server unmounts the file system and whether the second server mounts the file system.
[0079] The service sharing migration information may be used to indicate whether the service sharing is migrated from the first server to the second server, that is, whether the first server stops the service sharing and whether the second server enables the service sharing.
[0080] The virtual Internet Protocol address migration information can be used to indicate whether the virtual Internet Protocol address (Virtual IP Address, VIP) is migrated from the first server to the second server, that is, whether the first server stops the VIP and whether the second server starts the VIP. It should be noted that the VIP is the entrance to the business. Only when the VIP is started, the business has an entrance to access. If the VIP is stopped, the shared file system corresponding to the business cannot be accessed.
[0081] Optionally, the first server may actively migrate its services to the second server, or may passively migrate its services to the second server when an abnormality occurs in the second server. The embodiment of the present application does not limit the manner of service migration.
[0082] Optionally, the first server and the second server may be NAS servers, where NAS stands for Network Attached Storage.
[0083] S103. Determine service availability status information of the service according to the service migration information; the service availability status information is used to indicate whether the service can be normally accessed by the client.
[0084] In this embodiment, the service management node may analyze the service migration information to determine service availability status information of whether the service can be normally accessed by the client.
[0085] S105. When it is determined based on the service availability status information that the first target service in the second server is able to be normally accessed by the client, determine the target access status information that the service in the target server is accessed by at least one client; the target server includes a first server and a second server; the first target service is a service in the first server that has been migrated to the second server.
[0086] In this embodiment, each service will have corresponding service availability status information. Since there may be abnormal situations during the service migration process, which may result in that not all services in the first server may be migrated to the second server, for the first target service that has been migrated to the second server, the service management node can determine the service availability status information of the first target service based on the service availability status information, and when the first target service that has been migrated to the second server is determined based on the service availability status information of the first target service, and is in a service access availability state that can be normally accessed by the client, the target access status information of all servers accessed by at least one client can be determined.
[0087] Among them, all servers may be defined as target servers, which may include the first server and the second server.
[0088] In other implementations, the target access status information may be determined and recorded by the target server, and the service management node directly obtains the target access status information from the target server. For example, the first server may record the access status information of the client accessing the second target service in the first server that has not yet been migrated to the second server, and the second server may record the access status information of the client accessing the first target service that has been migrated to the second server.
[0089] S107. When it is determined that the target access status information indicates that the target client accesses a second target service in the first server, the second target service is adjusted so that the target client accesses the second server; the target client is any one of the at least one client; the second target service is a service in the first server other than the first target service.
[0090] In this embodiment, when the service management node determines that the target access status information indicates that the target client accesses the second target service in the first server, the service management node may consider that the target client still accesses the service in the first server, that is, the second server has not restored the access status information in the first server. In this case, the service management node may consider that the access service of the first server has not been restored to normal, and the service management node may adjust the second target service accessed by the target client so that the target client accesses the service in the second server. The target client is any one of the at least one client, and the second target service is a service in the first server that has not been migrated to the second server.
[0091] It should be noted that, if it is determined that the target access status information indicates that all clients access the service in the second server, the service management node determines that the access services of all clients are restored normally.
[0092] The embodiment of the present application can automatically determine the target access status information of the target server on the server side accessed by the client when the first target service on the server side is migrated, and automatically determine whether the client's access service has returned to normal based on the target access status information corresponding to the target server on the server side, thereby achieving the goal of detecting the client's access status information on the server side to determine whether the client's access service has returned to normal, thereby reducing the cost of determining whether the client's access service has returned to normal and the consumption of system resources, and improving the efficiency of determining whether the client's access service has returned to normal and the service reliability.
[0093] In an optional embodiment, the service migration information may include a candidate server where the service is currently located, and the candidate server is any one of the first server and the second server. Figure 3 A process diagram of a business processing method according to an exemplary embodiment is shown Figure 2 ,like Figure 3 As shown, in the above step S103, the service availability status information of the service determined according to the service migration information may include:
[0094] S1031. When the candidate server is the second server, determine whether the first target service resumes input and output operations.
[0095] S1033. When it is determined that the first target service resumes input and output operations, the service availability status information of the first target service is determined as follows: the first target service is in a service access availability status in the second server and can be normally accessed by the client.
[0096] S1035. When it is determined that the first target service has not resumed input and output operations, determine that service availability status information of the first target service is: the first target service is in a service access unavailable state in the second server and cannot be normally accessed by the client.
[0097] In this embodiment, when the server where the service is currently located is the second server, the service management node can determine whether the first target service migrated to the second server has resumed input and output (IO) operations, and determine the service availability status information of the first target based on whether the first target service in the second server has resumed input and output operations.
[0098] In one mode, when it is determined that the first target service in the second server has resumed input and output operations, the service management node determines the service availability status information of the first target service as follows: the first target service is in a service access availability status that can be normally accessed by the client in the second server. In another mode, when it is determined that the first target service in the second server has not resumed input and output operations, the service management node determines the service availability status information of the first target service as follows: the first target service is in a service access non-availability status that cannot be normally accessed by the client in the second server.
[0099] It should be noted that, when the candidate server is the first server, the process of determining the business availability status information of the second target business in the first server that has not yet been migrated to the second server is the same as the process of determining the business availability status information of the second target business, that is, whether the second target business is in a business availability status that can be normally accessed by the client in the first server is determined based on whether the second target business has restored input and output operations.
[0100] Since a certain amount of IO will be generated when the business accesses the client, whether the business in the second server has restored IO can accurately determine whether the business can be normally accessed by the client. Therefore, the business availability status information of the first target business is determined by whether the first target business in the second server has restored input and output operations, which can improve the accuracy of determining the business availability status information, thereby improving the accuracy of judging whether the target client's access business has returned to normal and adjusting the target client's access business. In addition, since it is detected on the server side whether the first target business in the second server has restored input and output operations to determine the business access status of the business, there is no need to respond to the recovery operation of the client account to determine the business access status of the business, thereby reducing the cost of determining whether the client's access business has returned to normal and the consumption of system resources, and improving the efficiency of determining whether the client's access business has returned to normal and business reliability.
[0101] In an optional embodiment, the migration information may also include block device migration information, shared file system migration information, service sharing migration information and virtual Internet Protocol address migration information. Figure 3 As shown, in the above step S1031, the above determination of whether the service in the second server resumes input and output operations may include:
[0102] S10311. Obtain block device migration information, shared file system migration information, service sharing migration information, and virtual Internet Protocol address migration information from the second server.
[0103] S10313. Determine whether access link information between the client and the first target service is established in the second server when the second server is determined to mount a block device based on the block device migration information, to mount a shared file system based on the shared file system information, to enable a business sharing service based on the business sharing migration information, and to enable the virtual Internet Protocol address information of the first target service based on the virtual Internet Protocol address migration information.
[0104] S10315. When it is determined that the access link information between the client and the first target service is established in the second server, determine that the first target resumes the input and output operation.
[0105] S10317. When it is determined that the access link information between the client and the first target service is not established in the second server, determine that the first target service has not resumed input and output operations.
[0106] Optionally, since the block device migration information can be used to characterize whether the block device is migrated from the first server to the second server, that is, whether the first server unmounts the block device and whether the second server mounts the block device. The shared file system migration information can be used to characterize whether the file system is migrated from the first server to the second server, that is, whether the first server unmounts the file system and whether the second server mounts the file system. The business sharing migration information can be used to characterize whether the sharing of the business is migrated from the first server to the second server, that is, whether the first server stops the sharing of the business and whether the second server enables the sharing of the business. The virtual Internet Protocol address migration information can be used to characterize whether the VIP of the first target business is migrated from the first server to the second server, that is, whether the first server stops the VIP and whether the second server enables the VIP. In the above steps S10311-S10313, the business management node can obtain the block device migration information, shared file system migration information, business sharing migration information and virtual Internet Protocol address migration information from the second server. Based on the device migration information, it is determined whether the second server mounts the block device, based on the shared file system information, it is determined whether the second server mounts the shared file system, based on the business sharing migration information, it is determined whether the second server starts the business sharing service, and based on the virtual Internet Protocol address migration information, it is determined whether the second server enables the virtual Internet Protocol address information of the first target business. When it is determined that the second server has mounted the block device, mounted the shared file system, started the business sharing service, and enabled the virtual Internet Protocol address information of the first target business, it indicates that the block device, shared file system, business sharing, and virtual Internet Protocol address in the first server have been migrated to the second server. On this basis, the business management node can further determine whether access link information between the client and the first target business in the second server is established in the second server.
[0107] In one implementation, in step S10315, if the service management node determines that access link information between the client and the first target service in the second server has been established in the second server, it is considered that the first target service in the second server has resumed input and output operations.
[0108] In another embodiment, in the above step S10317, if the service management node determines that the access link information between the client and the first target service in the second server is not established in the second server, it is considered that the first target service in the second server has not resumed input and output operations.
[0109] Since whether the second server mounts a block device, whether a shared file system is mounted, whether the business sharing service is turned on, and whether the virtual Internet Protocol address information of the business is enabled are prerequisites for determining whether the business in the second server has resumed input and output operations, when the prerequisite is met, it is further determined whether access link information between the client and the first target business in the second server is established in the second server. If so, it is finally determined that the first target business in the second server has resumed input and output operations. Otherwise, it is determined that the first target business in the second server has not resumed input and output operations. This can improve the accuracy of determining whether the first target business in the second server has resumed IO, thereby improving the accuracy of determining whether the access business of the target client has resumed normal and adjusting the access business of the target client; in addition, since it is detected on the server side whether the second server has established access link information between the client and the first target business in the second server to determine whether the first target business in the second server has resumed input and output operations, there is no need to respond to the recovery operation of the client account, thereby reducing the cost of determining whether the access business of the client has resumed normal and the consumption of system resources, and improving the efficiency of determining whether the access business of the client has resumed normal and the reliability of the business.
[0110] In other implementations, the above steps S10311-S10317 can be performed by the second server, that is, the second server can mount a block device, mount a shared file system, start a business sharing service, and enable the virtual Internet Protocol address information of the business. If it is determined that the access link information between the client and the first target business in the second server is established in the second server, it is determined that the first target business in the second server has resumed input and output operations, otherwise it is determined that the first target business in the second server has not resumed input and output operations. The business management node can directly obtain from the second server whether the first target business in the second server has resumed input and output operations.
[0111] In an optional embodiment, the above method may further include:
[0112] When the service availability status information is a service access availability status, determining that the first target service in the first server is successfully migrated to the second server;
[0113] When the service availability status information indicates that the service access is unavailable, it is determined that the first target service in the first server has not been successfully migrated to the second server.
[0114] In this embodiment, when the service availability status information is a service access available status, indicating that the first target service in the second server has resumed input and output operations at this time, the service management node determines that the migration of the first target service in the first server is successful. When the service availability status information is a service access unavailable status, indicating that the first target service in the second server has not resumed input and output operations at this time, the service management node determines that the first target service has not been migrated successfully. Thus, it is possible to determine whether the first target service in the first server has been successfully migrated based on whether the service is available, thereby improving the accuracy of determining whether the service has been successfully migrated, and further improving the accuracy of adjusting the access service of the target client; in addition, since the determination of whether the service in the first server has been successfully migrated is made on the server side, there is no need to respond to the recovery operation of the client account, thereby reducing the cost of determining whether the client's access service has been restored to normal and the consumption of system resources, and improving the efficiency of determining whether the client's access service has been restored to normal and the service reliability.
[0115] Figure 4 is a flow chart showing a method of determining target access status information of a target server being accessed by at least one client according to an exemplary embodiment. Figure 4 As shown, in an optional embodiment, the target server includes at least one service, and the at least one service includes a first target service and a second target service. Then in the above step S105, the target access status information of determining that the target server is accessed by at least one client may include:
[0116] S1051. Traverse the service configuration files corresponding to each service in the target server in sequence.
[0117] S1053. When traversing the service configuration files corresponding to each service, determine whether access link information between at least one client and each service is established in the target server.
[0118] S1055. When it is determined that access link information is established between at least one client and each service in the target server, access status information of each service accessed by at least one client is generated based on the access link information, sharing information and attribute information of the target server between at least one client and each service; wherein the sharing information represents at least one of the virtual Internet Protocol address information corresponding to each service, the access permission information corresponding to each service and the service parameter information corresponding to each service.
[0119] S1057. Obtain target access status information of a target server accessed by at least one client according to the access status information of each service accessed by at least one client.
[0120] In this embodiment, the target server may include at least one service, and the at least one service includes a first target service and a second target service. Each service corresponds to its own service configuration file, and the service configuration file may be stored in the above-mentioned shared file system. The service management node may sequentially traverse each service on the target server, and when traversing each service, perform the following operations: the service management node determines whether access link information between at least one client and each service is established in the target server, and if so, records the access link information between at least one client and each service that has been established, and if not, traverses the service configuration file corresponding to the next service.
[0121] In one embodiment, the service management node can directly use the access link information between at least one client and each service as the access status information of each service being accessed by at least one client. In another embodiment, the service management node can analyze the access link information, shared information, attribute information of the target server, and detection time of the access link information between at least one client and each service to obtain the access status information of each service being accessed by at least one client; wherein the shared information represents at least one of the virtual Internet Protocol address information corresponding to each service, the access permission information corresponding to each service, and the service parameter information corresponding to each service.
[0122] In this embodiment, after obtaining the access status information of each service accessed by at least one client, the service management node may summarize and analyze the access status information of each service accessed by at least one client to obtain the access status information of the target server accessed by at least one client.
[0123] It should be noted that the access link information between at least one client and each service refers to: a complete link from the client to the private network gateway to the server.
[0124] Since the target server includes a first server and a second server, the above steps S1051 to S1057 include both the service management node traversing the service configuration file for the second target service in the first server and the service management node traversing the service configuration file for the first target service in the second server. When the service configuration file traversing the second target service in the first server, the above “each service” is the second target service, thereby obtaining the access link information of the second target service in the first server accessed by the client. When the service configuration file traversing the first target service in the second server, the above “each service” is the first target service, thereby obtaining the access link information of the first target service in the second server accessed by the client.
[0125] In other embodiments, the above steps S1051 to S1057 can also be performed by the target server, that is, the target server collects link access information in real time, obtains target access status information of the target server being accessed by at least one client, the target server records the target access status information, and the service management node obtains the target access status information from the target server. Since the target server includes a first server and a second server, it can be considered that the first server and the second server collect link access information in real time, obtain access status information of the second target service in the first server and the first target service in the second server being accessed by at least one client, respectively, the first server and the second server each record the corresponding access status information, and the service management node obtains the required access status information from the access status information recorded by the first server and the second server respectively.
[0126] The following is an example to illustrate the target access status information of determining that the target server is accessed by at least one client:
[0127] Assume that there are three services in the target server, namely service 1, service 2 and service 3.
[0128] The service management node first traverses the service configuration file corresponding to service one. When traversing the service configuration file corresponding to service one, it determines whether the target server has established access link information between at least one client and service one. If so, the access status information of service one being accessed by at least one client is generated based on the access link information, shared information and attribute information of the target server between at least one client and service one. If not, the service configuration file corresponding to the next service can be traversed. Then, the service configuration file corresponding to service two is traversed. When traversing the service configuration file corresponding to service two, it determines whether the target server has established access link information between at least one client and service two. If so, the access status information of service two being accessed by at least one client is generated based on the access link information, shared information and attribute information of the target server between at least one client and service two. If not, the service configuration file corresponding to the next service can be traversed. Similarly, the access status information of service three being accessed by at least one client can be obtained. Finally, the service management node obtains the access status information of the target server being accessed by at least one client based on the summary and analysis of the access status information of service one, service two and service three being accessed by at least one client.
[0129] Since the access link information refers to the complete link between the client, the private network gateway and the service, whether the target server is accessed by at least one client can be accurately reflected based on whether the client has established the access link information with the service. Therefore, determining the target access status information based on the access link information between at least one client and each service can improve the accuracy and efficiency of determining the target access status information of the target server being accessed by at least one client, thereby improving the accuracy and efficiency of determining whether the client's access service has returned to normal. In addition, since the target access status information is automatically determined on the target server side, the determination of whether the client's access service has returned to normal is also determined by the server side, without the need to respond to the recovery operation of the client account, thereby reducing the cost of determining whether the client's access service has returned to normal and the consumption of system resources, and improving the efficiency of determining whether the client's access service has returned to normal and the service reliability.
[0130] In an optional embodiment, in the above step S1053, the above determination of whether access link information between at least one client and each service is established in the target server may include:
[0131] The virtual Internet Protocol address information corresponding to each service and the Internet Protocol address information corresponding to at least one client are obtained.
[0132] When it is determined that the Internet Protocol address information corresponding to at least one client matches the virtual Internet Protocol address information corresponding to each service, it is determined that access link information between at least one client and each service is established in the target server.
[0133] When it is determined that there is no match between the Internet Protocol address information corresponding to at least one client and the virtual Internet Protocol address information corresponding to each service, it is determined that no access link information between at least one client and each service is established in the target server.
[0134] In this embodiment, the access link information can be matched in real time through the service VIP and the client Internet Protocol Address (IP) information corresponding to at least one client. Exemplarily, the service management node can parse the VIP corresponding to each service and the IP corresponding to at least one client through the Transmission Control Protocol / Internet Protocol (TCP / IP), and match the VIP corresponding to each service and the client IP to see whether there is at least one client that has established an access connection with the VIP corresponding to each service, that is, to determine whether there is a matching link between the service VIP and the client IP. If so, it is determined that the access link information between at least one client and each service is established in the target server; if not, it is determined that the access link information between at least one client and each service is not established in the target server.
[0135] Since the business VIP is equivalent to the entrance to the business, the business VIP service will have an entrance for access only when it is started. Therefore, the business VIP and client IP are used to determine whether the client has accessed the business, and the access link information can be uniquely determined, thereby improving the accuracy of determining whether at least one access link information is established between the client and each business in the target server, thereby improving the accuracy and efficiency of determining whether the client's access business has returned to normal; in addition, since the access link information is detected in the target server on the server side, the determination of whether the client's access business has returned to normal is also determined by the server side, without responding to the recovery operation of the client account, thereby reducing the cost of determining whether the client's access business has returned to normal and the consumption of system resources, and improving the efficiency of determining whether the client's access business has returned to normal and the reliability of the business.
[0136] In an optional embodiment, after determining the access link information between at least one client and each service established in the target server, the method further includes:
[0137] When there is no access link information between at least one client and each service in the preset database, the access link information between at least one client and each service is stored in the preset database; wherein the access link information stored in the preset database is used to determine the access status information of each service accessed by the client.
[0138] When there is access link information between at least one client and each service in a preset database, the determination time of the corresponding access link information in the preset database is updated based on the currently determined determination time of the access link information between at least one client and each service; wherein the access link information after the time update is used to determine the access status information of each service accessed by the client.
[0139] In this embodiment, after the service management node determines that the access link information between at least one client and each service is established in the target server, the determined access link information can be stored in a preset database. Before storing, the service management node first determines whether the access link information between at least one client and each service currently determined exists in the preset database.
[0140] In one embodiment, if the access link information between at least one client and each service currently determined does not exist in the preset database, the access link information between at least one client and each service is stored in the preset database so that the service management node can subsequently determine the access status information of each service accessed by the client based on the access link information in the preset database.
[0141] In another embodiment, if the preset database contains access link information between at least one currently determined client and each service, the determination time of the access link information between at least one currently determined client and each service is used to update the determination time of the corresponding access link information already existing in the preset database, so that the service management node can subsequently determine the access status information of each service accessed by the client based on the access link information after the time update.
[0142] In this embodiment, when the currently determined access link information does not exist in the preset database, the access link information is stored in the preset database, which can avoid the problem of low determination accuracy of the target access status information and low determination accuracy of whether the client access service is restored due to the loss of the access link information, thereby improving the determination accuracy of whether the client access service is restored and the accuracy of service adjustment; when the currently determined access link information exists in the preset database, the time of the existing access link information can be updated with the newly determined time, avoiding the defects of large system resource consumption and high service processing cost caused by storing duplicate access link information, thereby further reducing the cost of service processing and the consumption of system resources.
[0143] In an optional embodiment, in the above step S107, when it is determined that the target access state information indicates that the target client accesses a second target service in the first server, adjusting the second target service so that the target client accesses the second server includes:
[0144] When it is determined based on the access status information of each service being accessed by at least one client that the access link information between at least one client and each service includes the target access link information, the second target service is adjusted to establish the access link information between the target client and the second target service in the second server; the target access link information is the access link information between the target client and the second target service.
[0145] Since the target client is any one of the at least one client, and the target server includes the first server and the second server, the access status information of the target client accessing the second target service of the first server can be generated based on the target access link information between the target client and the second target service in the first server. The "target access link information between the target client and the second target service in the first server" can be obtained by real-time link collection by the first server, and the link collection process can refer to the above steps S1051 to S1057.
[0146] The service management node can obtain the access link information between at least one client and each service from the access status information of each service accessed by at least one client, and determine whether the access link information between at least one client and each service includes the target access link information between the target client and the second target service. If so, it indicates that the target client still accesses the second target service in the first server, that is, the access link information in the first server has not been migrated to the second server, that is, the second server has not restored the access link information of the first server, and it is considered that the service access of the target client has not been restored. At this time, the service management node can issue an abnormal alarm event, and in response to the abnormal alarm event, adjust the second target service accessed by the target client to establish the access link information between the target client and the second target service in the second server.
[0147] Therefore, in the case of access link information between at least one client and each service, including the target access link information between the target client and the second target service in the first server, it is possible to determine that the access service of the target client is still on the first server, that is, the access service of the target client has not returned to normal, thereby realizing automatic determination of whether the access service of the client has returned to normal through automatic detection of the access link information on the server side, without responding to the recovery operation of the client account, thereby reducing the cost of determining whether the access service of the client has returned to normal and the consumption of system resources, and improving the efficiency of determining whether the access service of the client has returned to normal and the service reliability; in addition, since the access link information refers to the completed link from the client to the private network gateway to the server, determining whether the access service of the target client has returned to normal based on the access link information can improve the accuracy of determining whether the access service of the client has returned to normal.
[0148] The following is an example to illustrate the process of determining whether the client access service is abnormal through access link information:
[0149] Both the first server and the second server will perform link collection in real time. When the block device information, shared file system, business sharing service, and VIP are migrated to the second server, the access link information will also be migrated from the first server to the second server. If the second server does not restore the access link information of the first server, that is, a target client still accesses the second target business in the first server that has not been migrated, the business management node can trigger an abnormal alarm event.
[0150] Figure 5 is a schematic diagram of access link information migration according to an exemplary embodiment. Figure 5 As shown, before the service in the first server is migrated, the access link information in the first server includes link 1, link 2 and link 3. After the service is migrated, the link access information in the second server only includes link 1 and link 2, indicating that the second server has restored link 1 and link 2 in the first server. The service management node will not trigger an abnormal alarm event for link 1 and link 2. However, the second server has not restored link 3 in the first server, that is, there is a situation where a target client still accesses the unmigrated second target service in the first server. The service management node can issue an abnormal alarm event to adjust the second target service so that the target client can access the service in the second server, thereby restoring link 3 to the second server.
[0151] In an optional embodiment, the above-mentioned adjusting the second target service to establish access link information between the target client and the second target service in the second server may include:
[0152] Migrating the second target service and the virtual Internet Protocol address information corresponding to the second target service to the second server;
[0153] When the access duration of the target client to the first server meets the preset conditions, in response to the service access retry request sent by the target client, the access service of the target client is adjusted so that the target client accesses the virtual Internet Protocol address information corresponding to the second target service in the second server, so as to establish the access link information between the target client and the second target service in the second server.
[0154] In one embodiment, after the service management node triggers an abnormal alarm event, it can actively trigger an automatic recovery program to adjust and recover the service. Specifically, the service management node automatically migrates the VIPs corresponding to the first target service and the second target service to the second server. During the migration process, the target client does not perceive the service migration process. Since the target client does not perceive the migration process, the target client may continue to send service access requests to the first server. When it is detected that the access time of the target client sending the service access request to the first server meets the preset condition (for example, exceeds the preset time), the target client continues to send service access retry requests. The service management node adjusts the access service of the target client in response to the service access retry request, so that the target client can access the virtual Internet Protocol address information corresponding to the service in the second server, so as to establish the access link information between the target client and the second target service in the second server. As a result, when there is a situation where the target client still accesses the second target service in the first server that has not yet been migrated, that is, when the second server has not restored the access link information in the first server, the access service exception can be automatically recovered through a service access retry request, thereby improving the efficiency of recovering abnormal access services. Moreover, since the service migration is performed on the server side without the target client's perception, and the access service of the target client is adjusted on the server side at the same time, the entire service adjustment and recovery process does not need to respond to the recovery operation of the client account, thereby reducing the recovery cost of determining the client's access service and the consumption of system resources, and improving the efficiency of recovering the client's access service and service reliability.
[0155] In another implementation, the service management node may send an abnormal alarm event to an operation and maintenance management account, and the operation and maintenance management account triggers a recovery operation to perform recovery processing on the abnormal alarm event.
[0156] The following describes the above service processing method from the perspective of interaction among the client, the first server, the second server, and the service management node:
[0157] Figure 6A process diagram of a business processing method according to an exemplary embodiment is shown Figure 3 ,like Figure 6 As shown, the business processing method includes:
[0158] S201. A client accesses a first server, and access link information is established between the client and a service in the first server.
[0159] S203. The first server initiates migration of the shared service.
[0160] S205. The first server stops the VIP of the service to block the shared IO.
[0161] S207. The first server stops sharing the service.
[0162] S209. The first server unmounts the file system and the block device.
[0163] S2011. The second server mounts the block device and the file system.
[0164] S2013. The second server enables business sharing.
[0165] S2015. The second server enables the service VIP to establish access link information between the client and the service in the second server, thereby restoring shared IO.
[0166] The client accesses the service in the second server to establish access link information with the service in the second server.
[0167] In the above migration process, the service management node obtains service migration information, and determines service availability status information according to the service migration information.
[0168] When it is determined based on the service availability status information that the first target service migrated to the second server is in a service access availability state that can be normally accessed by the client, target access status information that the service in the target server is accessed by at least one client is determined.
[0169] When it is determined that the target access state information indicates that the target client accesses the second target service in the first server, the second target service is adjusted so that the target client accesses the service in the second server.
[0170] In an optional embodiment, the client account may display a service access link information page, and the client account may view the service access link information of the client in real time on the service access link information page. Figure 7 is a schematic diagram of a service access link information page according to an exemplary embodiment. Figure 7As shown, the link status is "connected", indicating that the client has established access link information with the server's service, and the link information is "disconnecting", indicating that the client has not yet established access link information with the server's service.
[0171] In an optional embodiment, the client account may also display a migration task status page corresponding to the shared file system, and the client account may view the migration status of the shared file system in real time on the migration task status page. Figure 8 is a schematic diagram of a migration task status page according to an exemplary embodiment. Figure 8 As shown, the migration status is obtained by analyzing the link access status. The migration status of "accessible" indicates that the access link information between the client and the server is normal. The migration status of "partial access abnormality" indicates that part of the access link information between the client and the server has not been restored normally. The migration status of "all access abnormality" indicates that the access link information between the client and the server has not been restored normally. The migration status of "no link" indicates that the client has not established an access link with the shared file system, that is, the file system does not provide any service.
[0172] In an optional embodiment, the business processing method may further include:
[0173] When the security requirements for the client account are low, an agent program can be installed on the client, and business availability detection can be performed directly on the client through the agent program. When it is detected that the business accessed by the client is still in the first server, the program can be automatically restored directly to migrate the business still in the first server to the second server, so that the client can access the business in the second server, thereby restoring the client's access to the business.
[0174] Fig. 9 is a block diagram of a service processing device according to an exemplary embodiment. Fig. 9 As shown, the service processing device includes:
[0175] The service migration information acquisition module 301 is used to acquire service migration information during the migration process of the first server migrating the service in the first server to the second server; the service migration information is used to characterize the migration status of the service during the migration process;
[0176] A service availability status information determination module 303 is used to determine the service availability status information of the service according to the service migration information; the service availability status information is used to indicate whether the service can be normally accessed by the client;
[0177] The target access status information determination module 305 is used to determine the target access status information that the service in the target server is accessed by at least one client when it is determined based on the service availability status information that the first target service in the second server is normally accessible to the client; the target server includes the first server and the second server; the first target service is the service in the first server that has been migrated to the second server;
[0178] The adjustment module 307 is used to adjust the second target business in the first server when it is determined that the target access status information indicates that the target client accesses the second target business, so that the target client accesses the second server; the target client is any one of the at least one client, and the second target business is a business in the first server except the first target business.
[0179] In an optional embodiment, the service migration information includes a candidate server where the service is currently located, and the candidate server is any one of the first server and the second server; the service availability status information determination module includes:
[0180] an input / output operation recovery determination unit, configured to determine whether the first target service recovers input / output operations when the candidate server is the second server;
[0181] A first status information determining unit is configured to determine, when determining that the first target service resumes input and output operations, that the service availability status information of the first target service is: the first target service is in a service access availability status that can be normally accessed by the client in the second server;
[0182] The second status information determining unit is used to determine the service availability status information of the first target service as follows: the first target service is in a service access unavailable state in the second server and cannot be normally accessed by the client when it is determined that the first target service has not resumed input and output operations.
[0183] In an optional embodiment, the migration information further includes block device migration information, shared file system migration information, service sharing migration information and virtual Internet Protocol address migration information, and the recovery input and output operation determination unit includes:
[0184] A migration data acquisition subunit, configured to acquire the block device migration information, the shared file system migration information, the service sharing migration information and the virtual Internet Protocol address migration information from the second server;
[0185] a link establishment determination subunit, configured to determine whether to establish access link information between the client and the first target service in the second server, when determining that the second server mounts a block device based on the block device migration information, determining that the second server mounts a shared file system based on the shared file system information, determining that the second server starts a business sharing service based on the business sharing migration information, and determining that the second server enables the virtual Internet Protocol address information of the first target service based on the virtual Internet Protocol address migration information;
[0186] a recovery subunit, configured to determine that the first target service resumes input and output operations when it is determined that the access link information between the client and the first target service is established in the second server;
[0187] The unrecovered subunit is used to determine that the first target service has not recovered the input and output operations when it is determined that the access link information between the client and the first target service is not established in the second server.
[0188] In an optional embodiment, the target server includes at least one service, the at least one service includes the first target service and the second target service, and the target access state information determination module includes:
[0189] A traversal unit, used to traverse the service configuration files corresponding to each service in the target server in sequence;
[0190] a link establishment determination unit, configured to determine whether access link information between at least one client and each service is established in the target server when traversing the service configuration file corresponding to each service;
[0191] A generating unit, configured to generate access status information of each service being accessed by at least one client according to the access link information, sharing information and attribute information of the target server between at least one client and each service, when determining that access link information between at least one client and each service is established in the target server; wherein the sharing information represents at least one of virtual Internet Protocol address information corresponding to each service, access permission information corresponding to each service and service parameter information corresponding to each service;
[0192] The access status information processing unit is used to obtain the target access status information of the target server being accessed by at least one client according to the access status information of each service being accessed by at least one client.
[0193] In an optional embodiment, the link establishment determination unit includes:
[0194] An address acquisition subunit, configured to acquire virtual Internet Protocol address information corresponding to each service and Internet Protocol address information corresponding to at least one client;
[0195] a link establishment subunit, configured to determine access link information between at least one client and each service to be established in the target server when it is determined that the Internet Protocol address information corresponding to at least one client matches the virtual Internet Protocol address information corresponding to each service;
[0196] The link not established subunit is used to determine that access link information between at least one client and each service is not established in the target server when it is determined that there is no match between the Internet Protocol address information corresponding to at least one client and the virtual Internet Protocol address information corresponding to each service.
[0197] In an optional embodiment, the device further comprises:
[0198] A first storage module is used to store access link information between at least one client and each service in a preset database when there is no access link information between at least one client and each service in the preset database; wherein the access link information stored in the preset database is used to determine access status information of each service accessed by the client;
[0199] The second storage module is used to update the determination time of the corresponding access link information in the preset database based on the currently determined determination time of the access link information between at least one client and each service, when there is access link information between at least one client and each service in the preset database; wherein the access link information after the time update is used to determine the access status information of each service accessed by the client.
[0200] In an alternative embodiment,
[0201] The adjustment module is used to adjust the second target business when it is determined that the access link information between at least one client and each business includes target access link information based on the access status information of each business being accessed by at least one client, so as to establish the access link information between the target client and the second target business in the second server; the target access link information is the access link information between the target client and the second target business.
[0202] In an optional embodiment, the adjustment module includes:
[0203] a migration unit, configured to migrate the second target service and the virtual Internet Protocol address information corresponding to the second target service to the second server;
[0204] A response unit is used to adjust the access service of the target client in response to the service access retry request when the access duration of the target client to the first server meets a preset condition, so that the target client can access the virtual Internet Protocol address information corresponding to the second target service in the second server, so as to establish access link information between the target client and the second target service in the second server.
[0205] It should be noted that the device embodiment provided in the embodiments of the present application and the above-mentioned method embodiment are based on the same inventive concept.
[0206] An embodiment of the present application also provides an electronic device for business processing, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement a business processing method provided in any of the above embodiments.
[0207] An embodiment of the present application also provides a computer-readable storage medium, which can be set in a terminal to store at least one instruction or at least one program for implementing a method in a method embodiment, and the at least one instruction or at least one program is loaded and executed by a processor to implement the business processing method provided in the above method embodiment.
[0208] Optionally, in the embodiment of this specification, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the above storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0209] The memory of the embodiment of this specification can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, applications required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.
[0210] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the business processing method provided by the above method embodiment.
[0211] The service processing method embodiment provided in the embodiment of the present application can be executed in a terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Fig.10 FIG. 1 is a hardware structure diagram of a server provided according to an exemplary embodiment. Fig.10 As shown, the server 400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 410 (the central processing unit 410 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 430 for storing data, and one or more storage media 420 (such as one or more mass storage devices) for storing application programs 423 or data 422. Among them, the memory 430 and the storage medium 420 can be short-term storage or permanent storage. The program stored in the storage medium 420 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 410 can be configured to communicate with the storage medium 420 and execute a series of instruction operations in the storage medium 420 on the server 400. The server 400 may also include one or more power supplies 460, one or more wired or wireless network interfaces 450, one or more input and output interfaces 440, and / or one or more operating systems 421, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0212] The input / output interface 440 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 400. In one example, the input / output interface 440 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 440 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0213] It can be understood by those skilled in the art that Fig.10 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.10 More or fewer components as shown, or with Fig.10 Different configurations are shown.
[0214] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0215] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and server embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0216] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0217] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A business processing method, characterized in that: The method comprises: In a migration process in which the first server migrates a service in the first server to a second server, obtaining service migration information; the service migration information is used to characterize a migration status of the service in the migration process; Determine service availability status information of the service according to the service migration information; the service availability status information is used to indicate whether the service can be normally accessed by the client; In a case where it is determined based on the service availability status information that the first target service in the second server is normally accessible to the client, target access status information of the service in the target server being accessed by at least one client is determined; the target server includes the first server and the second server; the first target service is a service in the first server that has been migrated to the second server; When it is determined that the target access status information indicates that the target client accesses a second target service in the first server, the second target service is adjusted so that the target client accesses the second server; the target client is any one of the at least one client, and the second target service is a service in the first server other than the first target service.
2. The service processing method according to claim 1, characterized in that: The service migration information includes a candidate server where the service is currently located, and the candidate server is any one of the first server and the second server; the service availability status information of the service determined according to the service migration information includes: In a case where the candidate server is the second server, determining whether the first target service resumes input and output operations; In the case where it is determined that the first target service resumes input and output operations, the service availability status information of the first target service is determined as follows: the first target service is in a service access availability status in the second server that can be normally accessed by the client; When it is determined that the first target service has not resumed input and output operations, the service availability status information of the first target service is determined as follows: the first target service is in a service access unavailable state in the second server and cannot be normally accessed by the client.
3. The service processing method according to claim 2, characterized in that: The migration information further includes block device migration information, shared file system migration information, service sharing migration information, and virtual Internet Protocol address migration information. The determining whether the first target service resumes input and output operations includes: Acquire the block device migration information, the shared file system migration information, the service sharing migration information and the virtual Internet Protocol address migration information from the second server; Determine whether access link information between the client and the first target service is established in the second server, in the case where it is determined based on the block device migration information that the second server mounts the block device, based on the shared file system information that the second server mounts the shared file system, based on the service sharing migration information that the second server starts the service sharing service, and based on the virtual Internet Protocol address migration information that the second server enables the virtual Internet Protocol address information of the first target service; In the case of determining that the access link information between the client and the first target service is established in the second server, determining that the first target service resumes input and output operations; When it is determined that the access link information between the client and the first target service is not established in the second server, it is determined that the first target service has not resumed input and output operations.
4. The service processing method according to claim 1, characterized in that: The target server includes at least one service, the at least one service includes the first target service and the second target service, and the determining target access status information of the service in the target server being accessed by at least one client includes: Traversing the service configuration files corresponding to each service in the target server in turn; When traversing the service configuration files corresponding to each service, determining whether access link information between at least one client and each service is established in the target server; In the case of determining that access link information between at least one client and each service is established in the target server, generating access status information of each service accessed by at least one client according to the access link information between at least one client and each service, shared information, and attribute information of the target server; wherein the shared information represents at least one of virtual Internet Protocol address information corresponding to each service, access permission information corresponding to each service, and service parameter information corresponding to each service; According to the access status information of each service being accessed by at least one client, the target access status information of the target server being accessed by at least one client is obtained.
5. The service processing method according to claim 4, characterized in that: The determining whether access link information between at least one client and each service is established in the target server includes: Acquire virtual Internet Protocol address information corresponding to each service and Internet Protocol address information corresponding to at least one client; In the case where it is determined that the Internet Protocol address information corresponding to at least one client matches the virtual Internet Protocol address information corresponding to each service, determining access link information between at least one client and each service to be established in the target server; When it is determined that there is no Internet Protocol address information corresponding to at least one client that matches the virtual Internet Protocol address information corresponding to each service, it is determined that no access link information between at least one client and each service is established in the target server.
6. The service processing method according to claim 5, characterized in that: After determining that access link information between at least one client and each service is established in the target server, the method further includes: In the case that the access link information between at least one client and each of the services does not exist in the preset database, the access link information between at least one client and each of the services is stored in the preset database; wherein the access link information stored in the preset database is used to determine the access status information of each of the services accessed by the client; In the case that access link information between at least one client and each of the services exists in the preset database, the determination time of the corresponding access link information in the preset database is updated based on the currently determined determination time of the access link information between at least one client and each of the services; wherein the access link information after the time update is used to determine the access status information of each of the services accessed by the client.
7. The service processing method according to claim 4, characterized in that: The step of, in a case where it is determined that the target access state information indicates that the target client accesses a second target service in the first server, adjusting the second target service so that the target client accesses the second server includes: When it is determined, based on the access status information of each service being accessed by at least one client, that the access link information between at least one client and each service includes target access link information, the second target service is adjusted to establish access link information between the target client and the second target service in the second server; the target access link information is the access link information between the target client and the second target service.
8. The service processing method according to claim 7, characterized in that: The adjusting the second target service to establish access link information between the target client and the second target service in the second server includes: Migrating the second target service and the virtual Internet Protocol address information corresponding to the second target service to the second server; When the access duration of the target client to the first server meets a preset condition, in response to a service access retry request sent by the target client, the access service of the target client is adjusted so that the target client accesses the virtual Internet Protocol address information corresponding to the second target service in the second server, so as to establish access link information between the target client and the second target service in the second server.
9. A service processing device, characterized in that: The device comprises: A service migration information acquisition module, used to acquire service migration information during a migration process in which a first server migrates a service in the first server to a second server; the service migration information is used to characterize a migration status of the service during the migration process; A service availability status information determination module, used to determine the service availability status information of the service according to the service migration information; the service availability status information is used to indicate whether the service can be normally accessed by the client; a target access status information determination module, configured to determine target access status information that a service in a target server is accessed by at least one client, when it is determined based on the service availability status information that a first target service in the second server is normally accessible to a client; the target server includes the first server and the second server; the first target service is a service in the first server that has been migrated to the second server; An adjustment module is used to adjust the second target business in the first server when it is determined that the target access status information indicates that the target client accesses the second target business, so that the target client accesses the second server; the target client is any one of the at least one client, and the second target business is a business in the first server except the first target business.
10. An electronic device for business processing, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the processor and executes the business processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the business processing method according to any one of claims 1 to 8.
