Processing method and computing device for service call request under multi-computer room deployment

In the multi-computer room deployment architecture, the service agent is used to judge and add header tag information when receiving service call requests, ensuring that the request is forwarded to the correct target computer room, thus solving the service error problem caused by the change of service configuration information that is not synchronized, and improving processing efficiency and accuracy.

CN112052091BActive Publication Date: 2025-02-28ZHANGYUE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010922705.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-04
Publication Date
2025-02-28
Estimated Expiration
2040-09-04

AI Technical Summary

Technical Problem

Under the multi-computer room deployment architecture, due to the inconsistent change time of the synchronized service configuration information of each organization, the service configuration information is inconsistent, which may lead to a service call request routing error, resulting in service errors.

Method used

By receiving the routed service call request in the service agent in the local room, it is determined whether the request contains header tag information. If not included, determine the target computer room based on the service configuration information, and add header tag information to the service call request, and forward the request to the service agent of the target computer room to ensure that the request is processed correctly.

Benefits of technology

By accurately determining the target computer room of the service call request and adding header tag information, service errors caused by the change of service configuration information are avoided, the processing efficiency and accuracy of service call requests are improved, and the forwarding dead loop problem is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112052091B_ABST
    Figure CN112052091B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and computing device for processing a service call request under multi-computer room deployment, the method is applied to a service agent of this computer room, and the method includes: receiving a service call request matched to this computer room through routing; judging whether the service call request contains header tag information; if the service call request does not contain header tag information, determining a target computer room according to service configuration information, the service configuration information indicates that a target service for processing the service call request is located in the target computer room; if the target computer room is not this computer room, adding header tag information to the service call request, forwarding the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room forwards the service call request with the added header tag information to the target computer room for processing. Through the above method, the service error problem caused by the asynchronous change of service configuration information under multi-computer room deployment can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and computing device for processing service call requests in multi-computer room deployment. Background Art

[0002] With the development of the Internet, in order to provide more reliable network services, more and more Internet application providers have abandoned the traditional single-computer room architecture and adopted a multi-computer room architecture deployment. One application may have multiple projects, and each project may have multiple services.

[0003] In actual applications, projects or services may fail, including hardware failure, dependent resource failure, underlying storage failure, network failure, etc., which may cause service unavailability. In the prior art, when a service in a computer room fails, all configuration information about the service in the computer room needs to be modified so that the service can be provided normally in other computer rooms after the modification, that is, the service is migrated.

[0004] However, the inventor discovered in the process of implementing the present invention that: since the change time of the service configuration service information of each organization under the multi-computer room deployment is often different, the service configuration information of each organization at the same time is inconsistent, which will cause service errors. For example, by modifying the configuration information of service A in computer room A, service A is migrated to computer room B. At this time, the routing matching mechanism has not synchronized to the latest service configuration information. The routing matching mechanism matches the service A used to process the service call request based on the old service configuration information. The service call request is directly routed to computer room A. Since service A has been migrated to computer room B, computer room A cannot process the service call request, resulting in service errors. Summary of the invention

[0005] In view of the above problems, the present invention is proposed to provide a method and computing device for processing service call requests in a multi-computer room deployment that overcomes the above problems or at least partially solves the above problems.

[0006] According to one aspect of the present invention, a method for processing a service call request in a multi-computer room deployment is provided, and the method is applied to a service agent in the computer room, comprising:

[0007] Receive service call requests that are matched to the computer room through routing;

[0008] Determine whether the service call request contains header tag information;

[0009] If the service call request does not include the header tag information, determining the target computer room according to the service configuration information, wherein the service configuration information indicates that the target service for processing the service call request is located in the target computer room;

[0010] If the target computer room is not this computer room, add header tag information to the service call request, and forward the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room can forward the service call request with the added header tag information to the target computer room for processing.

[0011] According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0012] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations:

[0013] Receive service call requests that are matched to the computer room through routing;

[0014] Determine whether the service call request contains header tag information;

[0015] If the service call request does not include the header tag information, determining the target computer room according to the service configuration information, wherein the service configuration information indicates that the target service for processing the service call request is located in the target computer room;

[0016] If the target computer room is not this computer room, add header tag information to the service call request, and forward the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room can forward the service call request with the added header tag information to the target computer room for processing.

[0017] According to another aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to perform the following operations:

[0018] Receive service call requests that are matched to the computer room through routing;

[0019] Determine whether the service call request contains header tag information;

