Request routing method and device for distributed cluster

文档序号:190356 发布日期:2021-11-02 浏览:30次 中文

阅读说明:本技术 一种分布式集群的请求的路由方法和装置 (Request routing method and device for distributed cluster ) 是由 贾涛 王帅阳 李文鹏 于 2021-06-25 设计创作,主要内容包括:本发明公开了一种分布式集群的请求的路由方法和装置,方法包括:从客户端接收分布式文件系统的服务请求,从服务请求中解析出客户端信息并将客户端信息记录到日志;基于服务请求在分布式文件系统确定对应的子集群,将服务请求转发到子集群并将子集群的连接信息记录到日志;从子集群接收针对服务请求的反馈信息,将反馈信息与对应于反馈信息的客户端信息相关联地记录到日志;响应于反馈信息包括服务执行失败,而将对应于反馈信息的客户端信息基于连接信息而发送到子集群。本发明能够便于快速定位服务失败和输入输出阻塞,并且有助于分析联邦集群的负载均衡,提高分布式集群的可用性。(The invention discloses a routing method and a device for a request of a distributed cluster, wherein the method comprises the following steps: receiving a service request of the distributed file system from a client, analyzing client information from the service request and recording the client information to a log; determining a corresponding sub-cluster in the distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to a log; receiving feedback information for the service request from the sub-cluster, recording the feedback information to the log in association with client information corresponding to the feedback information; in response to the feedback information including a service execution failure, sending client information corresponding to the feedback information to the sub-cluster based on the connection information. The invention can be convenient for rapidly positioning service failure and input/output blocking, is beneficial to analyzing the load balance of the federal cluster and improves the availability of the distributed cluster.)

1. A method for routing a request for a distributed cluster, comprising the steps of:

receiving a service request of a distributed file system from a client, analyzing client information from the service request and recording the client information to a log;

determining a corresponding sub-cluster in a distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to the log;

receiving feedback information for the service request from the sub-cluster, recording the feedback information to the log in association with the client information corresponding to the feedback information;

sending the client information corresponding to the feedback information to the sub-cluster based on the connection information in response to the feedback information comprising a service execution failure.

2. The method of claim 1, wherein parsing client information from the service request comprises parsing at least one of: the method comprises the steps of initiating time of the service request, a network address of the client, a remote procedure call method requested by the client and method parameters of the remote procedure call method.

3. The method of claim 1, wherein determining a corresponding sub-cluster in a distributed file system based on the service request, and wherein forwarding the service request to the sub-cluster and logging connection information of the sub-cluster to the log comprises: determining a corresponding sub-cluster in the distributed file system based on the service request, determining an active name node in the sub-cluster, forwarding the service request to the name node, and recording the network address of the name node to the log.

4. The method of claim 1, wherein receiving feedback information for the service request from the sub-cluster comprises receiving at least one of: whether the service request was successfully executed, an end time of the service request.

5. The method of claim 4, wherein recording the feedback information to the log in association with the client information corresponding to the feedback information comprises: determining an overall consumed time of the service request based on the end time of the service request and the initiation time of the service request, and recording whether the service request is successfully executed, the end time of the service request, and the overall consumed time of the service request to the log in association with the client information corresponding to the feedback information.

6. The method of claim 1, further comprising performing the steps of:

feeding back the feedback information to the client based on the client information in response to the feedback information including success or failure of service execution.

7. The method of claim 1, further comprising performing the steps of:

in response to receiving a remote procedure call query request, parsing a remote procedure call method from the remote procedure call query request, and returning the client information and the feedback information related to the remote procedure call method recorded in the log as a result.

8. The method of claim 1, wherein the distributed cluster is a Hadoop cluster and the sub-clusters are subordinate to the Hadoop cluster.

9. The method of claim 8, wherein the clients and the sub-clusters form a federated cluster of the Hadoop cluster.

10. An apparatus for routing a request for a distributed cluster, comprising:

a processor;

a controller storing program code executable by the processor, the processor executing the following steps when executing the program code:

receiving a service request of a distributed file system from a client, analyzing client information from the service request and recording the client information to a log;

determining a corresponding sub-cluster in a distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to the log;

