Service processing method and apparatus, computer device, and storage medium
By monitoring the operational information of the server cluster, the target access party is selected for service transfer, which solves the problem of the inability to detect complex environments in a timely manner in existing technologies, and improves the stability and security of the service platform.
Patent Information
- Application Number
- CN202311521285.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-11-14
AI Technical Summary
Existing service processing methods cannot detect complex environments that are detrimental to the service platform in a timely manner, resulting in reduced stability and security of the service platform.
By monitoring the operational information of the server cluster, when it is determined that the target server is in an abnormal state, it stops running and obtains the amount of data of the service to be accessed, selects the target access party for service transfer, and uses the platform data of the backup server to update regularly to ensure the stability and security of the service platform.
This improves the stability and security of the service platform, ensures the accuracy and timeliness of target access parties, and avoids the shortcomings of manual monitoring.
Smart Images

Figure CN117714267B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a service processing method, apparatus, computer equipment, and storage medium, which can be applied to the field of service platform technology. Background Technology
[0002] Service platforms (e.g., call center platforms) are the basic support platforms for service hotlines. Therefore, in order to ensure the security and stability of service platforms, service processing methods have emerged. These methods can employ manual monitoring. When a complex environment that is detrimental to the operation of the service platform (e.g., natural disasters or viruses) is detected, the service platform currently processing the service is switched to a secure backup platform to ensure the normal processing of the service.
[0003] However, existing service processing methods cannot detect complex environments that are detrimental to the service platform in a timely manner, thereby reducing the stability and security of the service platform's operation. Summary of the Invention
[0004] Therefore, it is necessary to provide a service processing method, apparatus, computer equipment, and storage medium that can improve the stability and security of the service platform, addressing the aforementioned technical problems.
[0005] Firstly, this application provides a service processing method. The method includes:
[0006] If the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, the target server is controlled to stop running, and the amount of data to be connected to the target server's services and the amount of data already connected to the services of other servers in the server cluster are obtained.
[0007] Based on the amount of data to be received and the amount of data already received by other servers, the target access party is selected from the other servers and the backup servers of the server cluster; among them, the platform data of the backup servers is updated periodically according to the platform data of the server cluster.
[0008] The service to be accessed will be transferred to the target access party for processing.
[0009] In one embodiment, the target access party is selected from the other servers and the backup servers of the server cluster based on the amount of data to be received and the amount of data already received by each other server, including:
[0010] Based on the amount of data already received by each of the other servers, determine the amount of data that the server cluster can accept; based on the relationship between the amount of data that can be accepted and the amount of data to be received, select the target access party from each of the other servers and the backup servers of the server cluster.
[0011] In one embodiment, the target access party is selected from other servers and backup servers in the server cluster based on the relationship between the acceptable data volume and the pending data volume, including:
[0012] If the acceptable data volume is less than the data volume to be received, the backup server in the server cluster will be selected as the target access party; the backup server is an offline server; if the acceptable data volume is greater than or equal to the data volume to be received, the target access party will be selected from the other servers.
[0013] In one embodiment, selecting the target access party from among the other servers includes:
[0014] Based on the target server's operational information, select an available server from among the other servers and use that available server as the target access point.
[0015] In one embodiment, an available server is selected from among the other servers based on the target server's operational security information, including:
[0016] Based on the target server's operational information, determine the cause of the target server's anomaly; distribute the cause of the anomaly to all other servers to instruct them to perform security self-checks based on the cause of the anomaly and report the self-check results; based on the self-check results reported by the other servers, select an available server from among the other servers.
[0017] In one embodiment, if the target access party is an available server, and the number of available servers is at least two, then the service to be accessed is transferred to the target access party for processing, including:
[0018] Based on the amount of data to be connected and the amount of data already connected to each available server, determine the data allocation value corresponding to each available server; based on the data allocation value corresponding to each available server, transfer the service to be connected to each available server.
[0019] Secondly, this application also provides a service processing apparatus. The apparatus includes:
[0020] The anomaly detection module is used to control the target server to stop running when it is determined that the target server is in an abnormal running state based on the running information of the target server in the server cluster, and to obtain the amount of data to be connected to the service to be connected to the target server, as well as the amount of data already connected to the service of each other server in the server cluster.
[0021] The selection module is used to select the target access party from other servers and the backup servers of the server cluster based on the amount of data to be connected and the amount of data already connected to other servers; the platform data of the backup servers is updated periodically based on the platform data of the server cluster.
[0022] The service transfer module is used to transfer the service to be accessed to the target access party for processing.
[0023] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0024] If the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, the target server is controlled to stop running, and the amount of data to be connected to the target server's services and the amount of data already connected to the services of other servers in the server cluster are obtained.
[0025] Based on the amount of data to be received and the amount of data already received by other servers, the target access party is selected from the other servers and the backup servers of the server cluster; among them, the platform data of the backup servers is updated periodically according to the platform data of the server cluster.
[0026] The service to be accessed will be transferred to the target access party for processing.
[0027] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0028] If the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, the target server is controlled to stop running, and the amount of data to be connected to the target server's services and the amount of data already connected to the services of other servers in the server cluster are obtained.
[0029] Based on the amount of data to be received and the amount of data already received by other servers, the target access party is selected from the other servers and the backup servers of the server cluster; among them, the platform data of the backup servers is updated periodically according to the platform data of the server cluster.
[0030] The service to be accessed will be transferred to the target access party for processing.
[0031] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0032] If the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, the target server is controlled to stop running, and the amount of data to be connected to the target server's services and the amount of data already connected to the services of other servers in the server cluster are obtained.
[0033] Based on the amount of data to be received and the amount of data already received by other servers, the target access party is selected from the other servers and the backup servers of the server cluster; among them, the platform data of the backup servers is updated periodically according to the platform data of the server cluster.
[0034] The service to be accessed will be transferred to the target access party for processing.
[0035] The aforementioned service processing method, apparatus, computer equipment, and storage medium, upon determining that the target server is in an abnormal operating state based on the target server's operational information within the server cluster, control the target server to stop operating and acquire the amount of pending data for the services to be accessed by the target server, as well as the amount of data already connected for the services accessed by other servers in the server cluster. Subsequently, based on the amount of pending data and the amount of data already connected by other servers, a target access party is selected from the other servers and the backup servers in the server cluster, and the services to be accessed are transferred to the target access party for processing. Compared to related technologies that use manual monitoring to adjust the target access party, the above method, by determining the target access party based on the amount of pending data for the services to be accessed by the target server and the amount of data already connected for the services accessed by other servers in the server cluster, ensures the accuracy and timeliness of the target access party determination, thereby guaranteeing the stability and security of the service platform operation. Attached Figure Description
[0036] Figure 1 This is a flowchart illustrating a service processing method in one embodiment;
[0037] Figure 2 This is a flowchart illustrating the process of handling a service in one embodiment.
[0038] Figure 3 This is a schematic diagram of the process for determining the target access party in one embodiment;
[0039] Figure 4 This is a schematic diagram of the process for selecting a target access party in one embodiment;
[0040] Figure 5 This is a schematic diagram of the process of allocating services to be accessed in one embodiment;
[0041] Figure 6 This is a flowchart illustrating the service processing method in another embodiment;
[0042] Figure 7 This is a structural block diagram of a service processing device in one embodiment;
[0043] Figure 8 This is a structural block diagram of the service processing apparatus in another embodiment;
[0044] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0046] Service platforms (e.g., call center platforms) are the basic support platforms for service hotlines. Therefore, in order to ensure the security and stability of service platforms, service processing methods have emerged. These methods can employ manual monitoring. When a complex environment that is detrimental to the operation of the service platform (e.g., natural disasters or viruses) is detected, the service platform currently processing the service is switched to a secure backup platform to ensure the normal processing of the service.
[0047] However, existing service processing methods cannot detect complex environments that are detrimental to the service platform in a timely manner, thereby reducing the stability and security of the service platform's operation.
[0048] Based on this, in one embodiment, such as Figure 1 As shown, a service processing method is provided. Taking the application of this method to a data relay terminal as an example, the specific steps include:
[0049] S101, if the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, control the target server to stop running, and obtain the amount of data to be connected to the target server's services, as well as the amount of data already connected to the services of other servers in the server cluster.
[0050] In this server cluster, each server is configured with a service platform to process services transferred from the data relay terminal. Furthermore, the service platforms on each server have similar architectures and functions, undertaking the same or similar business functions. For example, in the case of a call center platform, each service platform is configured with call center equipment (CTI), automatic voice response equipment (IVR), automatic speech recognition equipment (ASR), recording servers, etc.
[0051] Operational information is used to characterize the server's operational status; services to be connected refer to services that are ready to connect to the target server, such as a call hotline to be connected; data volume to be connected refers to the amount of data for services to be connected; other servers refer to servers in the server cluster other than the target server; data volume already connected refers to the amount of data that other servers have already connected to.
[0052] Optionally, assuming all service platforms on each server in the server cluster are functioning normally, such as Figure 2 As shown, the data relay end obtains the service to be accessed through the client; then, using load balancing technology, it transfers the service to be accessed to each server, so as to instruct each server to process the service.
[0053] Understandably, in order to ensure the stability of the service platform, server operation information can be obtained from each server at preset time intervals, and then the operation status of each server can be determined based on the operation information.
[0054] Optionally, if the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, in order to prevent abnormal data from damaging other servers, it is necessary to immediately stop the target server from running, isolate the fault location in the target server, and prohibit any access requests sent from any port other than the operation and maintenance management terminal until the abnormal situation is resolved.
[0055] Understandably, if a server malfunctions and the server's firewall cannot effectively isolate abnormal data, the data relay can act as a second firewall to isolate the abnormal data.
[0056] Furthermore, after the target server is stopped, the amount of data to be connected to the target server's services can be directly obtained, as well as the amount of data already connected to the services of other servers in the server cluster.
[0057] S102, based on the amount of data to be received and the amount of data already received by each other server, select the target access party from each other server and the backup server of the server cluster.
[0058] Among them, the platform data of the backup server is updated periodically based on the platform data of the server cluster; the target access party refers to the server to which the service to be accessed needs to be transferred.
[0059] Optionally, in order to process the services to be accessed on the target server in a timely manner, the amount of data to be accessed and the amount of data already connected on other servers can be simultaneously input into the access party determination model. The access party determination model then determines the target access party based on the amount of data to be accessed, the amount of data already connected on other servers, and the model data.
[0060] S103, transfer the service to be accessed to the target access party for processing.
[0061] Optionally, after determining the target access party, the services to be accessed can be directly transferred to the target access party to instruct it to process the data to be accessed. It is understood that when the target access party processes the services to be accessed, it can prioritize services with higher priority based on their respective priorities.
[0062] Understandably, in order to ensure the timeliness of service processing, a "probe" tool in the central service device within the service platform on the server can be used to monitor the service processing status in real time. If a service anomaly occurs, the abnormal service will be moved out of the service platform to ensure the timely processing of subsequent services to be connected.
[0063] For example, if the service platform is a call center platform, and the "probe" tool detects an anomaly in a service that has been migrated to the service platform, such as a network interruption or an anomaly in the client service of the service, the abnormal service will be forcibly migrated out and the connection with the client service of the abnormal service will be automatically cut off. If the "probe" tool detects that the monitored client service has not answered the hotline in time and the ringing timeout has occurred, the abnormal service will be forcibly migrated out and the abnormal service will be transferred to other available service platforms to be re-queued.
[0064] In the above service processing method, when it is determined that the target server is in an abnormal operating state based on the target server's operating information in the server cluster, the target server is stopped, and the amount of pending data for the services to be accessed on the target server, as well as the amount of data already connected for the services already connected on other servers in the server cluster, are obtained. Subsequently, based on the amount of pending data and the amount of data already connected on other servers, a target access party is selected from the other servers and the backup servers in the server cluster, and the services to be accessed are transferred to the target access party for processing. Compared to related technologies that use manual monitoring to adjust the target access party, the above method, which determines the target access party based on the amount of pending data for the services to be accessed on the target server and the amount of data already connected for the services already connected on other servers in the server cluster, can ensure the accuracy and timeliness of the target access party determination, thereby ensuring the stability and security of the service platform operation.
[0065] To ensure the accuracy of the target access party, based on the above embodiments, this embodiment provides an optional method for determining the target access party, such as... Figure 3 As shown, the specific steps include:
[0066] S301 determines the acceptable data volume of the server cluster based on the data volume already received by each of the other servers.
[0067] The acceptable data volume refers to the amount of data that the server cluster can receive and process at the current moment.
[0068] Optionally, the acceptable data volume of the server cluster at the current moment can be determined based on the data volume and configuration information of each other server.
[0069] S302, based on the relationship between the acceptable data volume and the pending data volume, selects the target access party from other servers and backup servers in the server cluster.
[0070] Optionally, after determining the acceptable amount of data in the server cluster at the current moment, the acceptable amount of data can be compared with the amount of data to be received, and the target access party can be selected from other servers and backup servers in the server cluster based on the comparison results.
[0071] For example, if the acceptable data volume is less than the data volume to be received, the backup server in the server cluster will be selected as the target access point; if the acceptable data volume is greater than or equal to the data volume to be received, the target access point will be selected from the other servers. The backup server is an offline server.
[0072] Optionally, if the acceptable data volume is less than the data volume to be received, it is determined that the other servers in the server cluster cannot handle the access service. Therefore, the backup server in the server cluster can be used as the target access party. Conversely, if the acceptable data volume is greater than or equal to the data volume to be received, it is determined that the other servers in the server cluster can handle the access service. Therefore, the target access party can be selected from the other servers.
[0073] Furthermore, to ensure the security of the target access party, an available server can be selected from other servers based on the target server's operating information, and the available server can be used as the target access party.
[0074] Understandably, since the backup server is an offline server, the data relay will synchronize the functional configuration and service record data of each server in the server cluster to the backup server according to the update interval (such as daily or hourly), so that the backup server has the same functional configuration data and more recent service record data as the server cluster, in order to ensure the service processing capacity of the backup server.
[0075] In this embodiment, by selecting the target access party based on the relationship between the acceptable data volume and the data volume to be received, the accuracy of the target access party can be guaranteed.
[0076] To ensure the security of the target access party, based on the above embodiments, this embodiment provides an optional method for selecting the target access party when the target access party is another server, such as... Figure 4 As shown, the specific steps include:
[0077] S401, Based on the target server's operational information, determine the cause of the target server's anomaly.
[0078] Among them, abnormal causes refer to the reasons that cause abnormal server operation.
[0079] Optionally, data such as code that caused the abnormal operation of the target server can be extracted from the target server's operation information to determine the cause of the abnormality.
[0080] S402 sends the cause of the anomaly to all other servers, instructing them to perform security self-checks based on the cause and report the results.
[0081] Optionally, the cause of the anomaly in the target server can be distributed to other servers. Subsequently, for each other server, after receiving the cause of the anomaly, it can use the cause of the anomaly as a detection reference and compare it with the running data in the other server. If the other server has data that is the same as or similar to the cause of the anomaly, it will report the self-test result as abnormal to the data relay terminal. If the other server does not have data that is the same as or similar to the cause of the anomaly, it will report the self-test result as normal to the data relay terminal.
[0082] S403 selects an available server from among the other servers based on the self-test results reported by each other server.
[0083] Optionally, after receiving the self-test results from other servers, the other servers whose self-test results are normal can be designated as available servers.
[0084] In this embodiment, by sending the cause of the anomaly to other servers to instruct them to perform security self-checks, the security of the target access party can be guaranteed, thereby ensuring the stable operation of the service platform.
[0085] To ensure the rationality of service allocation, based on the above embodiments, this embodiment provides an optional method for allocating services when the target access party is another server, such as... Figure 5 As shown, the specific steps include:
[0086] S501 determines the data allocation value for each available server based on the amount of data to be received and the amount of data already received by each available server.
[0087] The data allocation value refers to the amount of data that is connected to each available server.
[0088] Optionally, the amount of data each available server can receive can be determined based on the amount of data already received and the configuration information of each available server; subsequently, the data allocation value corresponding to each available server can be determined based on the ratio between the amount of data to be received and the amount of data that each available server can receive.
[0089] S502, based on the data allocation value corresponding to each available server, transfers the service to be accessed to each available server.
[0090] Optionally, the service to be accessed can be transferred to each available server according to the data allocation value corresponding to each available server.
[0091] In this embodiment, the data allocation value corresponding to each available server is determined by the amount of data to be connected and the amount of data already connected to each available server, which can ensure the rationality of the allocation of services to be connected.
[0092] Figure 6 This is a flowchart illustrating a service processing method in another embodiment. Based on the above embodiments, this embodiment provides an optional example of a service processing method. (In conjunction with...) Figure 6 The specific implementation process is as follows:
[0093] S601, if the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, controls the target server to stop running, and obtains the amount of data to be connected to the target server's services, as well as the amount of data already connected to the services of other servers in the server cluster.
[0094] The platform data of the backup server is updated periodically based on the platform data of the server cluster.
[0095] S602 determines the acceptable data volume of the server cluster based on the data volume already received by each of the other servers.
[0096] S603, determine whether the acceptable data volume is less than the pending data volume. If yes, execute S604; otherwise, execute S605.
[0097] S604 transfers the service to be accessed to a backup server in the server cluster.
[0098] S605, determine the cause of the target server's anomaly based on the target server's operational information.
[0099] S606 sends the cause of the anomaly to all other servers, instructing them to perform security self-checks based on the cause and report the results.
[0100] S607 selects an available server from among the other servers based on the self-test results reported by each other server.
[0101] S608 determines the data allocation value for each available server based on the amount of data to be received and the amount of data already received by each available server.
[0102] S609, based on the data allocation value corresponding to each available server, transfers the service to be accessed to each available server.
[0103] The specific processes of S601-S609 described above can be found in the description of the above method embodiments. Their implementation principles and technical effects are similar, and will not be repeated here.
[0104] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0105] Based on the same inventive concept, this application also provides a service processing apparatus for implementing the service processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more service processing apparatus embodiments provided below can be found in the limitations of the service processing method described above, and will not be repeated here.
[0106] In one embodiment, such as Figure 7 As shown, a service processing device 1 is provided, including: an anomaly detection module 10, a selection module 20, and a service transfer module 30, wherein:
[0107] The anomaly detection module 10 is used to control the target server to stop running when it is determined that the target server is in an abnormal running state based on the running information of the target server in the server cluster, and to obtain the amount of data to be connected to the service to be connected to the target server, as well as the amount of data already connected to the service of each other server in the server cluster.
[0108] Selection module 20 is used to select a target access party from other servers and backup servers in the server cluster based on the amount of data to be connected and the amount of data already connected to other servers; wherein, the platform data of the backup server is updated periodically based on the platform data of the server cluster.
[0109] Service transfer module 30 is used to transfer the service to be accessed to the target access party for processing.
[0110] In one embodiment, such as Figure 8 As shown, the selection module 20 includes:
[0111] The data volume determination unit 21 is used to determine the acceptable data volume of the server cluster based on the data volume already received by each other server.
[0112] Selection unit 22 is used to select a target access party from other servers and backup servers in the server cluster based on the relationship between the acceptable data volume and the data volume to be received.
[0113] In one embodiment, the selection unit 22 includes:
[0114] The first selection subunit is used to select the backup server of the server cluster as the target access party if the acceptable data volume is less than the data volume to be received; wherein, the backup server is an offline server.
[0115] The second selection subunit is used to select a target access party from among the other servers if the acceptable data volume is greater than or equal to the data volume to be received.
[0116] In one embodiment, the second selection subunit is specifically used for:
[0117] Based on the target server's operational information, select an available server from among the other servers and use that available server as the target access point.
[0118] In one embodiment, the second selection subunit is further configured to:
[0119] Based on the target server's operational information, determine the cause of the target server's anomaly; distribute the cause of the anomaly to all other servers to instruct them to perform security self-checks based on the cause of the anomaly and report the self-check results; based on the self-check results reported by the other servers, select an available server from among the other servers.
[0120] In one embodiment, the service transfer module 30 is specifically used for:
[0121] Based on the amount of data to be connected and the amount of data already connected to each available server, determine the data allocation value corresponding to each available server; based on the data allocation value corresponding to each available server, transfer the service to be connected to each available server.
[0122] Each module in the aforementioned service processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can invoke and execute the operations corresponding to each module.
[0123] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores platform data for the server cluster. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a service processing method.
[0124] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0125] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0126] If the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, the target server is controlled to stop running, and the amount of data to be connected to the target server's services and the amount of data already connected to the services of other servers in the server cluster are obtained.
[0127] Based on the amount of data to be received and the amount of data already received by other servers, the target access party is selected from the other servers and the backup servers of the server cluster; among them, the platform data of the backup servers is updated periodically according to the platform data of the server cluster.
[0128] The service to be accessed will be transferred to the target access party for processing.
[0129] In one embodiment, when the processor executes the logic in the computer program to select a target access party from other servers and backup servers in the server cluster based on the amount of data to be received and the amount of data already received by other servers, the following steps are specifically implemented:
[0130] Based on the amount of data already received by each of the other servers, determine the amount of data that the server cluster can accept; based on the relationship between the amount of data that can be accepted and the amount of data to be received, select the target access party from each of the other servers and the backup servers of the server cluster.
[0131] In one embodiment, when the processor executes the logic in the computer program to select a target access party from other servers and backup servers in the server cluster based on the relationship between the acceptable data volume and the pending data volume, the following steps are specifically implemented:
[0132] If the acceptable data volume is less than the data volume to be received, the backup server in the server cluster will be selected as the target access party; the backup server is an offline server; if the acceptable data volume is greater than or equal to the data volume to be received, the target access party will be selected from the other servers.
[0133] In one embodiment, when the processor executes the logic in a computer program to select a target access party from among other servers, it specifically implements the following steps:
[0134] Based on the target server's operational information, select an available server from among the other servers and use that available server as the target access point.
[0135] In one embodiment, when the processor executes the logic in the computer program that selects an available server from among other servers based on the operational security information of the target server, the following steps are specifically implemented:
[0136] Based on the target server's operational information, determine the cause of the target server's anomaly; distribute the cause of the anomaly to all other servers to instruct them to perform security self-checks based on the cause of the anomaly and report the self-check results; based on the self-check results reported by the other servers, select an available server from among the other servers.
[0137] In one embodiment, when the processor executes the logic in the computer program that if the target access party is an available server and there are at least two available servers, the logic of transferring the access service to be processed to the target access party is implemented in the following steps:
[0138] Based on the amount of data to be connected and the amount of data already connected to each available server, determine the data allocation value corresponding to each available server; based on the data allocation value corresponding to each available server, transfer the service to be connected to each available server.
[0139] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0140] If the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, the target server is controlled to stop running, and the amount of data to be connected to the target server's services and the amount of data already connected to the services of other servers in the server cluster are obtained.
[0141] Based on the amount of data to be received and the amount of data already received by other servers, the target access party is selected from the other servers and the backup servers of the server cluster; among them, the platform data of the backup servers is updated periodically according to the platform data of the server cluster.
[0142] The service to be accessed will be transferred to the target access party for processing.
[0143] In one embodiment, when the processor executes the code logic in the computer program that selects the target access party from other servers and the backup servers of the server cluster based on the amount of data to be received and the amount of data already received by other servers, the specific steps are as follows:
[0144] Based on the amount of data already received by each of the other servers, determine the amount of data that the server cluster can accept; based on the relationship between the amount of data that can be accepted and the amount of data to be received, select the target access party from each of the other servers and the backup servers of the server cluster.
[0145] In one embodiment, when the processor executes the code logic in the computer program that selects the target access party from other servers and backup servers in the server cluster based on the relationship between the acceptable data volume and the pending data volume, the following steps are specifically implemented:
[0146] If the acceptable data volume is less than the data volume to be received, the backup server in the server cluster will be selected as the target access party; the backup server is an offline server; if the acceptable data volume is greater than or equal to the data volume to be received, the target access party will be selected from the other servers.
[0147] In one embodiment, when the code logic in a computer program that selects a target access party from among other servers is executed by the processor, the following steps are specifically implemented:
[0148] Based on the target server's operational information, select an available server from among the other servers and use that available server as the target access point.
[0149] In one embodiment, when the code logic in a computer program that selects an available server from among other servers based on the target server's operational security information is executed by the processor, the following steps are specifically implemented:
[0150] Based on the target server's operational information, determine the cause of the target server's anomaly; distribute the cause of the anomaly to all other servers to instruct them to perform security self-checks based on the cause of the anomaly and report the self-check results; based on the self-check results reported by the other servers, select an available server from among the other servers.
[0151] In one embodiment, if the target access party in a computer program is an available server, and the number of available servers is at least two, then when the code logic for transferring the service to be accessed to the target access party for processing is executed by the processor, the following steps are specifically implemented:
[0152] Based on the amount of data to be connected and the amount of data already connected to each available server, determine the data allocation value corresponding to each available server; based on the data allocation value corresponding to each available server, transfer the service to be connected to each available server.
[0153] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0154] If the target server is determined to be in an abnormal operating state based on the target server's operating information in the server cluster, the target server is controlled to stop running, and the amount of data to be connected to the target server's services and the amount of data already connected to the services of other servers in the server cluster are obtained.
[0155] Based on the amount of data to be received and the amount of data already received by other servers, the target access party is selected from the other servers and the backup servers of the server cluster; among them, the platform data of the backup servers is updated periodically according to the platform data of the server cluster.
[0156] The service to be accessed will be transferred to the target access party for processing.
[0157] In one embodiment, when a computer program is executed by a processor to select a target access party from other servers and backup servers in a server cluster based on the amount of data to be received and the amount of data already received by other servers, the following steps are specifically implemented:
[0158] Based on the amount of data already received by each of the other servers, determine the amount of data that the server cluster can accept; based on the relationship between the amount of data that can be accepted and the amount of data to be received, select the target access party from each of the other servers and the backup servers of the server cluster.
[0159] In one embodiment, when a computer program is executed by a processor to select a target access party from other servers and backup servers in a server cluster based on the relationship between the acceptable data volume and the pending data volume, the following steps are specifically implemented:
[0160] If the acceptable data volume is less than the data volume to be received, the backup server in the server cluster will be selected as the target access party; the backup server is an offline server; if the acceptable data volume is greater than or equal to the data volume to be received, the target access party will be selected from the other servers.
[0161] In one embodiment, when a computer program is executed by a processor to select a target access party from among other servers, the following steps are specifically implemented:
[0162] Based on the target server's operational information, select an available server from among the other servers and use that available server as the target access point.
[0163] In one embodiment, when a computer program is executed by a processor to select an available server from among other servers based on the operational security information of the target server, the following steps are specifically implemented:
[0164] Based on the target server's operational information, determine the cause of the target server's anomaly; distribute the cause of the anomaly to all other servers to instruct them to perform security self-checks based on the cause of the anomaly and report the self-check results; based on the self-check results reported by the other servers, select an available server from among the other servers.
[0165] In one embodiment, when a computer program is executed by a processor to transfer the service to be accessed to the target access party for processing if the target access party is an available server and there are at least two available servers, the following steps are specifically implemented:
[0166] Based on the amount of data to be connected and the amount of data already connected to each available server, determine the data allocation value corresponding to each available server; based on the data allocation value corresponding to each available server, transfer the service to be connected to each available server.
[0167] It should be noted that the data involved in this application (including but not limited to platform data of server clusters) is all data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0168] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0169] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0170] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A service processing method, characterized in that, Applied to a data relay terminal, the method includes: If, based on the operating information of the target server in the server cluster, it is determined that the target server is in an abnormal operating state, the target server is controlled to stop operating, and the amount of pending data for the services to be accessed by the target server, as well as the amount of data already accessed by the services of each other server in the server cluster are obtained. Based on the amount of data already received and the configuration information of each other server, determine the acceptable amount of data for the server cluster; If the acceptable data volume is less than the data volume to be received, then the backup server of the server cluster is selected as the target access party; if the acceptable data volume is greater than or equal to the data volume to be received, then the target access party is selected from the other servers; wherein, the backup server is an offline server; the platform data of the backup server is updated periodically according to the platform data of the server cluster. The service to be accessed is transferred to the target access party for processing.
2. The method according to claim 1, characterized in that, The selection of the target access party from among the other servers includes: Based on the operating information of the target server, an available server is selected from the other servers, and the available server is used as the target access point.
3. The method according to claim 2, characterized in that, The step of selecting an available server from other servers based on the target server's operational information includes: Based on the operational information of the target server, determine the cause of the target server's anomaly; The cause of the anomaly is sent to each of the other servers, instructing each of the other servers to perform a security self-check based on the cause of the anomaly and to report the self-check results. Based on the self-test results reported by other servers, select an available server from among them.
4. The method according to claim 3, characterized in that, The step of selecting an available server from among the other servers based on the self-test results returned by each other server includes: Other servers whose self-test results are normal are designated as available servers.
5. The method according to claim 2, characterized in that, If the target access party is one of the available servers, and the number of available servers is at least two, then the process of transferring the service to be accessed to the target access party includes: Based on the amount of data to be received and the amount of data already received by each available server, determine the data allocation value corresponding to each available server; Based on the data allocation values corresponding to each available server, the services to be accessed are transferred to each available server.
6. The method according to claim 5, characterized in that, The data allocation value is the amount of data to be accessed by each available server.
7. A service processing apparatus, characterized in that, The device includes: The anomaly detection module is used to control the target server to stop running when it is determined that the target server is in an abnormal running state based on the running information of the target server in the server cluster, and to obtain the amount of pending data of the service to be connected to the target server, as well as the amount of connected data of the services already connected to the other servers in the server cluster. The selection module is used to determine the acceptable data volume of the server cluster based on the received data volume and configuration information of each other server; if the acceptable data volume is less than the data volume to be received, then the backup server of the server cluster is selected as the target access party; if the acceptable data volume is greater than or equal to the data volume to be received, then the target access party is selected from each other server; wherein, the backup server is an offline server; the platform data of the backup server is updated periodically according to the platform data of the server cluster. The service transfer module is used to transfer the service to be accessed to the target access party for processing.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data processing method and device
CN112291367A