[0020] If the service call request does not include the header tag information, determining the target computer room according to the service configuration information, wherein the service configuration information indicates that the target service for processing the service call request is located in the target computer room;

[0021] If the target computer room is not this computer room, add header tag information to the service call request, and forward the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room can forward the service call request with the added header tag information to the target computer room for processing.

[0022] According to the method and computing device for processing service call requests under multi-computer room deployment of the present invention, the method is applied to the service agent of the computer room, receiving the service call request matched to the computer room through routing; judging whether the service call request contains header tag information; if the service call request does not contain header tag information, determining the target computer room according to the service configuration information, wherein the service configuration information indicates that the target service for processing the service call request is located in the target computer room; if the target computer room is not the computer room, adding header tag information to the service call request, forwarding the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room forwards the service call request with the added header tag information to the target computer room for processing. Through the above method, on the one hand, by determining the target computer room where the target service used to process the service call request is actually located, the service call request is accurately forwarded to the target computer room for processing, thereby improving the processing efficiency and accuracy of the service call request, and avoiding the service error problem caused by the asynchronous change of the service configuration information used for routing matching and the service configuration information in the service agent of the computer room; on the other hand, by forwarding the service call request with the added header tag information to the target computer room, the target computer room directly processes the service call request with the added header tag information, which can also avoid the forwarding dead loop problem caused by the asynchronous change of service configuration information between the service agents of each computer room. In short, the above method can avoid the service error problem caused by the asynchronous change of service configuration information between various institutions under the deployment of multiple computer rooms.

[0023] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0025] Figure 1 A flow chart showing a method for processing a service call request in a multi-machine room deployment provided by an embodiment of the present invention;

[0026] Figure 2 A flowchart of a method for processing a service call request in a multi-machine room deployment provided by another embodiment of the present invention is shown;

[0027] Figure 3 An architectural diagram of multi-machine room deployment provided by an embodiment of the present invention is shown;

[0028] Figure 4 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0029] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0030] Figure 1 The flowchart of the method for processing service call request in multi-computer room deployment provided by the embodiment of the present invention is shown, and the method is applied to the service agent of the computer room. Figure 1 As shown, the method comprises the following steps:

[0031] Step S110, receiving a service call request matched to the computer room through routing.

[0032] In this embodiment, whether it is a service call request from a client or a mutual call request between services, it will first reach the proxy corresponding to the service before reaching the actual service. In actual applications, the client or other services may call the computer room service, that is, the service call request received by the service proxy of the computer room may be from the client or from other services.

[0033] Optionally, the route matching processing mechanism matches the service call request route to the computer room. After receiving the service call request, the route matching processing mechanism performs route matching according to the service configuration information it obtains, in order to determine the service and computer room for processing the service call request, and then matches the service call request route to the corresponding computer room.

[0034] Step S120, determining whether the service call request contains header tag information.

[0035] The header tag information is a kind of identification information. If a service call request received by a service proxy contains the header tag information, it indicates that the service call request is forwarded by other service proxies, rather than being directly targeted at the computer room corresponding to the service proxy. Of course, the present invention does not specifically limit the form of the header tag information.

[0036] Step S130: if the service call request does not include header tag information, determine the target computer room according to the service configuration information, where the service configuration information indicates that the target service for processing the service call request is located in the target computer room.

[0037] If the service call request does not contain header tag information, the service agent in this computer room queries the service configuration information it has obtained to determine in which computer room the service for processing the service call request is located, that is, obtains the target computer room where the target service for processing the service call request is located.

[0038] Step S140, if the target computer room is not the local computer room, add header tag information to the service call request, and forward the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room forwards the service call request with the added header tag information to the target computer room for processing.

[0039] If the service configuration information used by the route matching is consistent with the service configuration information used by the service proxy of the computer room, the target computer room is the computer room. If the service configuration information used by the route matching is not synchronized with the service configuration information used by the service proxy of the computer room, resulting in inconsistency between the service configuration information used by the route matching and the service configuration information used by the service proxy of the computer room, the target computer room is not the computer room.

[0040] After determining the target computer room for processing the service call request, it is determined whether the target computer room is the computer room. If the target computer room is not the computer room, it means that the service call request is not processed by the service in the computer room, and the service call request needs to be forwarded to the target computer room for processing. In this embodiment, header tag information is added to the service call request, and then the service call request with the added header tag information is forwarded to the service agent of the target computer room. In this way, the service call request is accurately forwarded to the target computer room for processing, which improves the processing efficiency and accuracy of the service call request and avoids the service error problem caused by the asynchronous change of the service configuration information used for routing matching and the service configuration information in the service agent of the computer room.