receiving feedback information for the service request from the sub-cluster, recording the feedback information to the log in association with the client information corresponding to the feedback information;

sending the client information corresponding to the feedback information to the sub-cluster based on the connection information in response to the feedback information comprising a service execution failure.

Technical Field

The present invention relates to the field of routing, and in particular, to a method and an apparatus for routing a request of a distributed cluster.

Background

For the federate scenario of Hadoop based Router, when accessing HDFS (Hadoop based distributed file system), the client needs to respond to the client request through Router and forward the request agent to the correct NameNode (named node). If a plurality of clients access the HDFS simultaneously, the Router agent client requests the server NameNode, and an individual server NameNode is abnormal when processing the request, because the Router hides the client information from the server NameNode, the server NameNode cannot identify which client request has an error, which is not beneficial to positioning of operation abnormal failure problem and troubleshooting of network input and output blocking problem, and cannot analyze the load balance condition of the Router in the whole federal cluster, so that the federal cluster is difficult to process the error and analyze the load, and the availability is poor.

Aiming at the problems that the distributed cluster in the prior art is difficult to process errors and analyze load and has poor availability, no effective solution is available at present.

Disclosure of Invention

In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for routing a request of a distributed cluster, which can facilitate quick location of service failure and input/output congestion, and facilitate analysis of load balancing of a federate cluster, thereby improving availability of the distributed cluster.

Based on the above object, a first aspect of the embodiments of the present invention provides a method for routing a request of a distributed cluster, including the following steps:

receiving a service request of the distributed file system from a client, analyzing client information from the service request and recording the client information to a log;

determining a corresponding sub-cluster in the distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to a log;

receiving feedback information for the service request from the sub-cluster, recording the feedback information to the log in association with client information corresponding to the feedback information;

in response to the feedback information including a service execution failure, sending client information corresponding to the feedback information to the sub-cluster based on the connection information.

In some embodiments, parsing client information from the service request includes parsing at least one of: the method comprises the steps of initiating time of a service request, a network address of a client, a remote procedure calling method requested by the client and method parameters of the remote procedure calling method.

In some embodiments, determining a corresponding sub-cluster at the distributed file system based on the service request, forwarding the service request to the sub-cluster and logging connection information of the sub-cluster to a log comprises: determining a corresponding sub-cluster in the distributed file system based on the service request, determining an active name node in the sub-cluster, forwarding the service request to the name node, and recording a network address of the name node to a log.

In some embodiments, receiving feedback information for the service request from the sub-cluster comprises receiving at least one of: whether the service request was successfully executed, the end time of the service request.

In some implementations, logging the feedback information to the log in association with the client information corresponding to the feedback information includes: determining an overall consumed time of the service request based on the end time of the service request and the initiation time of the service request, and logging whether the service request is successfully executed, the end time of the service request, and the overall consumed time of the service request in association with client information corresponding to the feedback information.

In some embodiments, the method further comprises performing the steps of: feeding back feedback information to the client based on the client information in response to the feedback information including success or failure of service execution.

In some embodiments, the method further comprises performing the steps of: and analyzing a remote procedure call method from the remote procedure call query request in response to receiving the remote procedure call query request, and returning client information and feedback information related to the remote procedure call method, which are recorded in the log, as a result.

In some embodiments, the distributed cluster is a Hadoop cluster and the sub-clusters are subordinated to the Hadoop cluster.

In some embodiments, the clients and the sub-clusters form a federated cluster of the Hadoop cluster.

A second aspect of an embodiment of the present invention provides an apparatus, including:

a processor;

a controller storing program code executable by a processor, the processor executing the following steps when executing the program code:

receiving a service request of the distributed file system from a client, analyzing client information from the service request and recording the client information to a log;

determining a corresponding sub-cluster in the distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to a log;

receiving feedback information for the service request from the sub-cluster, recording the feedback information to the log in association with client information corresponding to the feedback information;

in response to the feedback information including a service execution failure, sending client information corresponding to the feedback information to the sub-cluster based on the connection information.

In some embodiments, parsing client information from the service request includes parsing at least one of: the method comprises the steps of initiating time of a service request, a network address of a client, a remote procedure calling method requested by the client and method parameters of the remote procedure calling method.

