Server switching method, device, electronic device and computer readable medium
By deploying the two geographical locations but the consistent data, real -time detection indicators and middleware information, positioning fault information and automatic server switching, solving the problem of low manual switching efficiency, improving the efficiency of server switching and system stability of the system stability Essence
Patent Information
- Application Number
- CN202410677064.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-05-29
AI Technical Summary
In the prior art, manual server switching is inefficient and error-prone, resulting in a long server switching cycle and degradation of system stability and response performance.
By deploying the server with different geographical locations but consistent data, real -time detection indicators and middleware information, positioning fault information, and automatic server switching and data status verification to ensure the security and stability of switching.
The server switching cycle is shortened, which improves the response performance of the server and the stability of the system, and avoids the errors and delays caused by manual manual switching.
Smart Images

Figure CN118488065B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a server switching method, device, electronic device, and computer-readable medium. Background Art
[0002] As the demand for servers continues to increase, the application of automatic server switching is becoming more and more popular. Before users switch servers, they usually need to perform manual tests. Server switching is a technology for switching servers. Automatic server switching can shorten the server switching cycle and improve the stability of the system. In addition, when users operate the user receiving end, dynamic traffic allocation and timely resolution of possible fault information can also improve the stability of the system and the throughput and stability of the server. At present, the method commonly used for server switching is to manually replace the current server with another server to achieve server switching.
[0003] However, when the above method is adopted, the following technical problems often occur:
[0004] First, manual server switching is inefficient and prone to large errors, resulting in a long server switching cycle. In addition, failures may occur during server switching and the failure information cannot be located, which reduces the server's response performance and the system's stability.
[0005] Second, when users operate the user receiving end, they may encounter a large load problem, resulting in uneven traffic distribution, which reduces the server's throughput and stability, and leads to a decrease in resource utilization. When an exception occurs on the user receiving end, it cannot be handled in time, resulting in a decrease in user experience and reduced system stability.
[0006] Third, since the server cannot repair the fault in time when switching, the recovery time is long, which may cause system crash. After the server is successfully switched, the security of the server cannot be verified in time, resulting in reduced system stability.
[0007] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0008] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0009] Some embodiments of the present disclosure propose a server switching method, apparatus, electronic device, and computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.
[0010] In a first aspect, some embodiments of the present disclosure provide a server switching method, the method comprising: deploying a first server and a second server, wherein the geographical locations corresponding to the first server and the second server are different, and the data corresponding to the first server and the second server are consistent; performing at least one indicator information detection on the first server and the second server to obtain a post-detection indicator information set; performing real-time detection on at least one middleware information corresponding to the first server and the second server to obtain a detection result; in response to determining that the detection result represents an abnormal detection result, locating the fault information of the detection result corresponding to the abnormal detection result according to the post-detection indicator information set to obtain fault location information; performing server switching on the server corresponding to the fault location information to obtain a post-switching result; in response to determining that a server indicator information threshold corresponding to the post-switching result reaches a preset indicator threshold, performing data status verification on the server corresponding to the post-switching result and the server corresponding to the fault location information to obtain a post-data status verification result; in response to determining that the post-data status verification result represents that the server data status verification is consistent, performing domain name switching on the server corresponding to the post-switching result to obtain a server after the domain name switching; and sending the switching information corresponding to the server after the domain name switching to a user receiving end.
[0011] In a second aspect, some embodiments of the present disclosure provide a server switching device, the device comprising: a deployment unit, configured to deploy a first server and a second server, wherein the geographical locations corresponding to the first server and the second server are different, and the data corresponding to the first server and the second server are consistent; a detection unit, configured to perform at least one indicator information detection on the first server and the second server to obtain a post-detection indicator information set; a real-time detection unit, configured to perform real-time detection on at least one middleware information corresponding to the first server and the second server to obtain a detection result; a positioning unit, configured to, in response to determining that the detection result represents an abnormal detection result, locate the detection information corresponding to the abnormal detection result according to the post-detection indicator information set. The fault information is located based on the measurement result to obtain the fault location information; the first switching unit is configured to perform server switching on the server corresponding to the above fault location information to obtain the switching result; the verification unit is configured to, in response to determining that the server indicator information threshold corresponding to the above switching result reaches the preset indicator threshold, perform data status verification on the server corresponding to the above switching result and the server corresponding to the fault location information to obtain the data status verified result; the second switching unit is configured to, in response to determining that the above data status verification result indicates that the server data status verification is consistent, perform domain name switching on the server corresponding to the above switching result to obtain the server after the domain name switching; the sending unit is configured to send the switching information corresponding to the server after the domain name switching to the user receiving end.
[0012] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.
[0013] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.
[0014] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the server switching method of some embodiments of the present disclosure, the server switching cycle is shortened, the response performance of the server is improved, and the stability of the system is improved. Specifically, the reason for the long server switching cycle, the reduced response performance of the server, and the reduced stability of the system is that the manual switching of the server is inefficient and prone to large errors, resulting in a long server switching cycle. In addition, since a fault may occur when the server is switched and the fault information cannot be located, the response performance of the server is reduced, resulting in reduced stability of the system. Based on this, the server switching method of some embodiments of the present disclosure, first, deploys a first server and a second server, wherein the geographical locations corresponding to the first server and the second server are different, and the data corresponding to the first server and the second server are consistent. Thus, the server to be switched can be deployed in advance, providing a basis for subsequent processing. Then, at least one indicator information is detected for the first server and the second server to obtain a set of indicator information after detection. Thus, it is possible to judge whether there is a fault between the servers through the indicator information. Afterwards, at least one middleware information corresponding to the first server and the second server is detected in real time to obtain a detection result. Thus, it is possible to determine whether there is an abnormality in the connection between the two servers through the middleware information. Next, in response to determining that the above detection result represents the abnormal detection result, according to the above detection index information set, the detection result corresponding to the abnormal detection result is located for the fault information, and the fault location information is obtained. Thus, the fault information of the possible fault can be located when the server is switched, thereby reducing the possibility of the server's response performance degradation and improving the stability of the system. Secondly, the server corresponding to the above fault location information is switched to obtain the result after switching. Thus, it is possible to avoid manual switching of the server, thereby improving the efficiency of server switching, reducing the possible errors, and shortening the server switching cycle. Thirdly, in response to determining that the server index information threshold corresponding to the above switching result reaches the preset index threshold, the server corresponding to the above switching result and the server corresponding to the above fault location information are verified for data status, and the result after data status verification is obtained. Thus, the security of server switching can be improved through data status verification, and the stability of the system can also be improved. Then, in response to determining that the above data status verification result represents that the server data status verification is consistent, the server corresponding to the above switching result is switched for the domain name, and the server after the domain name switching is obtained. Thus, the server can be switched seamlessly and the stability of the system can be improved. Finally, the switching information corresponding to the server after the domain name switching is sent to the user receiving end. Thus, the user experience can be improved by switching the domain name and sending it to the user receiving end, and the trust can also be improved.Therefore, avoiding manual switching of servers can shorten the server switching cycle, locate fault information, improve the response performance of the server, and improve the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0016] Figure 1 is a flow chart of some embodiments of the server switching method according to the present disclosure;
[0017] Figure 2 is a schematic diagram of the structure of some embodiments of the server switching device according to the present disclosure;
[0018] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0020] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0024] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0025] Figure 1 This is a process 100 of some embodiments of the server switching method disclosed herein. The server switching method comprises the following steps:
[0026] Step 101: deploy a first server and a second server.
[0027] In some embodiments, the executor of the server switching method (eg, a computing device) may deploy a first server and a second server, wherein the first server and the second server correspond to different geographical locations and the first server and the second server correspond to consistent data.
[0028] Step 102: perform at least one indicator information detection on the first server and the second server to obtain a post-detection indicator information set.
[0029] In some embodiments, the execution entity may perform at least one indicator information detection on the first server and the second server to obtain a post-detection indicator information set.
[0030] Here, the at least one indicator information mentioned above may include but is not limited to at least one of the following: error log information, interface call success rate information and system alarm information.
[0031] As an example, the execution subject may use Zabbix to perform error log information detection on the first server and the second server to obtain a post-detection error log information set. Then, the interface call success rate information detection is performed on the first server and the second server to obtain a post-detection interface call success rate information set. Next, the system alarm information detection is performed on the first server and the second server to obtain a post-detection system alarm information set. Finally, the post-detection error log information set, the post-detection interface call success rate information set and the post-detection system alarm information set are determined as the post-detection indicator information set.
[0032] Step 103: Perform real-time detection on at least one piece of middleware information corresponding to the first server and the second server to obtain a detection result.
[0033] In some embodiments, the execution entity may perform real-time detection on at least one piece of middleware information corresponding to the first server and the second server to obtain a detection result.
[0034] Here, the at least one middleware information may include but is not limited to at least one of the following: database information and message queue information.
[0035] As an example, the execution subject may first determine at least one piece of middleware information corresponding to the first server and the second server. Then, the Promethues monitoring system is used to perform real-time detection on the at least one piece of middleware information to obtain a detection result. The Promethues monitoring system monitors by capturing metrics and integrates the corresponding exporter in the middleware to achieve real-time detection.
[0036] Step 104 , in response to determining that the above detection result represents an abnormal detection result, based on the above post-detection indicator information set, fault information positioning is performed on the detection result corresponding to the detection result representing the abnormal detection result to obtain fault location information.
[0037] In some embodiments, the execution subject may, in response to determining that the detection result represents an abnormal detection result, locate fault information on the detection result corresponding to the detection result representing the abnormal detection result according to the post-detection indicator information set to obtain fault location information.
[0038] Here, the above-mentioned fault location information may refer to fault information whose location appears on the first server or the second server.
[0039] As an example, the execution subject may determine the fault information of the detection result corresponding to the abnormal detection result to obtain the fault information. Then, the location information of the fault information may be determined to obtain the fault location information.
[0040] Optionally, the execution subject may perform the following steps in response to determining that the detection result represents an abnormal detection result, and locate the fault information of the detection result corresponding to the detection result representing the abnormal detection result according to the post-detection indicator information set to obtain the fault location information:
[0041] In the first step, for each post-detection indicator information in the post-detection indicator information set, the following processing steps are performed:
[0042] In a first sub-step, in response to determining that an indicator information threshold corresponding to the above-mentioned post-detection indicator information is greater than a preset threshold, indicator fault information corresponding to the post-detection indicator information corresponding to the above-mentioned preset threshold is determined.
[0043] Here, the preset threshold may refer to a preset threshold. For example, the preset threshold may refer to a system alarm of 10%. The indicator fault information may refer to system alarm information.
[0044] In the second sub-step, a network connection analysis is performed on the server corresponding to the above-mentioned indicator fault information to obtain an analysis result.
[0045] As an example, the execution subject may perform a network connection check on the server corresponding to the indicator fault information to obtain a check result. Then, the check result is parsed to obtain a parsing result. The parsing may refer to domain name parsing.
[0046] In a third sub-step, in response to determining that the above analysis result indicates that the analysis is normal, the fault information of the server corresponding to the above indicator fault information is located to obtain the indicator fault location information.
[0047] As an example, the execution subject may determine the fault information of the server corresponding to the indicator fault information to obtain the server indicator fault information. Then, the execution subject may determine the location information of the server indicator fault information to obtain the indicator fault location information.
[0048] The fourth sub-step is to determine the middleware fault information corresponding to the detection result corresponding to the abnormal detection result.
[0049] Here, the above-mentioned middleware failure information may refer to message queue failure information.
[0050] The fifth sub-step is to locate the fault information of the server corresponding to the middleware fault information to obtain the middleware fault location information.
[0051] As an example, the execution subject may determine the fault information of the server corresponding to the middleware fault information to obtain the server middleware fault information, and then determine the location information of the server middleware fault information to obtain the middleware fault location information.
[0052] A sixth sub-step, in response to determining that the location information corresponding to the indicator fault location information and the middleware fault location information is the same, determining the indicator fault location information and the middleware fault location information as server fault location information.
[0053] In the second step, in response to determining that the location information corresponding to each piece of server failure location information obtained is the same, the above-mentioned each piece of server failure location information is determined as the failure location information.
[0054] Step 105: Perform server switching on the server corresponding to the above fault location information to obtain a result after switching.
[0055] In some embodiments, the execution entity may perform server switching on the server corresponding to the fault location information to obtain a result after switching.
[0056] Here, the above-mentioned switching result may be a result indicating switching to the first server or the second server.
[0057] As an example, the execution subject may determine the server corresponding to the fault location information. Then, in response to determining that the server corresponding to the fault location information is the first server, the first server is switched to the second server to obtain a result after switching. Finally, in response to determining that the server corresponding to the fault location information is the second server, the second server is switched to the first server to obtain a result after switching.
[0058] Optionally, the execution subject may perform server switching on the server corresponding to the fault location information through the following steps to obtain a result after switching:
[0059] The first step, in response to determining that the server corresponding to the above-mentioned fault location information is the first server, transfers traffic to the above-mentioned first server to obtain a first traffic transfer result, wherein the above-mentioned first traffic transfer result is the result of transferring the traffic corresponding to the above-mentioned first server to the traffic corresponding to the second server.
[0060] As an example, the execution subject may transfer the traffic information corresponding to the first server to the second server to obtain a first traffic transfer result. The transfer may refer to traffic movement.
[0061] In the second step, in response to determining that the first traffic transfer result indicates that the traffic transfer is complete, the first server is switched to the second server to obtain a first switched server.
[0062] As an example, the execution subject may suspend the operation of the first server, and then start the second server. Finally, the started second server is determined as the first post-switching server.
[0063] The third step is to verify the service status of the first switched server to obtain a first verification result.
[0064] As an example, the execution subject may verify the service state corresponding to the server after the first switching to obtain a first verification result. The service state may represent a normal service state and an abnormal service state.
[0065] In a fourth step, in response to determining that the first verification result indicates that the verification is normal, a first post-switching server corresponding to the indication that the verification is normal is determined as a post-switching result.
[0066] The fifth step, in response to determining that the server corresponding to the above-mentioned fault location information is the second server, transfer traffic to the above-mentioned second server to obtain a second traffic transfer result, wherein the above-mentioned second traffic transfer result is the result of transferring the traffic corresponding to the above-mentioned second server to the traffic corresponding to the first server.
[0067] As an example, the execution subject may transfer the traffic information corresponding to the second server to the first server to obtain a second traffic transfer result. The transfer may refer to traffic movement.
[0068] In step 6, in response to determining that the second traffic transfer result indicates that the traffic transfer is complete, the second server is switched to the first server to obtain a second switched server.
[0069] As an example, the execution subject may suspend the operation of the second server, and then start the first server. Finally, the started first server is determined as the second switched server.
[0070] Step 7: Verify the service status of the second switched server to obtain a second verification result.
[0071] As an example, the execution subject may verify the service state corresponding to the server after the second switching to obtain a second verification result. The service state may represent a normal service state and an abnormal service state.
[0072] In step 8, in response to determining that the second verification result indicates that the verification is normal, a second post-switching server corresponding to the indication that the verification is normal is determined as a post-switching result.
[0073] The relevant contents in the first step to the eighth step above are an inventive point of the present disclosure, which solves the technical problem 2 mentioned in the background technology: "Since the server cannot repair the fault in time when switching, the recovery time is long, which may cause the system to crash. After the server is successfully switched, the security of the server cannot be verified in time, resulting in reduced stability of the system." The factors that lead to reduced stability of the system are often as follows: Since the server cannot repair the fault in time when switching, the recovery time is long, which may cause the system to crash. After the server is successfully switched, the security of the server cannot be verified in time, resulting in reduced stability of the system. If the above factors are solved, the possibility of causing system crashes and the stability of the system can be reduced. In order to achieve this effect, in the first step, in response to determining that the server corresponding to the above fault location information is the first server, the traffic of the above first server is transferred to obtain a first traffic transfer result, wherein the above first traffic transfer result is the result of transferring the traffic corresponding to the above first server to the traffic corresponding to the second server. Thus, it can provide convenience for subsequent operations. In the second step, in response to determining that the above first traffic transfer result indicates that the traffic transfer is completed, the above first server is switched to the second server to obtain a first switched server. Thus, the server can be switched after the traffic transfer is completed. The third step is to verify the service status of the first switched server to obtain a first verification result. Thus, the security of the server can be verified in time, reducing the possibility of causing a system crash. The fourth step is to respond to the determination that the first verification result indicates that the verification is normal, and the first switched server corresponding to the normal verification is determined as the switched result. The fifth step is to respond to the determination that the server corresponding to the fault location information is the second server, and the traffic is transferred to the second server to obtain a second traffic transfer result, wherein the second traffic transfer result is the result of transferring the traffic corresponding to the second server to the traffic corresponding to the first server. The sixth step is to respond to the determination that the second traffic transfer result indicates that the traffic transfer is completed, and the second server is switched to the first server to obtain the second switched server. The seventh step is to verify the service status of the second switched server to obtain a second verification result. Thus, the security of the server can be verified in time, reducing the possibility of causing a system crash. The eighth step is to respond to the determination that the second verification result indicates that the verification is normal, and the second switched server corresponding to the normal verification is determined as the switched result. Therefore, the security of the server can be verified in time, reducing the possibility of causing a system crash. Thus, the stability of the system is improved.
[0074] Step 106, in response to determining that the server indicator information threshold corresponding to the above-mentioned switching result reaches the preset indicator threshold, data status verification is performed on the server corresponding to the above-mentioned switching result and the server corresponding to the above-mentioned fault location information to obtain a data status verification result.
[0075] In some embodiments, the above-mentioned execution entity can perform data status verification on the server corresponding to the above-mentioned switching result and the server corresponding to the above-mentioned fault location information in response to determining that the server indicator information threshold corresponding to the above-mentioned switching result reaches a preset indicator threshold, and obtain the result after data status verification.
[0076] Here, the above-mentioned data status verification result may represent the consistency of data status verification and the inconsistency of data status verification. The above-mentioned preset indicator threshold may refer to the maximum value of the preset indicator information.
[0077] Optionally, the execution subject may perform data status verification on the server corresponding to the switching result and the server corresponding to the fault location information in response to determining that the server indicator information threshold corresponding to the switching result reaches the preset indicator threshold through the following steps to obtain a data status verification result:
[0078] The first step is to determine the memory utilization of the server corresponding to the above switching result to obtain the memory utilization of the server after switching.
[0079] Here, the memory utilization rate of the server after switching may refer to the memory utilization rate corresponding to the server after switching.
[0080] The second step is to determine the memory utilization of the server corresponding to the above fault location information to obtain the memory utilization of the faulty server.
[0081] Here, the above-mentioned memory utilization of the faulty server may refer to the memory utilization corresponding to the faulty server.
[0082] The third step, in response to determining that the memory utilization of the server after the switching and the memory utilization of the faulty server reach the preset utilization conditions, the server corresponding to the memory utilization of the server after the switching and the server corresponding to the memory utilization of the faulty server are performance verified to obtain a server performance verification result as the result after the first data state verification.
[0083] Here, the above-mentioned preset utilization condition may refer to "the memory utilization of the server after switching is 100%, and the memory utilization of the failed server is 0".
[0084] The fourth step is to perform data security verification on the server corresponding to the above switching result and the server corresponding to the above fault location information to obtain a server security verification result as the second data state verification result.
[0085] As an example, the execution subject may determine the data state between the server corresponding to the switching result and the server corresponding to the fault location information to obtain the server data state. Then, identity verification is performed on the server data state to obtain a verified result as the second data state verified result. The identity verification may refer to password verification.
[0086] In a fifth step, the first data status verification result and the second data status verification result are determined as the data status verification result.
[0087] Step 107, in response to determining that the data status verification result indicates that the server data status verification is consistent, performing domain name switching on the server corresponding to the switching result to obtain a domain name switched server.
[0088] In some embodiments, the execution subject may perform a domain name switch on the server corresponding to the switching result in response to determining that the data status verification result indicates that the server data status verification is consistent, to obtain a server after the domain name switch.
[0089] As an example, the execution subject may first determine the domain name information, and then replace the domain name information of the server corresponding to the switching result to obtain a replaced server as the domain name switching server.
[0090] Step 108: Send the switching information corresponding to the server after the domain name switching to the user receiving end.
[0091] In some embodiments, the execution entity may send the switching information corresponding to the server after the domain name switching to the user receiving end.
[0092] Here, the user receiving end may refer to a user receiving device end. For example, the user receiving end may refer to a mobile device end corresponding to the user.
[0093] Optionally, after the above “step 108”, the above method further includes:
[0094] The first step is to determine each service node corresponding to the above user receiving end.
[0095] Here, the service node in the above-mentioned service nodes may refer to a node provided by a server cluster. For example, the service node in the above-mentioned service nodes may refer to a node used by a server to store data.
[0096] The second step is to determine the performance indicator data group corresponding to each of the above service nodes to obtain a performance indicator data group set.
[0097] Here, the performance indicator data group in the above-mentioned performance indicator data group set may include but is not limited to at least one of the following: processing speed indicator data, storage performance indicator data and parallel processing capability indicator data.
[0098] The third step is to construct a keyword distribution matrix for each of the above service nodes to obtain a keyword service node matrix.
[0099] Here, the keyword service node matrix may represent a matrix formed by the distribution of keywords on different service nodes. The keyword may refer to "storage data". The keyword may also refer to "distribution data".
[0100] As an example, the execution subject may determine the number of occurrences of each keyword in each service node to obtain a value of each keyword frequency. Then, each service node and the corresponding value of each keyword frequency are filled into a two-dimensional matrix to obtain a filled matrix as a keyword service node matrix.
[0101] The fourth step is to generate a data load partition set based on the above performance indicator data set and the above keyword service node matrix.
[0102] Here, the data load partition in the above-mentioned data load partition set may refer to a partition obtained by dividing the data load corresponding to the user receiving end.
[0103] As an example, the execution subject may divide the performance indicator data set according to the corresponding keyword times in the keyword service node matrix to obtain a divided indicator data set. Then, the corresponding data of the user receiving end corresponding to the divided indicator data set is partitioned to obtain a data load partition set.
[0104] In the fifth step, the standard deviation of each data load partition in the above data load partition set is measured to obtain a measurement result set.
[0105] As an example, the execution subject may determine the standard deviation of each data load partition in the data load partition set, and then compare the standard deviation with the load corresponding to each data load partition in the data load partition set to obtain a comparison result set as the measurement result set.
[0106] In the sixth step, data migration is performed on at least one measurement result in the measurement result set that is greater than a preset threshold, to obtain a measurement result set after migration.
[0107] Here, the preset threshold may refer to a preset threshold, for example, the preset threshold may refer to 0.7.
[0108] In a seventh step, at least one measurement result in the measurement result set that is less than or equal to a preset threshold and the post-migration measurement result set are determined as a final measurement result set.
[0109] In the eighth step, traffic is dynamically allocated to the user receiving end corresponding to the above final measurement result set to obtain the user receiving end after dynamic traffic allocation.
[0110] In step 9, in response to determining that the response time corresponding to the user receiving end after the above-mentioned dynamic traffic allocation is abnormal, the following abnormality handling steps are performed:
[0111] In the first sub-step, parameter adjustment is performed on the parameter information corresponding to the user receiving end after the above-mentioned dynamic traffic allocation to obtain adjusted parameter information.
[0112] Here, the above parameter information may refer to the capacity information corresponding to the user receiving end after the traffic is dynamically allocated.
[0113] As an example, the execution subject may first add the parameter information corresponding to the user receiving end after the dynamic traffic allocation to obtain the added parameter information. Then, the added parameter information is verified to obtain a verification result. Finally, in response to determining that the verification result represents a normal operation result, the added parameter information is determined as the adjusted parameter information.
[0114] In the second sub-step, according to the adjusted parameter information, the user receiving terminal after the dynamic flow allocation is synchronously updated to obtain an updated user receiving terminal.
[0115] The third sub-step is, in response to determining that the response time corresponding to the updated user receiving end is greater than or equal to a preset response time threshold, triggering an alarm and executing the above exception handling step again.
[0116] Here, the preset response time threshold may refer to a preset response time threshold, for example, the preset response time threshold may refer to 5 seconds.
[0117] The fourth sub-step is, in response to determining that the response time corresponding to the updated user receiving terminal is less than a preset response time threshold, performing user behavior analysis on the updated user receiving terminal to obtain a behavior analysis result.
[0118] In the tenth step, in response to determining that the behavior analysis result indicates that the behavior analysis is abnormal, the configuration of the updated user receiving terminal corresponding to the behavior analysis result indicating the behavior analysis is abnormal is updated to obtain the updated user receiving terminal.
[0119] The relevant contents in the first step to the tenth step mentioned above serve as an inventive point of the present disclosure, which solves the second technical problem mentioned in the background technology: "When users operate the user receiving end, they may encounter a problem of heavy load, resulting in uneven traffic distribution, thereby reducing the throughput and stability of the server, and resulting in a decrease in resource utilization. When an abnormality occurs on the user receiving end, the abnormality cannot be handled in time, resulting in a decrease in user experience and a decrease in system stability." The factors that lead to a decrease in resource utilization and a decrease in system stability are often as follows: When users operate the user receiving end, they may encounter a problem of heavy load, resulting in uneven traffic distribution, thereby reducing the throughput and stability of the server, and resulting in a decrease in resource utilization. When an abnormality occurs on the user receiving end, the abnormality cannot be handled in time, resulting in a decrease in user experience and a decrease in system stability. If the above factors are solved, the effect of improving resource utilization and enhancing system stability can be achieved. In order to achieve this effect, the first step is to determine each service node corresponding to the above user receiving end. The second step is to determine the performance indicator data group corresponding to each service node in the above-mentioned service nodes to obtain a performance indicator data group set; the third step is to construct a keyword distribution matrix for each of the above-mentioned service nodes to obtain a keyword service node matrix; the fourth step is to generate a data load partition set according to the above-mentioned performance indicator data group set and the above-mentioned keyword service node matrix; the fifth step is to measure the standard deviation of each data load partition in the above-mentioned data load partition set to obtain a measurement result set; the sixth step is to perform data migration on at least one measurement result corresponding to a value greater than a preset threshold in the above-mentioned measurement result set to obtain a measurement result set after migration; the seventh step is to determine at least one measurement result corresponding to a value less than or equal to a preset threshold in the above-mentioned measurement result set and the above-mentioned measurement result set after migration as the final measurement result set; the eighth step is to dynamically allocate traffic to the user receiving end corresponding to the above-mentioned final measurement result set to obtain a user receiving end after dynamic traffic allocation; thereby, the problem that a user may have a large load when operating the user receiving end can be solved, and the traffic distribution is more uniform, thereby improving the throughput and stability of the server and improving the utilization rate of resources. In the ninth step, in response to determining that the response time of the user receiving terminal after the dynamic allocation of traffic is abnormal, the following exception handling steps are performed: the first sub-step is to adjust the parameter information corresponding to the user receiving terminal after the dynamic allocation of traffic to obtain the adjusted parameter information. The second sub-step is to synchronously update the user receiving terminal after the dynamic allocation of traffic according to the adjusted parameter information to obtain the updated user receiving terminal. In this way, when an abnormality occurs in the user receiving terminal, the exception handling can be performed in time, which can improve the user experience and thus improve the stability of the system. The third sub-step is to trigger an alarm in response to determining that the response time corresponding to the updated user receiving terminal is greater than or equal to the preset response time threshold, and to perform the above exception handling steps again.In the fourth sub-step, in response to determining that the response time corresponding to the updated user receiving terminal is less than a preset response time threshold, user behavior analysis is performed on the updated user receiving terminal to obtain a behavior analysis result. In the tenth sub-step, in response to determining that the behavior analysis result indicates a behavior analysis anomaly, a configuration update is performed on the updated user receiving terminal corresponding to the behavior analysis result indicating a behavior analysis anomaly to obtain an updated user receiving terminal. Thus, resource utilization is improved and system stability is enhanced.
[0120] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the server switching method of some embodiments of the present disclosure, the server switching cycle is shortened, the response performance of the server is improved, and the stability of the system is improved. Specifically, the reason for the long server switching cycle, the reduced response performance of the server, and the reduced stability of the system is that the manual switching of the server is inefficient and prone to large errors, resulting in a long server switching cycle. In addition, since a fault may occur when the server is switched and the fault information cannot be located, the response performance of the server is reduced, resulting in reduced stability of the system. Based on this, the server switching method of some embodiments of the present disclosure, first, deploys a first server and a second server, wherein the geographical locations corresponding to the first server and the second server are different, and the data corresponding to the first server and the second server are consistent. Thus, the server to be switched can be deployed in advance, providing a basis for subsequent processing. Then, at least one indicator information is detected for the first server and the second server to obtain a set of indicator information after detection. Thus, it is possible to judge whether there is a fault between the servers through the indicator information. Afterwards, at least one middleware information corresponding to the first server and the second server is detected in real time to obtain a detection result. Thus, it is possible to determine whether there is an abnormality in the connection between the two servers through the middleware information. Next, in response to determining that the above detection result represents the abnormal detection result, according to the above detection index information set, the detection result corresponding to the abnormal detection result is located for the fault information, and the fault location information is obtained. Thus, the fault information of the possible fault can be located when the server is switched, thereby reducing the possibility of the server's response performance degradation and improving the stability of the system. Secondly, the server corresponding to the above fault location information is switched to obtain the result after switching. Thus, it is possible to avoid manual switching of the server, thereby improving the efficiency of server switching, reducing the possible errors, and shortening the server switching cycle. Thirdly, in response to determining that the server index information threshold corresponding to the above switching result reaches the preset index threshold, the server corresponding to the above switching result and the server corresponding to the above fault location information are verified for data status, and the result after data status verification is obtained. Thus, the security of server switching can be improved through data status verification, and the stability of the system can also be improved. Then, in response to determining that the above data status verification result represents that the server data status verification is consistent, the server corresponding to the above switching result is switched for the domain name, and the server after the domain name switching is obtained. Thus, the server can be switched seamlessly and the stability of the system can be improved. Finally, the switching information corresponding to the server after the domain name switching is sent to the user receiving end. Thus, the user experience can be improved by switching the domain name and sending it to the user receiving end, and the trust can also be improved.Therefore, avoiding manual switching of servers can shorten the server switching cycle, locate fault information, improve the response performance of the server, and improve the stability of the system.
[0121] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a server switching method. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0122] like Figure 2 As shown, the server switching device 200 of some embodiments includes: a deployment unit 201, a detection unit 202, a real-time detection unit 203, a positioning unit 204, a first switching unit 205, a verification unit 206, a second switching unit and a sending unit 207. The deployment unit 201 is configured to deploy a first server and a second server, wherein the geographical locations corresponding to the first server and the second server are different, and the data corresponding to the first server and the second server are consistent; the detection unit 202 is configured to perform at least one indicator information detection on the first server and the second server to obtain a post-detection indicator information set; the real-time detection unit 203 is configured to perform real-time detection on at least one middleware information corresponding to the first server and the second server to obtain a detection result; the positioning unit 204 is configured to perform fault information positioning on the detection result corresponding to the detection result representing the abnormal detection result according to the post-detection indicator information set in response to determining that the detection result represents an abnormal detection result, and obtain a fault information. Fault location information; the first switching unit 205 is configured to perform server switching on the server corresponding to the above fault location information to obtain a switching result; the verification unit 206 is configured to, in response to determining that the server indicator information threshold corresponding to the above switching result reaches the preset indicator threshold, perform data status verification on the server corresponding to the above switching result and the server corresponding to the fault location information to obtain a data status verification result; the second switching unit 207 is configured to, in response to determining that the above data status verification result indicates that the server data status verification is consistent, perform domain name switching on the server corresponding to the above switching result to obtain a domain name switching server; the sending unit 208 is configured to send the switching information corresponding to the server after the domain name switching to the user receiving end.
[0123] It is understood that the units described in the device 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 200 and the units included therein, and will not be described in detail here.
[0124] Reference below Figure 3 , which shows a schematic structural diagram of an electronic device (such as a computing device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0125] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 304. In RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, ROM 302, and RAM 304 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0126] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0127] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the functions defined in the method of some embodiments of the present disclosure are executed.
[0128] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0129] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0130] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: deploys a first server and a second server, wherein the geographical locations corresponding to the first server and the second server are different, and the data corresponding to the first server and the second server are consistent; performs at least one indicator information detection on the first server and the second server to obtain a post-detection indicator information set; performs real-time detection on at least one middleware information corresponding to the first server and the second server to obtain a detection result; in response to determining that the detection result represents an abnormal detection result, based on the post-detection indicator information set, performs fault information location on the detection result corresponding to the detection result representing the abnormal detection result to obtain fault location information; performs server switching on the server corresponding to the fault location information to obtain a post-switching result; in response to determining that the server indicator information threshold corresponding to the post-switching result reaches a preset indicator threshold, performs data status verification on the server corresponding to the post-switching result and the server corresponding to the fault location information to obtain a post-data status verification result; in response to determining that the post-data status verification result represents that the server data status verification is consistent, performs domain name switching on the server corresponding to the post-switching result to obtain a domain name switched server; and sends the switching information corresponding to the domain name switched server to a user receiving end.
[0131] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0132] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0133] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be set in a processor. For example, they may be described as: a processor including: a deployment unit, a detection unit, a real-time detection unit, a positioning unit, a first switching unit, a verification unit, a second switching unit, and a sending unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the detection unit may also be described as "a unit that performs at least one indicator information detection on the above-mentioned first server and the above-mentioned second server to obtain a post-detection indicator information set."
[0134] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0135] The above descriptions are only some preferred embodiments of the present disclosure and the explanation of the technical principles used above. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A server switching method, comprising: Deploy a first server and a second server, wherein the first server and the second server correspond to different geographical locations, and the first server and the second server correspond to the same data; Perform at least one indicator information detection on the first server and the second server to obtain a post-detection indicator information set, wherein the at least one indicator information includes: error log information, interface call success rate information and system alarm information; Performing real-time detection on at least one piece of middleware information corresponding to the first server and the second server to obtain a detection result, wherein the at least one piece of middleware information includes: database information and message queue information; In response to determining that the detection result represents an abnormal detection result, based on the post-detection indicator information set, performing fault information location on the detection result corresponding to the abnormal detection result to obtain fault location information; Performing server switching on the server corresponding to the fault location information to obtain a result after switching, wherein performing server switching on the server corresponding to the fault location information to obtain a result after switching includes: In response to determining that the server corresponding to the fault location information is the first server, traffic is transferred to the first server to obtain a first traffic transfer result, wherein the first traffic transfer result is a result of transferring traffic corresponding to the first server to traffic corresponding to the second server; In response to determining that the first traffic transfer result indicates that the traffic transfer is complete, switching the first server to a second server to obtain a first switched server; Performing service status verification on the first switched server to obtain a first verification result; In response to determining that the first verification result indicates that the verification is normal, determining a first post-switching server corresponding to the indication that the verification is normal as a post-switching result; In response to determining that the server corresponding to the fault location information is the second server, traffic is transferred to the second server to obtain a second traffic transfer result, wherein the second traffic transfer result is a result of transferring traffic corresponding to the second server to traffic corresponding to the first server; In response to determining that the second traffic transfer result indicates that the traffic transfer is complete, switching the second server to the first server to obtain a second switched server; Performing service status verification on the second switched server to obtain a second verification result; In response to determining that the second verification result indicates that the verification is normal, determining a second post-switching server corresponding to the indication that the verification is normal as a post-switching result; In response to determining that the server indicator information threshold corresponding to the result after switching reaches the preset indicator threshold, performing data status verification on the server corresponding to the result after switching and the server corresponding to the fault location information to obtain a result after data status verification, wherein, in response to determining that the server indicator information threshold corresponding to the result after switching reaches the preset indicator threshold, performing data status verification on the server corresponding to the result after switching and the server corresponding to the fault location information to obtain a result after data status verification includes: Determine the memory utilization of the server corresponding to the result after the switching to obtain the memory utilization of the server after the switching; Determine the memory utilization of the server corresponding to the fault location information to obtain the memory utilization of the faulty server; In response to determining that the memory utilization of the switched server and the memory utilization of the failed server reach a preset utilization condition, a server corresponding to the memory utilization of the switched server and a server corresponding to the memory utilization of the failed server are subjected to performance verification to obtain a server performance verification result as a first data state verification result; Performing data security verification on the server corresponding to the switching result and the server corresponding to the fault location information to obtain a server security verification result as a second data state verification result; Determine the first data status verified result and the second data status verified result as the data status verified result; In response to determining that the data status verification result indicates that the server data status verification is consistent, performing a domain name switch on the server corresponding to the switched result to obtain a domain name switched server; Sending the switching information corresponding to the server after the domain name switching to the user receiving end; Determine each service node corresponding to the user receiving terminal; Determine a performance indicator data group corresponding to each service node in the service nodes to obtain a performance indicator data group set; Constructing a keyword distribution matrix for each of the service nodes to obtain a keyword service node matrix; Generate a data load partition set according to the performance indicator data set and the keyword service node matrix; Performing standard deviation measurement on each data load partition in the data load partition set to obtain a measurement result set; Migrating data of at least one measurement result in the measurement result set that is greater than a preset threshold value to obtain a measurement result set after migration; Determine at least one measurement result in the measurement result set that is less than or equal to a preset threshold and the post-migration measurement result set as a final measurement result set; Dynamically allocating traffic to the user receiving end corresponding to the final measurement result set to obtain the user receiving end after dynamic traffic allocation; In response to determining that the response time corresponding to the user receiving end after the dynamic allocation of the traffic is abnormal, the following abnormality handling steps are performed: Performing parameter adjustment on the parameter information corresponding to the user receiving end after the dynamic flow allocation to obtain adjusted parameter information; According to the adjusted parameter information, synchronously updating the user receiving end after the traffic is dynamically allocated to obtain an updated user receiving end; In response to determining that the response time corresponding to the updated user receiving end is greater than or equal to a preset response time threshold, triggering an alarm, and executing the exception handling step again; In response to determining that the response time corresponding to the updated user receiving terminal is less than a preset response time threshold, performing user behavior analysis on the updated user receiving terminal to obtain a behavior analysis result; In response to determining that the behavior analysis result represents a behavior analysis anomaly, a configuration update is performed on an updated user receiving terminal corresponding to the behavior analysis result representing the behavior analysis anomaly to obtain an updated user receiving terminal.
2. The method according to claim 1, wherein: In response to determining that the detection result represents an abnormal detection result, locating fault information of the detection result corresponding to the abnormal detection result according to the post-detection indicator information set to obtain fault location information includes: For each post-detection indicator information in the post-detection indicator information set, the following processing steps are performed: In response to determining that the indicator information threshold corresponding to the post-detection indicator information is greater than a preset threshold, determining indicator fault information corresponding to the post-detection indicator information corresponding to the post-detection indicator information greater than the preset threshold; Performing network connection analysis on the server corresponding to the indicator fault information to obtain an analysis result; In response to determining that the analysis result indicates that the analysis is normal, locating the fault information of the server corresponding to the indicator fault information to obtain the indicator fault location information; Determine middleware fault information corresponding to the detection result corresponding to the abnormal detection result; Locating the fault information of the server corresponding to the middleware fault information to obtain the middleware fault location information; In response to determining that the location information corresponding to the indicator fault location information and the middleware fault location information is the same, determining the indicator fault location information and the middleware fault location information as server fault location information; In response to determining that the location information corresponding to each piece of obtained server failure location information is the same, the each piece of server failure location information is determined as failure location information.
3. The method according to claim 1, wherein: In response to determining that the result after data status verification indicates that the data status verification of the server is consistent, performing domain name switching on the server corresponding to the result after switching to obtain the server after domain name switching, including: Determine the address information corresponding to the server corresponding to the switching result; Mapping the preset domain name information to the address information to obtain a mapping result; In response to determining that the mapping result indicates that mapping has been completed, performing flow transmission control on the mapping result to obtain a flow transmission control result; In response to determining that the traffic transmission control result indicates that the traffic transmission has ended, the server corresponding to the mapping result is determined as a server after the domain name switching.
4. A server switching device, comprising: A deployment unit is configured to deploy a first server and a second server, wherein the first server and the second server correspond to different geographical locations, and the first server and the second server correspond to the same data; A detection unit is configured to perform at least one indicator information detection on the first server and the second server to obtain a post-detection indicator information set, wherein the at least one indicator information includes: error log information, interface call success rate information and system alarm information; A real-time detection unit is configured to perform real-time detection on at least one piece of middleware information corresponding to the first server and the second server to obtain a detection result, wherein the at least one piece of middleware information includes: database information and message queue information; A positioning unit is configured to, in response to determining that the detection result represents an abnormal detection result, perform fault information positioning on the detection result corresponding to the detection result representing the abnormal detection result according to the post-detection indicator information set to obtain fault location information; The first switching unit is configured to perform server switching on the server corresponding to the fault location information to obtain a switching result, wherein the server switching on the server corresponding to the fault location information to obtain a switching result includes: in response to determining that the server corresponding to the fault location information is the first server, transferring traffic to the first server to obtain a first traffic transfer result, wherein the first traffic transfer result is a result of transferring traffic corresponding to the first server to traffic corresponding to the second server; in response to determining that the first traffic transfer result indicates that the traffic transfer is completed, switching the first server to the second server to obtain a first switched server; verifying the service status of the first switched server to obtain a first verification result; in response to determining that the first traffic transfer result indicates that the traffic transfer is complete, The first verification result indicates that the verification is normal, and the first switched server corresponding to the normal verification is determined as the switched result; in response to determining that the server corresponding to the fault location information is the second server, traffic is transferred to the second server to obtain a second traffic transfer result, wherein the second traffic transfer result is a result of transferring the traffic corresponding to the second server to the traffic corresponding to the first server; in response to determining that the second traffic transfer result indicates that the traffic transfer is complete, the second server is switched to the first server to obtain a second switched server; service status verification is performed on the second switched server to obtain a second verification result; in response to determining that the second verification result indicates that the verification is normal, the second switched server corresponding to the normal verification is determined as the switched result; The verification unit is configured to, in response to determining that the server indicator information threshold corresponding to the switching result reaches a preset indicator threshold, perform data status verification on the server corresponding to the switching result and the server corresponding to the fault location information to obtain a data status verification result, wherein, in response to determining that the server indicator information threshold corresponding to the switching result reaches a preset indicator threshold, perform data status verification on the server corresponding to the switching result and the server corresponding to the fault location information to obtain a data status verification result, including: determining the memory utilization of the server corresponding to the switching result to obtain the memory utilization of the server after switching; performing internal memory verification on the server corresponding to the fault location information The memory utilization is determined to obtain the memory utilization of the faulty server; in response to determining that the memory utilization of the server after switching and the memory utilization of the faulty server reach the preset utilization condition, the server corresponding to the memory utilization of the server after switching and the server corresponding to the memory utilization of the faulty server are subjected to performance verification to obtain a server performance verification result as a first data status verification result; the server corresponding to the switching result and the server corresponding to the fault location information are subjected to data security verification to obtain a server security verification result as a second data status verification result; the first data status verification result and the second data status verification result are determined as data status verification results; The second switching unit is configured to, in response to determining that the data status verification result indicates that the server data status verification is consistent, perform a domain name switch on the server corresponding to the switched result to obtain a server after the domain name switch; The sending unit is configured to send the switching information corresponding to the server after the domain name switching to the user receiving end; determine the service nodes corresponding to the user receiving end; determine the performance indicator data group corresponding to each service node in the service nodes to obtain a performance indicator data group set; construct a keyword distribution matrix for the service nodes to obtain a keyword service node matrix; generate a data load partition set according to the performance indicator data group set and the keyword service node matrix; perform standard deviation measurement on each data load partition in the data load partition set to obtain a measurement result set; perform data migration on at least one measurement result corresponding to a value greater than a preset threshold in the measurement result set to obtain a measurement result set after migration; determine at least one measurement result corresponding to a value less than or equal to a preset threshold in the measurement result set and the measurement result set after migration as a final measurement result set; perform dynamic traffic allocation on the user receiving end corresponding to the final measurement result set to obtain a flow a user receiving terminal after the flow is dynamically allocated; in response to determining that the response time corresponding to the user receiving terminal after the flow is dynamically allocated is abnormal, executing the following abnormality handling steps: adjusting the parameter information corresponding to the user receiving terminal after the flow is dynamically allocated to obtain the adjusted parameter information; synchronously updating the user receiving terminal after the flow is dynamically allocated according to the adjusted parameter information to obtain the updated user receiving terminal; in response to determining that the response time corresponding to the updated user receiving terminal is greater than or equal to the preset response time threshold, triggering an alarm, and executing the abnormality handling steps again; in response to determining that the response time corresponding to the updated user receiving terminal is less than the preset response time threshold, performing user behavior analysis on the updated user receiving terminal to obtain a behavior analysis result; in response to determining that the behavior analysis result indicates that the behavior analysis is abnormal, performing a configuration update on the updated user receiving terminal corresponding to the behavior analysis result indicating the behavior analysis abnormality to obtain the updated user receiving terminal.
5. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.
6. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Database fault processing method and system and storage medium
CN117421158A