[0041] Normally, the change time of the synchronization configuration of each computer room in a multi-computer room deployment is inconsistent. It takes a period of time for the service configuration information stored in each computer room to be updated to be consistent. During this period of time when the service configuration information stored in each computer room is inconsistent, there is a forwarding dead loop problem. For example, service agent A in computer room A synchronizes the latest service configuration information. The latest service configuration information indicates that the service used to process the service call request is located in computer room B. Service agent A forwards the service call request to service agent B in computer room B. Service agent B has not yet updated to the latest configuration information. After receiving the service call request forwarded by service agent A, the old service configuration information stored by service agent B indicates that the service call request should still be processed by computer room A. Service agent B will then forward the service call request to service agent A, resulting in a forwarding dead loop and a service error.

[0042] Based on this, in order to avoid the forwarding infinite loop problem caused by the asynchronous update of service configuration information between various service agents, this embodiment adds header tag information to the service call request before forwarding, and forwards the service call request with the added header tag information to the service agent of the target computer room. The service agent of the target computer room directly forwards the service call request with the added header tag information to the target computer room for processing. That is, if the service agent of one computer room receives the service call request with the added header tag information, it is directly forwarded to the corresponding computer room for processing, and is no longer forwarded to the service agents of other computer rooms, thereby breaking the forwarding infinite loop.

[0043] According to the processing method of service call request under multi-computer room deployment provided by this embodiment, the method is applied to the service agent of this computer room, the service agent of this computer room determines in which computer room the target service for processing the service call request provides service, determines the target computer room where the target service is located, and if the target service does not provide service in this computer room, adds a header information tag to the service call request, and then forwards the service call request with the added header tag information to the service agent of the target computer room, so that the target service in the target computer room processes the service call request. Through the above method, on the one hand, by determining the target computer room where the target service for processing the service call request is actually located, the service call request is accurately forwarded to the target computer room for processing, which improves the processing efficiency and accuracy of the service call request, and also avoids the service error problem caused by the asynchronous change of the service configuration information used for routing matching and the service configuration information in the service agent of the computer room; on the other hand, by forwarding the service call request with the added header tag information to the target computer room, the target computer room directly processes the service call request with the added header tag information, which can also avoid the forwarding dead loop problem caused by the asynchronous change of the service configuration information between the service agents of each computer room. In summary, the above method can avoid service errors caused by asynchronous updates of service configuration information between various institutions in a multi-computer room deployment.

[0044] Figure 2 A flowchart of a method for processing a service call request in a multi-machine room deployment provided by another embodiment of the present invention is shown. The method is applied to a service agent in the machine room. The service agent can be in the form of NGX, which is not limited by the present invention. Figure 2 As shown, the method comprises the following steps:

[0045] Step S210, receiving a service call request matched to the computer room through routing.

[0046] Among them, after receiving the service call request, the route matching processing mechanism performs route matching according to the service configuration information it obtains, in order to determine the service and computer room used to process the service call request. After that, the service call request is routed to the corresponding computer room, and the service agent in the computer room receives the service call request.

[0047] Step S220, determine whether the service call request contains header tag information; if so, execute step S230; if not, execute step S240.

[0048] The header tag information is a kind of identification information. If a service call request received by a service proxy contains the header tag information, it indicates that the service call request is forwarded by other service proxies, rather than being directly targeted at the computer room corresponding to the service proxy. Of course, the present invention does not specifically limit the form of the header tag information.

[0049] Step S230, sending the service call request to the computer room for processing.

[0050] If the service agent in the computer room determines that the service call request contains header tag information, indicating that the service call request is forwarded by other service agents, the service call request is directly sent to the computer room for processing without further judgment.

[0051] Step S240: determining a target computer room according to the service configuration information, wherein the service configuration information indicates that a target service for processing a service call request is located in the target computer room.

[0052] If the service agent of this computer room determines that the service call request does not contain the header tag information, a target computer room is determined according to the service configuration information, wherein the target service for processing the service call request is located in the target computer room.

[0053] Optionally, the multi-computer room deployment also has a configuration center for storing service configuration information of all projects. The service configuration information stored in the configuration center is updated in real time. Each computer room has a storage function mechanism for storing service configuration information synchronized from the configuration center. The storage function mechanism of the computer room will synchronize the service configuration information to all servers under the computer room. For example, the storage function mechanism of the computer room can be a zk cluster, and the service agent of the computer room synchronizes the service configuration information from the zk cluster.