In some embodiments, determining a corresponding sub-cluster at the distributed file system based on the service request, forwarding the service request to the sub-cluster and logging connection information of the sub-cluster to a log comprises: determining a corresponding sub-cluster in the distributed file system based on the service request, determining an active name node in the sub-cluster, forwarding the service request to the name node, and recording a network address of the name node to a log.

In some embodiments, receiving feedback information for the service request from the sub-cluster comprises receiving at least one of: whether the service request was successfully executed, the end time of the service request.

In some implementations, logging the feedback information to the log in association with the client information corresponding to the feedback information includes: determining an overall consumed time of the service request based on the end time of the service request and the initiation time of the service request, and logging whether the service request is successfully executed, the end time of the service request, and the overall consumed time of the service request in association with client information corresponding to the feedback information.

In some embodiments, further comprising performing the steps of: feeding back feedback information to the client based on the client information in response to the feedback information including success or failure of service execution.

In some embodiments, further comprising performing the steps of: and analyzing a remote procedure call method from the remote procedure call query request in response to receiving the remote procedure call query request, and returning client information and feedback information related to the remote procedure call method, which are recorded in the log, as a result.

In some embodiments, the distributed cluster is a Hadoop cluster and the sub-clusters are subordinated to the Hadoop cluster.

In some embodiments, the clients and the sub-clusters form a federated cluster of the Hadoop cluster.

The invention has the following beneficial technical effects: according to the routing method and device for the request of the distributed cluster, provided by the embodiment of the invention, the service request of the distributed file system is received from the client, the client information is analyzed from the service request, and the client information is recorded into the log; determining a corresponding sub-cluster in the distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to a log; receiving feedback information for the service request from the sub-cluster, recording the feedback information to the log in association with client information corresponding to the feedback information; the technical scheme of sending the client information corresponding to the feedback information to the sub-cluster based on the connection information in response to the feedback information including the service execution failure can facilitate quick positioning of the service failure and the input and output blockage, and is helpful for analyzing the load balance of the federate cluster and improving the availability of the distributed cluster.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a schematic flow chart of a request routing method for a distributed cluster according to the present invention;

fig. 2 is a data transmission diagram of a request routing method of a distributed cluster according to the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.

It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.

In view of the foregoing, a first aspect of the embodiments of the present invention provides an embodiment of a method for routing a request of a distributed cluster, which facilitates quick location of service failure and input/output blocking, and is helpful for analyzing load balancing of a federate cluster and improving availability of the distributed cluster. Fig. 1 is a schematic flow chart of a request routing method for a distributed cluster according to the present invention.

The routing method of the request of the distributed cluster, as shown in fig. 1, includes the following steps:

step S101, receiving a service request of a distributed file system from a client, analyzing client information from the service request and recording the client information to a log;

step S103, determining a corresponding sub-cluster in the distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to a log;

step S105, receiving feedback information aiming at the service request from the sub-cluster, and recording the feedback information and the client information corresponding to the feedback information to a log in a correlated manner;

step S107 of transmitting client information corresponding to the feedback information to the sub-cluster based on the connection information in response to the feedback information including the service execution failure.

In a Hadoop Distributed File System (HDFS), aiming at a federal scene based on a Router, a recording method of the Router for the whole time consumption of client IP, client request information, forwarded server IP, server processing results and Remote Procedure Call (RPC) is designed, the problem location and troubleshooting efficiency when the HDFS is accessed abnormally is improved, and meanwhile, the complete elaboration of log auditing is ensured.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like. Embodiments of the computer program may achieve the same or similar effects as any of the preceding method embodiments to which it corresponds.

In some embodiments, parsing client information from the service request includes parsing at least one of: the method comprises the steps of initiating time of a service request, a network address of a client, a remote procedure calling method requested by the client and method parameters of the remote procedure calling method.

In some embodiments, determining a corresponding sub-cluster at the distributed file system based on the service request, forwarding the service request to the sub-cluster and logging connection information of the sub-cluster to a log comprises: determining a corresponding sub-cluster in the distributed file system based on the service request, determining an active name node in the sub-cluster, forwarding the service request to the name node, and recording a network address of the name node to a log.