[0054] Further optionally, the service agent in this computer room periodically checks whether the service configuration information stored in this computer room has been updated according to a predetermined period; if so, obtains the updated service configuration information and caches it locally. In this method, the service agent opens a scheduled detection task and caches the service configuration information locally at a scheduled time. When the service agent needs to use it, it can directly obtain it from the local cache, rather than going to the zk cluster to obtain all the service configuration information every time a request is received. For example, it is regularly checked whether the service configuration information in the zk cluster has been updated. If so, the updated service configuration information is cached locally. By regularly obtaining the service configuration information, the timeliness of the synchronization of the service configuration information is improved. By caching the service configuration information locally, the processing performance can be improved.

[0055] Step S250, determine whether the target computer room is this computer room; if so, execute step S260; if not, execute step S270.

[0056] After determining the target computer room, determine whether the target computer room is this computer room. For example, in the underlying implementation, the zone can be used to identify the computer room. The service configuration information used for routing matching has not been changed to the latest. The old service configuration information indicates that the service A used to process the service call request has a zone of A, indicating that service A is located in computer room A. Then the service call request is matched and routed to computer room A, which is this computer room. The service agent of computer room A has now been updated to the latest service configuration information. The latest service configuration information indicates that the zone of service A is B, indicating that service A is located in computer room B, which is the target computer room. By comparing the zone of this computer room and the zone of the target computer room, it can be determined whether the target computer room is this computer room. In this example, the target computer room is not this computer room.

[0057] Step S260, sending the service call request to the computer room for processing.

[0058] If it is determined that the target computer room is this computer room, it indicates that the target service for processing the service call request provides services in this computer room and the service call request is processed by this computer room, then the service call request is directly forwarded to this computer room for processing.

[0059] Step S270, add header tag information to the service call request, and use the dedicated line between this computer room and the target computer room to forward the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room can forward the service call request with the added header tag information to the target computer room for processing.

[0060] If it is determined that the target computer room is not this computer room, indicating that the target service used to process the service call request does not provide service in this computer room and this computer room cannot process the service call request, header tag information is added to the service call request, and the service call request with the added header tag information is forwarded to the service agent of the target computer room through the dedicated route between this computer room and the target computer room. The service agent of the target computer room receives the service call request with the added header tag information and directly sends it to the target computer room for processing.

[0061] In an optional manner, when the service management platform detects that any service in any computer room fails or migrates, the service configuration information of the service is modified to modify the service to provide service in the computer room corresponding to the modified service configuration information, and the modified service configuration information of the service is synchronized to the computer room.

[0062] The service management platform is used to manage the services of each project in a unified manner. When a service is detected to have failed or migrated, the configuration information of the service is modified to provide services in other computer rooms. At the same time, the changes in the service configuration information need to be synchronized to each computer room. For example, service A initially provides services in computer room A. At a certain moment, service A fails, so the configuration of service A is modified. After the configuration is modified, service A provides services in computer room B, and such configuration changes are synchronized to each computer room.

[0063] Figure 3 The architecture diagram of multi-computer room deployment provided by the embodiment of the present invention is shown. Taking computer room A as an example, the computer room has an external network NGX, a zk cluster, an internal network NGX and a business APP, wherein the external network NGX has an external network IP, which is used to provide services to the outside world, and service call requests will pass through the external network NGX; the zk cluster is used to store the configuration information of all services and all projects, and will synchronize the service configuration information to all servers in computer room A; the internal network NGX is also a service agent, which is used to execute the method of the service agent applied to the computer room in the above embodiment, and obtain the service configuration information from the zk cluster for caching. When computer room A receives a service call request, if the zone corresponding to the service used to process the service call request is determined to be A through the service configuration information (indicating that the service used to process the service call request is located in computer room A), the service call request is sent to the business APP in computer room A for processing; if the zone corresponding to the service used to process the service call request is determined to be B through the service configuration information, indicating that the service used to process the service call request is located in computer room B, the service call request is forwarded to computer room B for processing.

[0064] According to the method for processing service call requests under multi-computer room deployment provided by this embodiment, the method is applied to the service agent of the computer room, receives the service call request that is routed to the computer room, and determines whether the service call request contains header tag information; if it does, the service call request is directly sent to the computer room for processing; if it does not, the target computer room is further determined based on the service configuration information, and it is determined whether the target computer room is the computer room; if the target computer room is the computer room, the service call request is sent to the computer room for processing; if the target computer room is not the computer room, the header tag information is added to the service call request and forwarded to the service agent of the target computer room, so that the service agent of the target computer room can process the service call request with the added header tag information. Through the above method, on the one hand, by determining the target computer room where the target service for processing the service call request is actually located, the service call request is accurately forwarded to the target computer room for processing, thereby improving the processing efficiency and accuracy of the service call request, and avoiding the service error problem caused by the asynchronous change of the service configuration information used for routing matching and the service configuration information in the service agent of the computer room; on the other hand, by forwarding the service call request with the added header tag information to the target computer room, the target computer room directly processes the service call request with the added header tag information, which can also avoid the forwarding dead loop problem caused by the asynchronous change of service configuration information between the service agents of each computer room. In short, the above method can avoid the service error problem caused by the asynchronous update of service configuration information between various institutions under the deployment of multiple computer rooms.

[0065] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the method for processing a service call request under multi-computer room deployment in any of the above method embodiments.

[0066] The executable instructions may be specifically used to cause the processor to perform the following operations:

[0067] Receive service call requests that are matched to the computer room through routing;

[0068] Determine whether the service call request contains header tag information;

[0069] If the service call request does not include the header tag information, determining the target computer room according to the service configuration information, wherein the service configuration information indicates that the target service for processing the service call request is located in the target computer room;

[0070] If the target computer room is not this computer room, add header tag information to the service call request, and forward the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room can forward the service call request with the added header tag information to the target computer room for processing.

[0071] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0072] If the service call request contains header tag information, the service call request is sent to the computer room for processing.

[0073] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0074] If the target computer room is this computer room, the service call request is sent to this computer room for processing.

[0075] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0076] Using the dedicated line between the computer room and the target computer room, the service call request with the header tag information added is forwarded to the service agent in the target computer room.

[0077] In an optional manner, when the service management platform detects that any service in any computer room fails or migrates, it modifies the service configuration information of the service to modify the service to provide service in the computer room corresponding to the modified service configuration information, and synchronizes the modified service configuration information of the service to the computer room.

[0078] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0079] Regularly check whether the service configuration information stored in the computer room is updated according to a predetermined period;

[0080] If so, obtain the updated service configuration information and cache it locally.

[0081] Through the above method, on the one hand, by determining the target computer room where the target service for processing the service call request is actually located, the service call request is accurately forwarded to the target computer room for processing, thereby improving the processing efficiency and accuracy of the service call request, and avoiding the service error problem caused by the asynchronous change of the service configuration information used for routing matching and the service configuration information in the service agent of the computer room; on the other hand, by forwarding the service call request with the added header tag information to the target computer room, the target computer room directly processes the service call request with the added header tag information, which can also avoid the forwarding dead loop problem caused by the asynchronous change of service configuration information between the service agents of each computer room. In short, the above method can avoid the service error problem caused by the asynchronous update of service configuration information between various institutions under the deployment of multiple computer rooms.

[0082] Figure 4The schematic diagram of the structure of the computing device embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computing device.

[0083] like Figure 4 As shown, the computing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

[0084] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned embodiment of the method for processing service call requests in multi-computer room deployment of computing devices.

[0085] Specifically, the program 410 may include program codes, which include computer operation instructions.

[0086] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0087] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0088] The program 410 may be specifically configured to enable the processor 402 to perform the following operations:

[0089] Receive service call requests that are matched to the computer room through routing;

[0090] Determine whether the service call request contains header tag information;

[0091] If the service call request does not include the header tag information, determining the target computer room according to the service configuration information, wherein the service configuration information indicates that the target service for processing the service call request is located in the target computer room;

[0092] If the target computer room is not this computer room, add header tag information to the service call request, and forward the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room can forward the service call request with the added header tag information to the target computer room for processing.

[0093] In an optional manner, the program 410 enables the processor 401 to perform the following operations:

[0094] If the service call request contains header tag information, the service call request is sent to the computer room for processing.

[0095] In an optional manner, the program 410 enables the processor 401 to perform the following operations:

[0096] If the target computer room is this computer room, the service call request is sent to this computer room for processing.

[0097] In an optional manner, the program 410 enables the processor 401 to perform the following operations:

[0098] Using the dedicated line between the computer room and the target computer room, the service call request with the header tag information added is forwarded to the service agent in the target computer room.