In some embodiments, receiving feedback information for the service request from the sub-cluster comprises receiving at least one of: whether the service request was successfully executed, the end time of the service request.

In some implementations, logging the feedback information to the log in association with the client information corresponding to the feedback information includes: determining an overall consumed time of the service request based on the end time of the service request and the initiation time of the service request, and logging whether the service request is successfully executed, the end time of the service request, and the overall consumed time of the service request in association with client information corresponding to the feedback information.

The various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.

In some embodiments, the method further comprises performing the steps of: feeding back feedback information to the client based on the client information in response to the feedback information including success or failure of service execution.

In some embodiments, the method further comprises performing the steps of: and analyzing a remote procedure call method from the remote procedure call query request in response to receiving the remote procedure call query request, and returning client information and feedback information related to the remote procedure call method, which are recorded in the log, as a result.

In some embodiments, the distributed cluster is a Hadoop cluster and the sub-clusters are subordinated to the Hadoop cluster.

The computer-readable storage media (e.g., memory) described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.

The following further illustrates embodiments of the invention in accordance with the specific example shown in fig. 2. Referring to fig. 2, firstly, a client initiates a request to the HDFS, and when receiving the client request, the RPC (remote procedure call) of the Router records the initiation request time still of the client, the IP address src (host: port) of the client, the RPC method of the request, and the method parameters according to the request information of the client.

Then when the request is forwarded, the Router finds the correct sub-cluster according to the request information submitted by the client, forwards the request to the active NameNode of the sub-cluster, and records the IP address dst (host: port) of the target NameNode when forwarding.

When the NameNode request returns, the Router records whether the execution is successful or not, the time of execution ending and the whole time-consuming T (time-atime) of the request according to the initiation request time stime of the client and the time of execution ending according to the request return result of calling the NameNode, and records the time-atime together.

Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention. The above-described method steps and system elements may also be implemented using a controller and a computer-readable storage medium for storing a computer program for causing the controller to implement the functions of the above-described steps or elements.

It can be seen from the foregoing embodiments that, in the routing method for requests of a distributed cluster provided in the embodiments of the present invention, a service request of a distributed file system is received from a client, and client information is parsed from the service request and recorded in a log; determining a corresponding sub-cluster in the distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to a log; receiving feedback information for the service request from the sub-cluster, recording the feedback information to the log in association with client information corresponding to the feedback information; the technical scheme of sending the client information corresponding to the feedback information to the sub-cluster based on the connection information in response to the feedback information including the service execution failure can facilitate quick positioning of the service failure and the input and output blockage, and is helpful for analyzing the load balance of the federate cluster and improving the availability of the distributed cluster.

It should be particularly noted that, the steps in the foregoing embodiments of the request routing method for distributed cluster may be intersected, replaced, added, or deleted, and therefore, these reasonable permutation and combination transformation methods for routing a request to a distributed cluster should also belong to the scope of the present invention, and should not limit the scope of the present invention to the described embodiments.

In view of the foregoing, a second aspect of the embodiments of the present invention provides an embodiment of a routing apparatus for requests of a distributed cluster, which facilitates quick location of service failures and input/output blocking, and is helpful for analyzing load balancing of a federate cluster to improve availability of the distributed cluster. The device comprises:

a processor;

a controller storing program code executable by a processor, the processor executing the following steps when executing the program code:

receiving a service request of the distributed file system from a client, analyzing client information from the service request and recording the client information to a log;

determining a corresponding sub-cluster in the distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to a log;

receiving feedback information for the service request from the sub-cluster, recording the feedback information to the log in association with client information corresponding to the feedback information;

in response to the feedback information including a service execution failure, sending client information corresponding to the feedback information to the sub-cluster based on the connection information.

The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.

In some embodiments, parsing client information from the service request includes parsing at least one of: the method comprises the steps of initiating time of a service request, a network address of a client, a remote procedure calling method requested by the client and method parameters of the remote procedure calling method.

In some embodiments, determining a corresponding sub-cluster at the distributed file system based on the service request, forwarding the service request to the sub-cluster and logging connection information of the sub-cluster to a log comprises: determining a corresponding sub-cluster in the distributed file system based on the service request, determining an active name node in the sub-cluster, forwarding the service request to the name node, and recording a network address of the name node to a log.