[0099] In an optional manner, when the service management platform detects that any service in any computer room fails or migrates, it modifies the service configuration information of the service to modify the service to provide service in the computer room corresponding to the modified service configuration information, and synchronizes the modified service configuration information of the service to the computer room.

[0100] In an optional manner, the program 410 enables the processor 401 to perform the following operations:

[0101] Regularly check whether the service configuration information stored in the computer room is updated according to a predetermined period;

[0102] If so, obtain the updated service configuration information and cache it locally.

[0103] Through the above method, on the one hand, by determining the target computer room where the target service for processing the service call request is actually located, the service call request is accurately forwarded to the target computer room for processing, thereby improving the processing efficiency and accuracy of the service call request, and avoiding the service error problem caused by the asynchronous change of the service configuration information used for routing matching and the service configuration information in the service agent of the computer room; on the other hand, by forwarding the service call request with the added header tag information to the target computer room, the target computer room directly processes the service call request with the added header tag information, which can also avoid the forwarding dead loop problem caused by the asynchronous change of service configuration information between the service agents of each computer room. In short, the above method can avoid the service error problem caused by the asynchronous update of service configuration information between various institutions under the deployment of multiple computer rooms.

[0104] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description made to specific languages ​​above is for disclosing the best mode of the present invention.

[0105] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0106] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0107] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0108] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0109] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form. It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be constructed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limiting the order of execution.

Claims

1. A method for processing a service call request in a multi-computer room deployment, the method being applied to a service agent in the computer room, comprising: Receive service call requests that are matched to the computer room through routing; Determine whether the service call request contains header tag information; If the service call request does not include header tag information, determining a target computer room according to service configuration information, wherein the service configuration information indicates that a target service for processing the service call request is located in the target computer room; If the target computer room is not the local computer room, adding the header tag information to the service call request, and forwarding the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room forwards the service call request with the added header tag information to the target computer room for processing; When the service management platform detects that any service in any computer room fails or migrates, the service configuration information of the service is modified, the service is provided in the computer room corresponding to the modified service configuration information, and the modified service configuration information of the service is synchronized to the computer room.

2. The method according to claim 1, wherein: The method further comprises: If the service call request contains header tag information, the service call request is sent to the computer room for processing.

3. The method according to claim 1 or 2, wherein: The method further comprises: If the target computer room is the computer room, the service call request is sent to the computer room for processing.

4. The method according to claim 1, wherein: The service agent forwarding the service call request with added header tag information to the target computer room further comprises: The dedicated line between the computer room and the target computer room is used to forward the service call request with the header tag information added to the service agent of the target computer room.

5. The method according to claim 1 or 2, wherein: The method further comprises: Regularly check whether the service configuration information stored in the computer room is updated according to a predetermined period; If so, obtain the updated service configuration information and cache it locally.

6. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations: Receive service call requests that are matched to the computer room through routing; Determine whether the service call request contains header tag information; If the service call request does not include header tag information, determining a target computer room according to service configuration information, wherein the service configuration information indicates that a target service for processing the service call request is located in the target computer room; If the target computer room is not the local computer room, adding the header tag information to the service call request, and forwarding the service call request with the added header tag information to the service agent of the target computer room, so that the service agent of the target computer room forwards the service call request with the added header tag information to the target computer room for processing; When the service management platform detects that any service in any computer room fails or migrates, the service configuration information of the service is modified, the service is provided in the computer room corresponding to the modified service configuration information, and the modified service configuration information of the service is synchronized to the computer room.

7. The computing device of claim 6, wherein the executable instructions further cause the processor to: If the service call request contains header tag information, the service call request is sent to the computer room for processing.

8. The computing device of claim 6 or 7, wherein the executable instructions further cause the processor to perform the following operations: If the target computer room is the computer room, the service call request is sent to the computer room for processing.

9. The computing device of claim 6, wherein the executable instructions further cause the processor to: The dedicated line between the computer room and the target computer room is used to forward the service call request with the header tag information added to the service agent of the target computer room.

10. The computing device of claim 6 or 7, wherein the executable instructions further cause the processor to perform the following operations: Regularly check whether the service configuration information stored in the computer room is updated according to a predetermined period; If so, obtain the updated service configuration information and cache it locally.

11. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the method for processing a service call request in a multi-computer room deployment as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Application deployment method and device for PaaS platform, server and storage medium

    CN108566432A

  • User partition-based user access request processing method and electronic device

    CN110213365A