In some embodiments, receiving feedback information for the service request from the sub-cluster comprises receiving at least one of: whether the service request was successfully executed, the end time of the service request.

In some implementations, logging the feedback information to the log in association with the client information corresponding to the feedback information includes: determining an overall consumed time of the service request based on the end time of the service request and the initiation time of the service request, and logging whether the service request is successfully executed, the end time of the service request, and the overall consumed time of the service request in association with client information corresponding to the feedback information.

In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

In some embodiments, further comprising performing the steps of: feeding back feedback information to the client based on the client information in response to the feedback information including success or failure of service execution.

In some embodiments, further comprising performing the steps of: and analyzing a remote procedure call method from the remote procedure call query request in response to receiving the remote procedure call query request, and returning client information and feedback information related to the remote procedure call method, which are recorded in the log, as a result.

In some embodiments, the distributed cluster is a Hadoop cluster and the sub-clusters are subordinated to the Hadoop cluster.

In some embodiments, the clients and the sub-clusters form a federated cluster of the Hadoop cluster.

The apparatuses and devices disclosed in the embodiments of the present invention may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, and the like, or may be a large terminal device, such as a server, and therefore the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of apparatus and device. The client disclosed in the embodiment of the present invention may be applied to any one of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.

As can be seen from the foregoing embodiments, the routing apparatus for a request of a distributed cluster according to the embodiments of the present invention receives a service request of a distributed file system from a client, parses client information from the service request, and records the client information in a log; determining a corresponding sub-cluster in the distributed file system based on the service request, forwarding the service request to the sub-cluster and recording the connection information of the sub-cluster to a log; receiving feedback information for the service request from the sub-cluster, recording the feedback information to the log in association with client information corresponding to the feedback information; the technical scheme of sending the client information corresponding to the feedback information to the sub-cluster based on the connection information in response to the feedback information including the service execution failure can facilitate quick positioning of the service failure and the input and output blockage, and is helpful for analyzing the load balance of the federate cluster and improving the availability of the distributed cluster.

It should be particularly noted that the foregoing embodiment of the apparatus employs the embodiment of the request routing method for the distributed cluster to specifically describe the working process of each module, and those skilled in the art can easily think that these modules are applied to other embodiments of the request routing method for the distributed cluster. Of course, since the steps in the embodiment of the request routing method for the distributed cluster may be intersected, replaced, added, or deleted, these reasonable permutation and combination transformations should also belong to the scope of the present invention, and should not limit the scope of the present invention to the embodiment.

The embodiment of the invention also can comprise corresponding computer equipment. The computer device comprises a memory, at least one processor and a computer program stored on the memory and executable on the processor, the processor performing any of the above methods when executing the program.

The memory, as a non-volatile computer-readable storage medium, may be used to store a non-volatile software program, a non-volatile computer-executable program, and modules, such as program instructions/modules corresponding to the request routing method of the distributed cluster in this embodiment of the present application. The processor executes various functional applications of the server and data processing by running nonvolatile software programs, instructions and modules stored in the memory, that is, the routing method of the request of the distributed cluster, which implements the above method embodiments.

The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the routing device of the request of the distributed cluster, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

Embodiments of the present invention may further include a corresponding computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, where the computer-executable instructions may execute the routing method for the request of the distributed cluster in any of the above method embodiments and a routing apparatus for implementing the request of the distributed cluster in any of the above apparatus embodiments. Embodiments of the computer-readable storage medium may achieve the same or similar effects as any of the aforementioned method and apparatus embodiments corresponding thereto.

Embodiments of the present invention may also include corresponding computer program products comprising a computer program stored on a computer-readable storage medium, the computer program comprising instructions that, when executed by a computer, cause the computer to perform a method for routing a request of a distributed cluster in any of the above-mentioned method embodiments and a routing apparatus implementing a request of a distributed cluster in any of the above-mentioned apparatus embodiments. Embodiments of the computer program product may achieve the same or similar effects as any of the aforementioned method and apparatus embodiments corresponding thereto.

Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like. Embodiments of the computer program may achieve the same or similar effects as any of the preceding method embodiments to which it corresponds.

The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.

Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种分布式图数据库数据处理方法、介质和电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!