Hardware-implemented load balancing

By using hardware acceleration devices to maintain the load data structure in the server system, the problem of the inability to respond to load changes in a timely manner in software-driven load balancing schemes is solved, achieving more efficient load balancing and response speed.

CN116594781BActive Publication Date: 2026-11-27MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310720759.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-01-17
Filing Date
2017-12-20
Publication Date
2026-11-27
Estimated Expiration
2037-12-20

AI Technical Summary

Technical Problem

Existing software-driven load balancing solutions cannot respond to changes in server load in a timely manner, resulting in requests not being served promptly.

Method used

Hardware acceleration devices are used to maintain the load data structure, and load balancing is achieved through hardware, routing requests to the target hardware acceleration device with the lowest load.

Benefits of technology

It achieves more accurate load balancing, improving the processing efficiency and response speed of the server system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116594781B_ABST
    Figure CN116594781B_ABST
Patent Text Reader

Abstract

A server system is provided that includes a plurality of servers, each server including at least one hardware acceleration device and at least one processor communicatively coupled to the hardware acceleration device by an internal data bus and executing a host server instance, the host server instances of the plurality of servers collectively providing a software plane, the hardware acceleration devices of the plurality of servers collectively providing a hardware acceleration plane that implements a plurality of hardware acceleration services, wherein each hardware acceleration device maintains, in memory, a data structure containing load data that indicates a load of each of a plurality of target hardware acceleration devices, and wherein a requesting hardware acceleration device routes a request to a target hardware acceleration device that is indicated by the load data in the data structure to have a lower load than the other target hardware acceleration devices.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of Chinese invention patent application No. 201780083496.5, filed with the International Bureau on December 20, 2017, with a priority date of January 17, 2017, entered the Chinese national phase on July 15, 2019, and entitled "Hardware-implemented Load Balancing". Background Technology

[0002] Server systems use load balancing processes to direct requests to less loaded servers in the system to improve efficiency when handling a large number of requests. Many current load balancing solutions are software-driven and perform the load balancing process using relatively outdated load data. Therefore, when a request is routed to a server according to these load balancing processes, by the time the request reaches the server, the load on that server may have increased beyond what the software-driven load balancer calculated based on outdated load data, causing the server to be unable to serve the request in a timely manner. Summary of the Invention

[0003] To address the aforementioned issues, a server system for hardware-based load balancing is provided. The server system may include multiple servers, each including at least one hardware acceleration device and at least one processor. The at least one processor is communicatively coupled to the hardware acceleration device via an internal data bus and executes a host server instance. The host server instances of the multiple servers collectively provide a software plane, and the hardware acceleration devices of the multiple servers collectively provide a hardware acceleration plane for implementing multiple hardware acceleration services. Each hardware acceleration device maintains a data structure in memory containing load data indicating the load of each of a plurality of target hardware acceleration devices implementing a specified hardware acceleration service. When a requesting hardware acceleration device routes a request for a specified hardware acceleration service, the requesting hardware acceleration device routes the request to a target hardware acceleration device, which is indicated by the load data in the data structure to have a lower load than other target hardware acceleration devices.

[0004] This synopsis is provided to introduce some concepts in a simplified form, which will be further described in the detailed embodiments below. This synopsis is not intended to identify key or essential features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter. Furthermore, the claimed subject matter is not limited to the implementation of solutions to any or all the shortcomings mentioned in any part of this disclosure. Attached Figure Description

[0005] Figure 1 This is a schematic diagram illustrating the example server system described in this specification.

[0006] Figure 2 It is shown Figure 1 A schematic diagram of a server cluster for an example server system.

[0007] Figure 3 yes Figure 1 A schematic diagram of an example hardware acceleration device for an example server system.

[0008] Figure 4 It shows the... Figure 1 This is a diagram illustrating a sample request for hardware acceleration services on a sample server system.

[0009] Figure 5 Continue to Figure 4 Example request for hardware acceleration service.

[0010] Figure 6 This is a multi-step request illustrated. Figure 1 A schematic diagram of the server system.

[0011] Figure 7 This is a flowchart of an example method for hardware-based load balancing, which can use... Figure 1 This can be achieved using this server system or other suitable server system hardware.

[0012] Figure 8 It is shown Figure 7 Another flowchart of the additional steps of the method.

[0013] Figure 9 It is possible Figure 1 A schematic diagram of exemplary computer hardware used in a server system. Detailed Implementation

[0014] Figure 1 The illustration shows a server system 100 comprising multiple servers 102, which collectively provide a software plane 104 and a hardware acceleration plane 106. The software plane 104 comprises a collection of software-driven components (each software-driven component consists of...). Figure 1 (The symbol "S" is used to indicate this), and the hardware acceleration plane 106 includes a collection of hardware-accelerated components (each hardware-accelerated component consists of...). Figure 1(The symbol "H" is used to indicate this). In one example, each host component may correspond to a host server instance executed by one or more processors of one of the multiple servers 102. In this example, each hardware acceleration component may correspond to a hardware acceleration device that includes hardware logic for implementing the functionality, such as a field-programmable gate array (FPGA) device, a massively parallel processor array (MPPA) device, a graphics processing unit (GPU), an application-specific integrated circuit (ASIC), a multiprocessor system-on-a-chip (MPSoC), etc.

[0015] The term "hardware" acceleration component can also encompass other ways of utilizing hardware acceleration devices to perform functions, such as, for example, a) implementing at least some tasks in hard ASIC logic, etc.; b) implementing at least some tasks in soft (configurable) FPGA logic, etc.; c) at least some tasks running as software overlaid on an FPGA software processor, etc.; d) at least some tasks running as software over a hardware ASIC processor, etc., or any combination thereof. It should be understood that hardware acceleration plane 106 can represent a homogeneous collection of hardware acceleration devices, such as FPGA devices. On the other hand, hardware acceleration plane 106 can represent a heterogeneous collection of different types of hardware acceleration devices, including different types of FPGA devices with different corresponding processing capabilities and architectures, a mixture of FPGA devices and other types of hardware acceleration devices, etc.

[0016] Processors typically use a time-based execution paradigm to perform operations, such as sequentially executing machine-readable instructions using each of their processor hardware threads. In contrast, hardware-accelerated devices can use a spatial paradigm to perform operations, such as performing computational tasks using a large number of parallel logic elements. Therefore, compared to processors and software-driven components, hardware-accelerated components can perform some operations that can be decomposed into many parallel tasks in less computation time. Thus, the "acceleration" qualifier associated with the term "hardware-accelerated device" as used herein reflects its potential to accelerate the functionality performed by a server's processor.

[0017] In one example, server system 100 corresponds to a data center environment in which multiple servers 102 are communicatively coupled via standard network infrastructure. (Go to...) Figure 2Multiple servers 102 are organized into multiple server clusters 200. Each server cluster includes a top-of-rack (TOR) network switch 202, two or more servers (such as servers 206, 208, ..., and 210) among the multiple servers 102, and a backplane 204 communicatively coupling the TOR network switch 202 and the two or more servers. For example, each server cluster 200 may correspond to a server rack that provides physical structure, ventilation, etc., for the TOR switch 202 and multiple servers 206, 208, ..., and 210 physically located close to each other in the same server rack. The backplane 204 communicatively coupling each server in the server rack can facilitate low-latency and high-bandwidth switching of network packets between servers in the same server rack.

[0018] like Figure 2 As illustrated, each server 206, 208, ..., 210 in server cluster 200 includes at least one hardware acceleration device 212 and at least one processor 214. The at least one processor 214 is communicatively coupled to the hardware acceleration device 212 via an internal data bus 216 and executes a host server instance 218. As shown, each server may include more than one processor, such as an additional processor 220, etc. The more than one processor may each execute a separate host server instance 218, or they may collectively execute a single host server instance. In one example, the internal data bus 216 may take the form of, for example, a Peripheral Component Interconnect Fast (PCIe) link. Alternatively, other data bus formats may be used. It should be understood that the term "internal data bus" as used refers to the fact that at least a portion of the data bus is typically housed within the same housing as the server's processor (which serves as a Faraday cage), and should be understood to encompass the data bus connecting the server's processor within the housing to an internally mounted hardware acceleration component (as an example) inserted into a PCIe slot on the server's circuit board, or the data bus of an externally coupled hardware acceleration component connected to a PCIe port inserted into, for example, the external surface of the server's housing. As illustrated, hardware acceleration device 212 is also indirectly coupled to processor 214 via network interface controller (NIC) 218, which is also coupled to processor 214 via internal data bus 216, which may include, for example, one or more internal data buses as sub-components.

[0019] Finally, as Figure 2As illustrated, the hardware acceleration device 212 of each server 208 in server cluster 200 is coupled to TOR network switch 202. Therefore, in the illustrated example, the hardware acceleration device 212 provides the processor 214 with the sole path through which to interact with the other servers 208, ..., 210 in server cluster 200, and with the other servers in the plurality of servers 102 of server system 100. Among other effects, Figure 2 The architecture also allows the hardware acceleration device 212 coupled to the processor 214 to perform processing (e.g., by performing encryption, compression, etc.) on packets received from and / or sent to the TOR network switch 202 without increasing the computational burden on one or more processors 214, 220, etc.

[0020] In this example, each host server instance 218 is coupled to at least one hardware acceleration device 212 via an internal data bus 216, such that these components are physically coupled together as a server. The hardware acceleration device and the host server components executed by processors within the same server may be referred to herein as “local” hardware acceleration devices and “local” host server instances to distinguish them from other hardware acceleration devices and host server instances corresponding to other servers. Conversely, the hardware acceleration devices and host server instances of other servers may be referred to herein as “remote” hardware acceleration devices and “remote” host server instances to distinguish them from the local hardware acceleration devices and local host server instances of a particular server. The use of “remote” in this context does not require that the remote device be located on a wide area network (WAN) from the requesting device, as they are typically provided within the same data center. Additionally, servers within the same server cluster may be referred to as “peer” servers to distinguish them from other servers in server system 100 that are not in that particular server cluster.

[0021] Return to Figure 1 The software plane 104 is jointly provided by host server instances executed by the processors of multiple servers 102, and the hardware acceleration plane 106 is jointly provided by the hardware acceleration devices of multiple servers 102. Figure 1 An example localhost server instance 108 is shown in software plane 104. This example localhost server instance 108 is executed by a processor coupled to a local hardware acceleration component 110 of hardware acceleration plane 106 via an internal data bus 112. This pairing forms a single server among multiple servers 102. More generally, Figure 1 The software plane 104 is shown to be coupled to the hardware acceleration plane 106 via multiple separate internal data buses. Figure 1 This is collectively referred to as local (H) to local (S) coupling 114.

[0022] Local host server instance 108 can also communicate indirectly with other remote hardware acceleration devices in hardware acceleration plane 106. For example, local host server instance 108 accesses remote hardware acceleration device 116 via local hardware acceleration device 110, and local hardware acceleration device 110 can communicate with remote hardware acceleration device 116 via network infrastructure 118. In one example, network infrastructure 118 includes public network infrastructure to couple servers within the server cluster to server racks via TOR network switches. Figure 1 As illustrated in the diagram, server system 100 includes multiple server clusters, each server cluster having an associated TOR network switch, and can have... Figure 2 The architecture described herein. Network infrastructure 118 may also include higher-level switching infrastructure 120 (L1) and (L2) that connect the TOR network switches together. Higher-level switching infrastructure 120 can take the form of any suitable networking architecture and can be driven by any suitable routing protocol(s). In the illustrated example, higher-level infrastructure 120 includes a set of aggregation switches L1 and core switches L2. However, it should be understood that higher-level switching infrastructure can include any suitable number of switch levels.

[0023] Therefore, as Figure 1 As illustrated, each host server instance in software plane 104 can communicate with other host server instances via corresponding hardware acceleration devices and network infrastructure 118. Therefore, it should be understood that the same network infrastructure 118 used to communicatively couple each host server instance to other host server instances in software plane 104 also communicatively couples each hardware acceleration device to other hardware acceleration devices in hardware acceleration plane 106. In the example of server system 100, interactions between host server instances in software plane 104 are independent of interactions between hardware acceleration devices in hardware acceleration plane 106. Specifically, for example, two or more hardware acceleration devices can send and consume network packets between each other without any direction or intervention from host server instances in software plane 104, and the host server instances are not “aware” of any particular interaction occurring in hardware acceleration plane 106 or otherwise making it a computational burden. On the other hand, a host server instance can initiate an interaction occurring in hardware acceleration plane 106 by issuing a request that can be read and routed by the local hardware acceleration device for that particular host server instance.

[0024] In one example, server system 100 uses the Ethernet protocol to transmit IP packets over network infrastructure 118. In this example, each host server instance of the plurality of servers 102 in server system 100 can be associated with a single physical IP address for a specific server containing the processor executing that host server instance. Local hardware acceleration devices within the same server can use the same IP address. The server can determine, in several ways, whether an incoming packet is destined for a local host server instance rather than a local hardware acceleration component. For example, a packet destined for a local hardware acceleration device can be configured as a User Datagram Protocol (UDP) packet, selected to be assigned to a specific port of the local hardware acceleration device. On the host side, packets destined for a local host server instance are not configured as UDP packets. In another example, packets belonging to hardware acceleration plane 106 and packets belonging to software plane 104 can be distinguished based on the values ​​of status flags in each packet.

[0025] The hardware acceleration plane 106 implements multiple hardware acceleration services. For example, these multiple hardware acceleration services may include, for instance, encryption services, expensive compression services, deep neural network services, bioinformatics services, web search ranking services, decision tree computation services, etc. It should be understood that the hardware acceleration services mentioned above are merely exemplary, and any other hardware acceleration services not specifically mentioned above may also be included in the multiple hardware acceleration services.

[0026] Figure 3 The illustration shows an example hardware acceleration device 300 for hardware acceleration layer 106, which can be implemented, for example, as an FPGA device. It should be understood that the form of the hardware acceleration device is not limited to the example shown, and other hardware acceleration device architectures can be used.

[0027] As illustrated, the example hardware acceleration device 300 includes a bridge 302 for coupling the hardware acceleration device 300 to a network interface controller via a NIC interface 304 and to a local rack top switch via a TOR interface 306. In one example, the bridge 302 supports two modes. In a first mode, the bridge 302 provides a data path that allows traffic from either the NIC or TOR to flow into the hardware acceleration device 300 and allows traffic from the hardware acceleration device 300 to flow out to both the NIC and TOR. The hardware acceleration device 300 can perform processing on the traffic flowing through the bridge 302, including hardware acceleration services among various hardware acceleration services, such as compression, encryption, web search ranking, etc. In a second mode, the bridge 302 supports a data path that allows traffic to flow between the NIC and TOR without further processing by the hardware acceleration device 300. Internally, the bridge may consist of various first-in-first-out buffers (FIFOs) (308, 310) for buffering received packets and various selectors and arbitration logic for routing packets to their desired destinations. Bypass control 312 controls whether bridge 302 operates in the first mode or the second mode.

[0028] like Figure 3 As further illustrated, memory controller 314 manages the interaction between hardware acceleration device 300 and local memory 316, such as the DRAM memory of the server containing hardware acceleration device 300. For example, hardware acceleration device 300 can update memory pages of local memory 316 that are accessible to a localhost server instance executed by the server's local processor.

[0029] Host interface 318 provides the functionality that enables hardware acceleration device 300 to interact with the local processor executing the local host server instance. In one example, host interface 318 may interact with the local host server instance via an internal data bus such as a PCIe link. Alternatively, hardware acceleration device 300 may interact with the local host server instance with low latency by updating memory pages of local memory 316 accessible to the local host server instance.

[0030] In one example, hardware acceleration device 300 may include router 320 for routing messages between various internal components of hardware acceleration device 300 and between hardware acceleration device 300 and external components via transport component 322. Each such endpoint is associated with a corresponding port. In the illustrated example, router 320 is coupled to memory controller 314, host interface 318, transport component 322, and application logic 324.

[0031] In the FPGA implementation of the hardware acceleration device 300, the application logic 324 may include programmable logic for implementing a specific hardware acceleration service among multiple hardware acceleration services. In the FPGA implementation, the application logic 324 may be reprogrammable to change the hardware acceleration device 300 from implementing a first hardware acceleration service to implementing a second hardware acceleration service.

[0032] The transmission component 322 formulates packets for transmission to remote entities such as remote hardware acceleration devices, and receives packets from remote acceleration devices in the hardware acceleration plane 106.

[0033] In the illustrated example, transport component 322 is coupled to a 3-port switch 326, which, when activated, can take over the functionality of bridge 302 by routing packets between the NIC and TOR, and between the NIC or TOR and the local ports associated with the hardware acceleration device itself. The 3-port switch 326 can operate to securely insert and remove network packets generated by the hardware acceleration device on the server system 100 network without impairing localhost server instance to TOR network traffic traveling via bridge 302.

[0034] Figure 4 The illustration depicts an example scenario for example server system 400, which receives client request 402 from client device 404 of an end user of services provided by example server system 400. Client request 402 is received by server load balancer (SLB) 406 of example server system 400. In this example, the SLB may be, for example, a software-driven load balancer that routes client request 402 to a host server instance in the software plane capable of serving client request 402. In the illustrated example, SLB 406 routes client request 402 to the IP address of example host server instance 408. At step (1), client request 402 is received by example local hardware acceleration device 410, which is coupled via an internal data bus to a processor executing local example host server instance 408. Example local hardware acceleration device 410 reads client request 402 and determines that client request 402 is destined for example local host server instance 408. Therefore, at step (2), the example local hardware acceleration device 410 passes the client request 402 to the example local host server instance 408 via an internal data bus (such as, for example, a PCIe link). The example local host server instance 408 receives the client request 402 and processes the client request 402 according to the server application logic of the example local host server instance 408.

[0035] In the illustrated example, example localhost server instance 408 specifies two of a plurality of hardware-accelerated services implemented by the hardware acceleration plane required by the full-service client request 402. It should be understood that in this particular example, example localhost server instance 408 determines which hardware-accelerated services are required, but in other examples, different entities such as local hardware acceleration device 410 or SLB 406 may determine which hardware-accelerated services are required for the full-service client request 402.

[0036] Therefore, at step (3), example local server instance 408 sends a request for one or more specified hardware acceleration services. As illustrated, example local hardware acceleration device 410 reads the request and, if example local hardware acceleration device 410 does not implement one or more specified hardware acceleration services, routes the request to a suitable remote hardware acceleration device. In this specific example, the request for a specified hardware acceleration service is a multipart request, which includes sequential requests for a first specified hardware acceleration service of type A implemented by a first server cluster A and then a second specified hardware acceleration service B implemented by a second server cluster B. In one example, each specified hardware acceleration service in the multipart request is implemented sequentially. In another example, each specified hardware acceleration service in the multipart request is implemented simultaneously by several remote hardware acceleration devices, each remote hardware acceleration device implementing one of the specified hardware acceleration services in the multipart request. In yet another example, the multipath request includes sequential and parallel steps for multiple specified hardware acceleration services.

[0037] Temporary turn Figure 5 When the example local hardware acceleration device 410 reads a request originating from the example localhost server instance 408, the example local hardware acceleration device 410 determines that the request is for one or more specified hardware acceleration services. Specifically, the example local hardware acceleration device 410 determines that the request needs to be served by a remote hardware acceleration device that implements a first specified hardware acceleration service of type A. To route the request to the appropriate remote hardware acceleration device that implements the first specified hardware acceleration service of type A, the example local hardware acceleration device 410 accesses a data structure containing payload data from the local memory of the server containing the example local hardware acceleration device.

[0038] In one example, each hardware acceleration device maintains a data structure 412 in memory containing payload data 414, which indicates the payload of each of the plurality of target hardware acceleration devices 416 implementing a specified hardware acceleration service 418 that implements multiple hardware acceleration services. That is, each hardware acceleration device maintains its own data structure for the payload data 414 of each target hardware acceleration device implementing each hardware acceleration service in the hardware acceleration plane. In one example, the data structure maintained by each hardware acceleration device includes the payload data 414 of each target hardware acceleration device implementing each hardware acceleration service in the hardware acceleration plane.

[0039] In another example, the data structure maintained by each hardware acceleration device includes payload data 414 for each of the subsets implementing multiple hardware acceleration services. Specifically, each hardware acceleration device may maintain a data structure containing data for a target hardware acceleration device that implements a specific hardware acceleration service frequently requested for that device. It should be understood that these example subsets are exemplary, and other combinations of payload data 414 may be stored in the data structure.

[0040] exist Figure 5 In the example illustrated, the load data for each target hardware acceleration device 416 comprises discrete values ​​between 0 and 255. It should be understood that any range of values ​​can be used to represent the load data. Additionally, in other examples, the load data is not stored as a single discrete value. For example, load data 414 may include multiple data types and values. These include, for example, the number of queued requests for the target hardware acceleration device, the most recent processing time of a previous request, an estimate based on the number and type of requests in the queue, the total size of the queued requests, the round-trip time for receiving responses to requests, and any other suitable type of data that may indicate the load on the target hardware acceleration device.

[0041] In one example, when a requesting hardware acceleration device routes a request for a specified hardware acceleration service, the requesting hardware acceleration device routes the request to a target hardware acceleration device that is indicated by load data in a data structure to have a lower load than other target hardware acceleration devices. Figure 5In the example illustrated, at step (4), the example local hardware acceleration device 410 is the requesting hardware acceleration device, which determines at step (3) where to route the request received from the example localhost server instance. Therefore, the requesting hardware acceleration device (410 in this example) reads the request, determines that the request needs to be served by a remote hardware acceleration device implementing the specified hardware acceleration service of type A, and determines which of the multiple target hardware acceleration devices 416 is indicated by the load data in the data structure to have a lower load than the other target hardware acceleration devices. That is, in the illustrated example, the requesting hardware acceleration device determines that there are four possible target hardware acceleration devices implementing the specified hardware acceleration service of type A. As shown, there is a server cluster A that includes four target hardware acceleration devices implementing the same specified hardware acceleration service of type A. Next, the requesting hardware acceleration device (410 in this example) determines that target hardware acceleration device A1 in server cluster A currently has lower load data in the data structure than the load data of the other target hardware acceleration devices in server cluster A. It should be understood that in some examples, not all hardware acceleration devices in the server cluster can implement the same hardware acceleration service. Furthermore, although only one server cluster (server cluster A) is described as implementing the specified hardware acceleration service of type A, any number of server clusters in server system 100 can potentially implement the designed hardware acceleration service. Therefore, data structure 412 may include multiple target hardware acceleration devices for each of the multiple server clusters, all of which implement the specified hardware acceleration service.

[0042] Therefore, after determining that the load data indicates that the target hardware acceleration device A1 has the lowest load in the server cluster A that implements the specified hardware acceleration service of type A, the requesting hardware acceleration device (in this example, the example local hardware acceleration device 410) routes the request for the specified hardware acceleration service of type A to the target hardware acceleration device A1 via the network infrastructure at step (4).

[0043] In one example, when a requesting hardware acceleration device routes a request for a specified hardware acceleration service to a target hardware acceleration device, the requesting hardware acceleration device updates the payload data 414 for the target hardware acceleration device in its data structure 412 based on one or more attributes of the request. Therefore, in Figure 5In the illustrated example, at step (4), when the requesting hardware acceleration device (currently 410) routes the request to the target hardware acceleration device A1, the requesting hardware acceleration device updates the load data 414 in its data structure 412. For example, the requesting hardware acceleration device (currently 410) may speculatively increase the value of the load data 414 for the target hardware acceleration device A1 because the request will potentially increase its load, or it may receive a message (such as an acknowledgment message) containing the actual load data from the hardware acceleration device A1, as described below.

[0044] In the illustrated example, the load data for target hardware acceleration device A1 is updated from the value "100" to the value "200". It should be understood that load data can be updated in different ways depending on its value. In some examples, the load data includes multiple data fields storing the original values ​​for different load attributes, such as the number of requests in the queue, the size of the requests, and the historical time of processing the requests. In one example, one or more attributes of the request are selected from the following group: request size, type of specified hardware acceleration service, historical time of implementing the specified hardware acceleration service, historical data for the target hardware acceleration device, and request packet data. The request size can include the total packet size of requests being sent, or the total size of data to be processed by the specified hardware acceleration service. The type of specified hardware acceleration service can include an estimate of how much processing resources are required to implement a particular specified hardware acceleration service. The historical time of implementing the specified hardware acceleration service can include past information about the processing time of the hardware acceleration device in implementing the specified hardware acceleration service based on previous requests. The historical data for the target hardware acceleration device can include past information about the processing time of service requests for a particular target hardware acceleration device. The requested packet data may include various packet data, such as data in the header that is readable by the requesting hardware acceleration device. It should be understood that the above examples of one or more attributes of the request are merely illustrative, and the requesting hardware acceleration device may also utilize any other attributes of the request not specifically mentioned above to speculatively update its load data by estimating the processing load or burden that the request will place on the receiving hardware acceleration device.

[0045] Subsequently, if the requesting hardware acceleration device then routes a new request for the specified hardware acceleration service of type A, the target hardware acceleration device A1 may no longer be the specific target hardware acceleration device 416 with the lowest load among other target hardware acceleration devices implementing the specified hardware acceleration service of type A. In the illustrated example, the load data for target hardware acceleration device A1 is updated from the value "100" to the value "200", and as shown, it no longer has a load value lower than other target hardware acceleration devices.

[0046] Therefore, the requesting hardware acceleration device (410 in this example) routes the new request to another target hardware acceleration device A4, and then updates the load data for that target hardware acceleration device in its own data structure 412. It should be understood that although load data “lower” than other load data is represented by discrete values ​​smaller than other discrete values ​​in these examples, any suitable method can be used to compare load data to determine which load data is “lower.” For example, a larger value for load data may indicate a lower load, and a smaller value for load data may indicate a higher load. Alternatively, determining which load data is “lower” may include comparing several data fields, such as the number of requests, the size of the requests, the history of processing the requests, etc.

[0047] Based on one or more attributes of the request, the requesting hardware acceleration device (410 in this example) can accurately estimate how much additional load or processing burden the request will place on the target hardware acceleration device. However, while the requesting hardware acceleration device can determine how much additional load its own request will add, each individual requesting hardware acceleration device may not have near real-time information about other requesting hardware acceleration devices in the hardware acceleration plane that may also be sending requests to the target hardware acceleration device.

[0048] In the illustrated example, the second requesting hardware acceleration device 420 is also routing requests for the same specified hardware acceleration service of type A at a similar time to the first requesting hardware acceleration device (410 in this example). Both the first and second requesting hardware acceleration devices maintain their own data structure 412, which indicates the lowest load among all target hardware acceleration devices implementing the specified hardware acceleration service of type A that target hardware acceleration device A1 currently has. Furthermore, neither the first nor the second requesting hardware acceleration device "knows" that the other is routing requests to the same target hardware acceleration device when sending their requests. After routing their own requests, both the first and second requesting hardware acceleration devices update the load data in their data structures based on one or more attributes of their own requests, and do not "know" that additional load from the other's requests has been placed on target hardware acceleration device A1. Therefore, the load data for target hardware acceleration device A1 maintained separately by the first and second requesting hardware acceleration devices may not accurately reflect how much load is actually placed on target hardware acceleration device A1. Therefore, in order to correct for estimation errors that may occur due to multiple requesting hardware acceleration devices sending requests to the same receiving hardware acceleration device, each receiving hardware acceleration device is configured to send load data indicating its actual current load to other hardware acceleration devices.

[0049] In one example, when the receiving hardware acceleration device receives a request from the requesting hardware acceleration device, the receiving hardware acceleration device responds with a message including load data indicating the current load of the receiving hardware acceleration device. Figure 5 As illustrated in the diagram, when the receiving hardware acceleration device (target hardware acceleration device A1 in this example) receives a request for a specified hardware acceleration service of type A from the requesting hardware acceleration device (hardware acceleration device 410 in this example) in step (4), the receiving hardware acceleration device A1 sends a message including payload data indicating the payload of the receiving hardware acceleration device A1 back to the requesting hardware acceleration device 410. It should be understood that the receiving hardware acceleration device A1 "knows" all the requests it receives and has accurate real-time knowledge about its own payload.

[0050] Therefore, when the requesting hardware acceleration device 410 receives message M1, it can update the load data for the target hardware acceleration device A1, which is the receiving hardware acceleration device A1, in its own data structure 412. After updating its load data based on message M1, the requesting hardware acceleration device 410 will have accurate, current, and non-speculative load data for the target hardware acceleration device A1, which reflects both the actual load placed on the target hardware acceleration device A1 by its own request and the load placed on the target hardware acceleration device A1 by other requesting hardware acceleration devices such as the second requesting hardware acceleration device 420.

[0051] In one example, the message sent by the receiving hardware acceleration device is an acknowledgment (ACK) or negative acknowledgment (NACK) message, typically sent in network protocols. The receiving hardware acceleration device can send multiple ACK and NACK messages back to the requesting hardware acceleration device as part of normal networking protocols to coordinate the sending and receiving of requests on the network, or any other type of network traffic between the requesting and receiving hardware acceleration devices. Therefore, after sending an ACK or NACK message, the receiving hardware acceleration device can add payload data to the ACK or NACK message indicating its current payload as appropriate. In this way, each hardware acceleration device can bear the burden of common network traffic between them to update each other about their current payload as appropriate. It should be understood that the above example of ACK or NACK messages is merely exemplary, and any network messages exchanged between hardware acceleration devices in the hardware acceleration plane can be used to send payload data updates between hardware acceleration devices.

[0052] In another example, each hardware acceleration device periodically sends load data indicating its current load to one or more other hardware acceleration devices that have previously requested it. That is, each hardware acceleration device can be configured to maintain a list in memory of all requesting hardware acceleration devices that have previously sent requests to it, and periodically send load data updates for its own current load to each hardware acceleration device in its list. Alternatively, when exchanging packets over the network, each hardware acceleration device can periodically send load data updates to each other hardware acceleration device with which it currently has an open network connection. Any suitable period can be selected for the hardware acceleration devices to send load data updates. In one example, each hardware acceleration device can be configured to send all load data in its data structure, which includes load data for multiple other hardware acceleration devices.

[0053] In the aforementioned distributed approach, over time, as each hardware acceleration device periodically sends load updates to a subset of other hardware acceleration devices in the hardware acceleration plane, each hardware acceleration device in the hardware acceleration plane may eventually receive some load data for each of the other hardware acceleration devices in the hardware acceleration plane. Therefore, through these load data updates, each hardware acceleration device can "know" all other hardware acceleration devices in server system 100 and what type of hardware acceleration service each of those hardware acceleration devices provides. Therefore, although... Figure 5 The example shown depicts only the data structure 412 maintained by the requesting hardware acceleration device 410 as containing payload data for four target hardware acceleration devices; however, it should be understood that the data structure 412 may be maintained to contain payload data for all or any suitable subset of the hardware acceleration devices in the hardware acceleration plane 106.

[0054] In one example, each hardware acceleration device is configured to update a memory page accessible by the associated host server instance with load data from a data structure. For example, the example hardware acceleration device 300 illustrated in the figure could be configured to update a memory page in local memory 316 accessible by the local processor executing the host server instance. By reading the memory page, the host server instance can "know" the load of its local hardware acceleration device as well as the load of other remote hardware acceleration devices in hardware acceleration plane 106. Therefore, each host server instance in software plane 104 can access the load data for the hardware acceleration devices in hardware acceleration plane 106 with low latency. Thus, the collective load data for hardware acceleration plane 106 can be distributed to software plane 104, which can be configured to utilize the current load balancing state of hardware acceleration plane 106 to modify higher-level service behaviors, such as generating different requests, requesting additional server instances of server system 100, etc.

[0055] Return to Figure 5 Requests for a specified hardware acceleration service can be generated by a host server instance in software plane 104 or by a hardware acceleration device in hardware acceleration plane 106. Figure 5 In the specific example illustrated, a request for a specified hardware-accelerated service originates from a requesting host server instance among multiple host server instances. The requesting hardware-accelerated device is coupled via an internal data bus to the processor executing the requesting host server instance, and the requesting hardware-accelerated device reads the request and routes it to the target hardware-accelerated device. As shown, a request for a specified hardware-accelerated service of type A originates from example localhost instance 408, which is coupled via its internal data bus to example local hardware-accelerated device 410, which houses both the example local hardware-accelerated device 410 and the processor executing it. For example, when serving client request 402, example localhost instance 408 may have determined that client request 402 requires a hardware-accelerated service implemented by hardware acceleration plane 106, such as, for example, a hardware-accelerated web search ranking service. Therefore, example localhost instance 408 selects the web search ranking service as the specified hardware-accelerated service and sends the request for the specified hardware-accelerated service to example local hardware-accelerated device 410, which then reads the request and routes it to the target hardware-accelerated device.

[0056] Go to Figure 6In another example, the request is a multi-step request for multiple specified hardware acceleration services, where the specified hardware acceleration service is the next specified hardware acceleration service among the multiple specified hardware acceleration services. In the illustrated example, the request is a multi-step request for three different hardware acceleration services A, B, and C among multiple hardware acceleration services implemented by a hardware acceleration plane. In this specific example, the three hardware acceleration services A, B, and C are completed sequentially, where each hardware acceleration device along the path of the multi-step service implements one of the three different hardware acceleration services, and then the multi-step request is routed to another remote hardware acceleration device that implements the next hardware acceleration service.

[0057] As illustrated, a requesting hardware acceleration device (which is hardware acceleration device 410 in this example) receives a multi-step request from another hardware acceleration device 602 to implement one of a plurality of specified hardware acceleration services and routes the multi-step request to a target hardware acceleration device to implement the next specified hardware acceleration service. As shown, the requesting hardware acceleration device 410 receives the multi-step request from another hardware acceleration device 602 in the hardware acceleration plane. Hardware acceleration device 602 itself may have already received the multi-step request from another hardware acceleration device in the hardware acceleration plane. In another example, hardware acceleration device 602 itself may have already generated the multi-step request. In yet another example, the multi-step request may have been generated by a host server instance in the software plane, such as host server instance 604 local to hardware acceleration device 602.

[0058] In these examples, hardware acceleration device 602 routes a multi-step request to hardware acceleration device 410, which implements a type C hardware acceleration service, one of multiple specified hardware acceleration services in the multi-step request. Therefore, after receiving a multi-step request from another hardware acceleration device 602 at step (S1), hardware acceleration device 410 implements the type C hardware acceleration service according to the request. Hardware acceleration device 410 also reads the multi-step request to determine if the next specified hardware acceleration service is a type A specified hardware acceleration service. Similar to... Figure 5For example, hardware acceleration device 410 maintains a data structure containing payload data for multiple target hardware acceleration devices implementing the next specified hardware acceleration service of type A. Based on the payload data in the data structure, hardware acceleration device 410 routes a multi-step request to target hardware acceleration device A1 at step (S2). Similar to hardware acceleration device 410, target hardware acceleration device A1 receives a multi-step request from hardware acceleration device 410, implements the specified hardware acceleration service of type A, and then routes the multi-step request to another target hardware acceleration device B1 at step (S3). Target hardware acceleration device B1 implements the last specified hardware acceleration service of type B for multiple designed hardware acceleration services based on its maintained data structure containing payload data, the payload data for a second plurality of target hardware acceleration devices implementing the last specified hardware acceleration service of type B.

[0059] Return to Figure 4 The request generated by the example localhost server instance 408 is also a multi-step request for two specified hardware acceleration services of types A and B. At step (3), the example localhost server instance 408 sends the multi-step request to its local example hardware acceleration device 410, which reads the multi-step request at step (4) and routes it to the target hardware acceleration device A1. The multi-step request is served by one of the multiple hardware acceleration devices in server cluster A that implement the same hardware acceleration service of type A, using the hardware acceleration service of type A. At step (6), the multi-step request is routed from the hardware acceleration device in server cluster A to the second target hardware acceleration device B2 in server cluster B that implements the last specified hardware acceleration service of type B for the multi-step request. After the last specified hardware acceleration service of type B is implemented, the multi-step request has been fully served by server system 100, and response 422 can be routed back to the end user's client device 404. In one example, the last hardware acceleration device used to service the request (in this example, the second target hardware acceleration device B2) can route the response to the fully serviced request to SLB406, which can then route the response 422 to the client 402 request back to the client device 404.

[0060] In another example, the response to a multi-step request can be routed back through each hardware acceleration device that served the multi-step request until the response reaches example local hardware acceleration device 410. Example local hardware acceleration device 410 can then send the response from the fully serviced request back to example localhost server instance 408, which originally generated the request. Example localhost server instance 408 can then process the response according to its application logic, such as, for example, by sending the response to SLB 406 via example local hardware acceleration device 410, and SLB 406 subsequently routes the response 422 to the end user's client device 404.

[0061] exist Figure 4 In the example illustrated, example local hardware acceleration device 410 initially sends a request for a specified hardware acceleration service of type A to target hardware acceleration device A1. As previously discussed, target hardware acceleration device A1 is selected based on data maintained by a data structure maintained by the requesting hardware acceleration device, which is example local hardware acceleration device 410. This data structure includes load data indicating that target hardware acceleration device A1 is estimated to have the lowest load among multiple target hardware acceleration devices A1, A2, A3, and A4, all implementing the same hardware acceleration service of type A. However, as... Figure 5 As discussed in the example, there may be additional hardware acceleration devices that simultaneously send requests to the requesting hardware acceleration device. Therefore, by the time the request reaches the target hardware acceleration device A1, that particular target hardware acceleration device may no longer be the least loaded hardware acceleration device among the multiple target hardware acceleration devices included in server cluster A.

[0062] In another example operation, each hardware acceleration device of two or more servers in a server cluster implements the same hardware acceleration service across multiple hardware acceleration services, and each hardware acceleration device in the server cluster maintains a separate instance of a data structure that also contains near real-time load data indicating the near real-time load of each other hardware acceleration device in the server cluster. In this way, the server system can perform load balancing within a server cluster consisting of servers providing the same hardware acceleration service via their hardware acceleration devices in a timely manner, thereby adjusting the destination of requests based on the current load data after a request reaches the hardware acceleration device of a server within the cluster.

[0063] In another example operation, when a receiving hardware acceleration device in a server cluster receives a request from a requesting hardware acceleration device, the receiving hardware acceleration device determines, based on near-real-time load data in a data structure, whether its current load is higher than a threshold load value and / or higher than that of another hardware acceleration device in the server cluster implementing the same hardware acceleration service. At least based on this determination, the receiving hardware acceleration device redirects the request to another hardware acceleration device in the server cluster, whose near-real-time load data in the data structure indicates that the other hardware acceleration device has a lower load than other hardware acceleration devices in the server cluster. In this way, a hardware acceleration device can first check if it has available capacity to serve the request by checking if its own load is below the threshold load value, and if so, it can process the request. If the load is above the threshold, the hardware acceleration device continues to route the request to a hardware acceleration device with a lower load. In another configuration, a hardware acceleration device can always route an incoming request to another hardware acceleration device with the indicated lower load without querying whether its current load is above the load threshold. Near-real-time data means that the hardware acceleration device has the latest load data received by its peer hardware acceleration device in the same cluster. It should be understood that, due to the high-speed communication within the cluster via the rack backplane and the TOR network switches, load data for devices in the same cluster can be updated extremely quickly and as close to real-time as possible.

[0064] Turn now Figure 7 This describes a method 700 for hardware-based load balancing implemented by a server system. Method 700 can be implemented using the hardware of the server system 100 described above or other suitable hardware. At 702, the method may include: providing a plurality of servers, each server including at least one hardware acceleration device and at least one processor, the processor being communicatively coupled to the hardware acceleration device via an internal data bus and executing a host server instance. The host server instances of the plurality of servers collectively provide a software plane, and the hardware acceleration devices of the plurality of servers collectively provide a hardware acceleration plane for implementing multiple hardware acceleration services.

[0065] As shown at 704, multiple servers can be provided in multiple server clusters, each server cluster including a rack-top network switch, two or more servers among the multiple servers, and a backplane communicatively coupling the rack-top network switch and the two or more servers.

[0066] At 706, the method may include: at each hardware acceleration device, maintaining in memory a data structure containing load data indicating the load of each of a plurality of target hardware acceleration devices implementing a specified hardware acceleration service among a plurality of hardware acceleration services.

[0067] At 708, the method may include: receiving a request for a specified hardware acceleration service at one of the hardware acceleration devices.

[0068] As shown at 710, a request for a specified hardware acceleration service can originate from a requesting host server instance among multiple host server instances. In this case, the requesting hardware acceleration device can be coupled to the processor of the requesting host server instance via an internal data bus.

[0069] At 712, the method may include: routing the request to a target hardware acceleration device, which is indicated by load data in a data structure to have a lower load than other target hardware acceleration devices. In cases such as where the request originates from a server instance at 710, the requesting hardware acceleration device may read the request and route it to the target hardware acceleration device to perform step 712.

[0070] like Figure 8 As shown, the request in step 708 of method 700 can be configured as a multi-step request for multiple specified hardware acceleration services, and the specified hardware acceleration service can be the next specified hardware acceleration service among the multiple specified hardware acceleration services. In this case, as shown at 728, the method can include: receiving the multi-step request from another hardware acceleration device at one of the hardware acceleration devices; as shown at 730, the method can include implementing one of the multiple specified hardware acceleration services; and as shown at 732, the method can include routing the multi-step request to a target hardware acceleration device that implements the next specified hardware acceleration service.

[0071] Back Figure 7 In the example configuration, the method may further include: in the case where the servers are organized into a cluster as shown at 704, each hardware acceleration device of two or more servers in the server cluster implements the same hardware acceleration service among multiple hardware acceleration services and maintains a corresponding instance of a data structure that also contains near real-time load data, which indicates the near real-time load of each other hardware acceleration device in the server cluster.

[0072] Method 700 may further include: at 714, receiving a request from a requesting hardware acceleration device at a receiving hardware acceleration device in a server cluster of multiple server clusters. At 716, the method may include: determining, based on near-real-time load data of a data structure at the receiving hardware acceleration device, whether the current load of the receiving hardware acceleration device is higher than a threshold load value and / or higher than that of another hardware acceleration device in the server cluster implementing the same hardware acceleration service. At 718, the method may include: at least based on the determination, redirecting the request to another hardware acceleration device in the server cluster, wherein the near-real-time load data of the data structure indicates that the other hardware acceleration device has a lower load than other hardware acceleration devices in the server cluster.

[0073] At 720, the method may include: when the requesting hardware acceleration device routes a request for a specified hardware acceleration service to the target hardware acceleration device, the requesting hardware acceleration device updates the payload data for the target hardware acceleration device in its data structure. As shown at 722, this update may be based on one or more attributes of the request. These attributes may include: the size of the request, the type of the specified hardware acceleration service, the historical time of implementing the specified hardware acceleration service, historical data for the target hardware acceleration device, and packet data of the request.

[0074] As indicated at 724, the update can be based on the current load of the hardware acceleration device, which is sent via a message. For example, when the receiving hardware acceleration device receives a request from the requesting hardware acceleration device, the receiving hardware acceleration device can respond with a message including load data indicating the current load of the receiving hardware acceleration device, and the requesting hardware acceleration device can update the load data in a data structure stored in the memory of the receiving hardware acceleration device based on the current load indicated in the message from the receiving hardware acceleration device.

[0075] As indicated at 726, updates can be based on periodic load updates sent from hardware acceleration devices to each other. For example, each hardware acceleration device can periodically send load data indicating its current load to one or more other hardware acceleration devices that have previously sent a request to that hardware acceleration device.

[0076] Based on load data stored in data structures associated with each hardware acceleration device, the aforementioned system and method can be used to achieve timely routing of requests from one hardware acceleration device to another. Because the load data is continuously updated, intelligent routing decisions can be made when a request is sent, and even after the request is received at the initially intended target device. This allows the request to ultimately be routed to a hardware acceleration device with a lower load than other candidate hardware acceleration devices. This, in turn, has the potential to serve requests faster and more efficiently, thereby improving the speed at which the server system can respond to requests.

[0077] In some embodiments, the methods and processes described herein can be attached to a computing system of one or more computing devices. In particular, these methods and processes can be implemented as computer applications or services, application programming interfaces (APIs), libraries, and / or other computer program products.

[0078] Figure 9 A non-limiting embodiment of a computing system 900 that can implement one or more of the methods and processes described above is schematically illustrated. The computing system 900 is shown in a simplified form. The computing system 900 can embody the individual servers 102, 206, 208, 210, etc., and client device 404 described above. The computing system 900 can take the form of one or more personal computers, server computers, tablet computers, home entertainment computers, network computing devices, gaming devices, mobile computing devices, mobile communication devices (e.g., smartphones), and / or other computing devices, as well as wearable computing devices such as smartwatches and head-mounted augmented reality devices.

[0079] The computing system 900 includes a logic processor 902, volatile memory 904, and non-volatile storage device 906. The computing system 900 may optionally include a display subsystem 908, an input subsystem 910, a communication subsystem 912, and / or... Figure 9 Other components not shown.

[0080] The logic processor 902 includes one or more physical devices configured to execute instructions. For example, the logic processor may be configured to execute instructions that are part of one or more applications, programs, routines, libraries, objects, components, data structures, or other logical constructs. Such instructions can be implemented to perform tasks, implement data types, change the state of one or more components, achieve technical effects, or otherwise achieve desired results.

[0081] A logic processor may include one or more physical processors (hardware) configured to execute software instructions. Additionally or alternatively, a logic processor may include one or more hardware logic circuits or firmware devices configured to execute hardware-implemented logic or firmware instructions. The processor of logic processor 902 may be single-core or multi-core, and the instructions executed thereon may be configured for sequential, parallel, and / or distributed processing. The various components of the logic processor may optionally be distributed across two or more separate devices that may be remotely located and / or configured for collaborative processing. Aspects of the logic processor may be virtualized and executed by remotely accessible networked computing devices configured in a cloud computing configuration. In this case, it should be understood that these virtualized aspects run on different physical logic processors on various different machines.

[0082] Non-volatile storage device 906 includes one or more physical devices configured to hold instructions executable by a logic processor to implement the methods and processes described herein. When such methods and processes are implemented, the state of non-volatile storage device 904 can be transformed—for example, to retain different data.

[0083] Non-volatile storage device 906 may include removable and / or built-in physical devices. Non-volatile storage device 94 may include optical memory (e.g., CD, DVD, HD-DVD, Blu-ray disc, etc.), semiconductor memory (e.g., ROM, EPROM, EEPROM, FLASH memory, etc.), and / or magnetic memory (e.g., hard disk drive, floppy disk drive, magnetic tape drive, MRAM, etc.), or other high-capacity storage technology. Non-volatile storage device 906 may include non-volatile, dynamic, static, read / write, read-only, sequential access, location-addressable, file-addressable, and / or content-addressable devices. It should be understood that non-volatile storage device 906 is configured to retain instructions even when power to non-volatile storage device 906 is cut off.

[0084] Volatile memory 904 may include a physical device including random access memory. Logic processor 902 typically utilizes volatile memory 904 to temporarily store information during the processing of software instructions. It should be understood that when power to volatile memory 904 is cut off, volatile memory 904 typically does not continue storing instructions.

[0085] Various aspects of the logic processor 902, volatile memory 904, and non-volatile storage device 906 can be integrated into one or more hardware logic components. For example, such hardware logic components may include field-programmable gate arrays (FPGAs), program-specific and application-specific integrated circuits (PASICs / ASICs), program-specific and application-specific standard products (PSSPs / ASSPs), system-on-a-chip (SoCs), and complex programmable logic devices (CPLDs).

[0086] The terms "module," "program," and "engine" can be used to describe an aspect of computing system 900, typically implemented in software by a processor, to perform specific functions using portions of volatile memory. These functions involve transformative processing specifically configured to perform the functions. Therefore, a module, program, or engine can be instantiated using portions of volatile memory 904 via a logical processor 902 executing instructions held by non-volatile storage device 906. It should be understood that different modules, programs, and / or engines can be instantiated from the same applications, services, code blocks, objects, libraries, routines, APIs, functions, etc. Similarly, the same module, program, and / or engine can be instantiated from different applications, services, code blocks, objects, routines, APIs, functions, etc. The terms "module," "program," and "engine" can encompass individual or grouped executable files, data files, libraries, drivers, scripts, database records, etc.

[0087] When included, the display subsystem 908 can be used to present a visual representation of data held by the non-volatile storage device 906. The visual representation may take the form of a graphical user interface (GUI). Since the methods and processes described herein change the data held by the non-volatile storage device and thus transform the state of the non-volatile storage device, the state of the display subsystem 908 can similarly be transformed to visually represent changes in the underlying data. The display subsystem 908 may include one or more display devices that visually utilize any type of technology. Such a display device may be combined with a logic processor 902, volatile memory 904, and / or non-volatile storage device 906 in a shared package, or such a display device may be a peripheral display device.

[0088] When included, the input subsystem 910 may include or interface with one or more user input devices, such as a keyboard, mouse, touchscreen, or game controller. In some embodiments, the input subsystem may include or interface with a selected Natural User Input (NUI) component portion. Such a component portion may be integrated or peripheral, and the transformation and / or processing of input actions may be handled on-board or off-board. Example NUI component portions may include: a microphone for speech and / or voice recognition; an infrared, color, stereo, and / or depth camera for machine vision and / or gesture recognition; a head tracker, eye tracker, accelerometer, and / or gyroscope for motion detection and / or intent recognition; an electric field sensing component portion for assessing brain activity; and / or any other suitable sensor.

[0089] When included, the communication subsystem 912 can be configured to communicatively couple the various computing devices described herein to each other and to other devices. The communication subsystem 912 may include wired and / or wireless communication devices compatible with one or more different communication protocols. As a non-limiting example, the communication subsystem can be configured to communicate via a wireless telephone network, or a wired or wireless local area network or wide area network (such as HDMI over a Wi-Fi connection). In some embodiments, the communication subsystem may allow the computing system 900 to send messages to and / or receive messages from other devices via a network such as the Internet.

[0090] The following paragraphs provide additional support for the claims of this subject matter application. One aspect provides a server system comprising a plurality of servers, each server including at least one hardware acceleration device and at least one processor, the at least one processor being communicatively coupled to the hardware acceleration device via an internal data bus and executing a host server instance, the host server instances of the plurality of servers collectively providing a software plane, and the hardware acceleration devices of the plurality of servers collectively providing a hardware acceleration plane for implementing a plurality of hardware acceleration services, wherein each hardware acceleration device maintains in memory a data structure containing load data, the load data indicating the load of each of a plurality of target hardware acceleration devices implementing a specified hardware acceleration service among the plurality of hardware acceleration services, and wherein when a requesting hardware acceleration device routes a request for a specified hardware acceleration service, the requesting hardware acceleration device routes the request to a target hardware acceleration device, the target hardware acceleration device being indicated by the load data in the data structure to have a lower load than other target hardware acceleration devices. In this respect, additionally or alternatively, a request for a specified hardware acceleration service may originate from a requesting host server instance of the plurality of host server instances, wherein the requesting hardware acceleration device may be coupled to the processor executing the requesting host server instance via an internal data bus, and the requesting hardware acceleration device may read the request and may route it to a target hardware acceleration device. Additionally or alternatively, in this regard, a request may be a multi-step request for multiple specified hardware acceleration services, and the specified hardware acceleration service may be the next specified hardware acceleration service among multiple specified hardware acceleration services. The requesting hardware acceleration device may receive the multi-step request from another hardware acceleration device, may implement one of the multiple specified hardware acceleration services, and may route the multi-step request to a target hardware acceleration device that implements the next specified hardware acceleration service. Additionally or alternatively, the server system may also include multiple server clusters, each server cluster may include a top-of-rack network switch, two or more servers among multiple servers, and a backplane communicatively coupling the top-of-rack network switch and the two or more servers. Each hardware acceleration device of the two or more servers in the server cluster may implement the same hardware acceleration service among multiple hardware acceleration services, and each hardware acceleration device may maintain a corresponding instance of a data structure, the data structure also containing near real-time load data indicating the near real-time load of each other hardware acceleration device in the server cluster.In this regard, additionally or alternatively, when a receiving hardware acceleration device in a server cluster receives a request from a requesting hardware acceleration device, the receiving hardware acceleration device can determine, based on near-real-time load data from a data structure, whether its current load is higher than a threshold load value and / or higher than that of another hardware acceleration device in the server cluster implementing the same hardware acceleration service. At least based on this determination, the receiving hardware acceleration device can redirect the request to another hardware acceleration device in the server cluster, wherein the near-real-time load data from the data structure indicates that the other hardware acceleration device has a lower load than other hardware acceleration devices in the server cluster. In this regard, additionally or alternatively, when a requesting hardware acceleration device routes a request for a specified hardware acceleration service to a target hardware acceleration device, the requesting hardware acceleration device can update the load data for the target hardware acceleration device in its data structure based on one or more attributes of the request. In this regard, additionally or alternatively, one or more attributes of the request can be selected from a group consisting of: the size of the request, the type of the specified hardware acceleration service, the historical time of implementing the specified hardware acceleration service, historical data for the target hardware acceleration device, and the request's grouping data. In this regard, additionally or alternatively, when the receiving hardware acceleration device receives a request from the requesting hardware acceleration device, the receiving hardware acceleration device may respond with a message including load data indicating the current load of the receiving hardware acceleration device. In this regard, additionally or alternatively, each hardware acceleration device may periodically send load data indicating its current load to one or more other hardware acceleration devices that have previously sent requests to it. In this regard, additionally or alternatively, each hardware acceleration device may be configured to update memory pages accessible by the associated host server instance with load data in a data structure.

[0091] On the other hand, a method implemented by a server system is provided, comprising: providing a plurality of servers, each server including at least one hardware acceleration device and at least one processor, the at least one processor being communicatively coupled to the hardware acceleration device via an internal data bus and executing a host server instance, the host server instances of the plurality of servers jointly providing a software plane, and the hardware acceleration devices of the plurality of servers jointly providing a hardware acceleration plane for implementing a plurality of hardware acceleration services; at each hardware acceleration device, maintaining in memory a data structure containing load data indicating the load of each of a plurality of target hardware acceleration devices implementing a specified hardware acceleration service among the plurality of hardware acceleration services; and at one of the hardware acceleration devices, receiving a request for the specified hardware acceleration service; and routing the request to a target hardware acceleration device, the target hardware acceleration device being indicated by the load data in the data structure to have a lower load than other target hardware acceleration devices. In this respect, additionally or alternatively, the request for the specified hardware acceleration service may originate from a requesting host server instance of the plurality of host server instances, and wherein the requesting hardware acceleration device may be coupled to the processor executing the requesting host server instance via an internal data bus, and the requesting hardware acceleration device may read the request and route it to the target hardware acceleration device. In this regard, additionally or alternatively, the request may be a multi-step request for multiple specified hardware acceleration services, and the specified hardware acceleration service may be the next specified hardware acceleration service among the multiple specified hardware acceleration services. The method may further include: receiving the multi-step request from another hardware acceleration device at one of the hardware acceleration devices, implementing one of the multiple specified hardware acceleration services, and routing the multi-step request to a target hardware acceleration device that implements the next specified hardware acceleration service. In this regard, additionally or alternatively, providing multiple servers may include: providing multiple server clusters, each server cluster may include a rack-top network switch, two or more servers among the multiple servers, and a backplane communicatively coupling the rack-top network switch and the two or more servers, wherein each hardware acceleration device of the two or more servers in the server cluster can implement the same hardware acceleration service among the multiple hardware acceleration services, and can maintain a data structure that also contains near real-time load data indicating the near real-time load of each other hardware acceleration device in the server cluster.In this regard, additionally or alternatively, the method may include: receiving a request from a requesting hardware acceleration device at a receiving hardware acceleration device in a server cluster of multiple server clusters; determining, based on near-real-time load data from a data structure at the receiving hardware acceleration device, whether the current load of the receiving hardware acceleration device is higher than a threshold load value and / or higher than that of another hardware acceleration device in the server cluster implementing the same hardware acceleration service; and, at least based on the determination, redirecting the request to another hardware acceleration device in the server cluster, wherein the near-real-time load data of the data structure indicates that the other hardware acceleration device has a lower load than other hardware acceleration devices in the server cluster. In this regard, additionally or alternatively, when the requesting hardware acceleration device routes a request for a specified hardware acceleration service to a target hardware acceleration device, the requesting hardware acceleration device may update the load data for the target hardware acceleration device in its data structure based on one or more attributes of the request. In this regard, additionally or alternatively, the one or more attributes of the request may be selected from a group consisting of: the size of the request, the type of the specified hardware acceleration service, the historical time of implementing the specified hardware acceleration service, historical data for the target hardware acceleration device, and grouping data of the request. In this regard, additionally or alternatively, when the receiving hardware acceleration device receives a request from the requesting hardware acceleration device, the receiving hardware acceleration device may respond with a message including load data indicating the current load of the receiving hardware acceleration device, and the requesting hardware acceleration device may update the load data in a data structure stored in memory at the receiving hardware acceleration device based on the current load indicated in the message from the receiving hardware acceleration device. Additionally or alternatively, each hardware acceleration device may periodically send load data indicating its current load to one or more other hardware acceleration devices that have previously sent a request to that hardware acceleration device.

[0092] On the other hand, a server system is provided, comprising multiple server clusters of multiple servers. Each server cluster includes a rack-top network switch and two or more servers among the multiple servers. Each server includes at least one hardware acceleration device and at least one processor, which is communicatively coupled to the hardware acceleration device via an internal data bus and executes a host server instance. The host server instances of the multiple servers collectively provide a software plane, and the hardware acceleration devices of the multiple servers collectively provide a hardware acceleration plane for implementing multiple hardware acceleration services. Each hardware acceleration device in one of the server clusters implements the same hardware acceleration service among the multiple hardware acceleration services, and each hardware acceleration device maintains a near real-time load in memory. The data structure includes near-real-time load data indicating the near-real-time load of each other hardware acceleration device in the same server cluster as the hardware acceleration device, and wherein when a receiving hardware acceleration device in one of the multiple server clusters receives a request from a requesting hardware acceleration device, the receiving hardware acceleration device determines, based on the near-real-time load data of the data structure, whether its current load is higher than a threshold load value and / or higher than that of another hardware acceleration device in the server cluster that implements the same hardware acceleration service, and at least based on this determination, the receiving hardware acceleration device redirects the request to another hardware acceleration device in the server cluster, wherein the near-real-time load data of the data structure indicates that the other hardware acceleration device has a lower load than the other hardware acceleration devices in the server cluster.

[0093] It should be understood that the configurations and / or methods described herein are exemplary in nature, and these specific embodiments or examples should not be considered limiting, as many variations are possible. The particular routines or methods described herein may represent one or more of any number of processing strategies. Therefore, the various actions illustrated and / or described may be performed in the illustrated and / or described order, in another order, in parallel, or omitted. Similarly, the order of the above processes may be changed.

[0094] The subject matter of this disclosure includes all novel and non-obvious combinations and sub-combinations of various processes, systems and configurations, as well as other features, functions, actions and / or properties disclosed herein, and any and all equivalents thereof.

Claims

1. A server system, comprising: Multiple servers, each server including at least one hardware acceleration device and at least one processor, the at least one processor being communicatively coupled to the hardware acceleration device via an internal data bus and executing a host server instance, the host server instances of the multiple servers collectively providing a software plane, and the hardware acceleration devices of the multiple servers collectively providing a hardware acceleration plane for implementing multiple hardware acceleration services. Each hardware acceleration device collects load data from other hardware acceleration devices on other servers, and maintains its own data structure containing the load data in the memory of the corresponding server of the hardware acceleration device. The load data indicates the load of each of the multiple target hardware acceleration devices implementing a specified hardware acceleration service among the multiple hardware acceleration services. When a requesting hardware acceleration device routes a request for the specified hardware acceleration service, the requesting hardware acceleration device routes the request to a target hardware acceleration device, which is indicated by the load data in the data structure of the corresponding server of the requesting hardware acceleration device as having a lower load than other target hardware acceleration devices.

2. The server system of claim 1, wherein the request for the specified hardware acceleration service originates from a requesting host server instance among the plurality of host server instances; and The request hardware acceleration device is coupled to the processor executing the request host server instance via the internal data bus, and the request hardware acceleration device reads the request and routes the request to the target hardware acceleration device.

3. The server system according to claim 1, wherein the request is a multi-step request for a plurality of specified hardware acceleration services, and the specified hardware acceleration service is the next specified hardware acceleration service among the plurality of specified hardware acceleration services; and The requesting hardware acceleration device receives the multi-step request from another hardware acceleration device, implements one of the plurality of specified hardware acceleration services, and routes the multi-step request to the target hardware acceleration device that implements the next specified hardware acceleration service.

4. The server system according to claim 1 further includes multiple server clusters, each server cluster including a top-of-rack network switch, two or more servers among the multiple servers, and a backplane communicatively coupling the top-of-rack network switch and the two or more servers; Each hardware acceleration device of the two or more servers in the server cluster implements the same hardware acceleration service among the plurality of hardware acceleration services, and each hardware acceleration device maintains a corresponding instance of the data structure, the data structure also containing near real-time load data, the near real-time load data indicating the near real-time load of each other hardware acceleration device in the server cluster.

5. The server system according to claim 4, wherein when a receiving hardware acceleration device in one of the plurality of server clusters receives the request from the requesting hardware acceleration device, the receiving hardware acceleration device determines, based on near real-time load data of the data structure, whether the current load of the receiving hardware acceleration device is higher than at least one of the following: a threshold load value or the current load of another hardware acceleration device in the server cluster implementing the same hardware acceleration service, and Based at least on the determination, the receiving hardware acceleration device redirects the request to another hardware acceleration device in the server cluster, and the near real-time load data of the data structure indicates that the other hardware acceleration device has a lower load than other hardware acceleration devices in the server cluster.

6. The server system of claim 1, wherein when the requesting hardware acceleration device routes the request for the specified hardware acceleration service to the target hardware acceleration device, the requesting hardware acceleration device updates the load data for the target hardware acceleration device in its data structure based on one or more attributes of the request.

7. The server system of claim 6, wherein the one or more attributes of the request are selected from the group consisting of: the size of the request, the type of the specified hardware acceleration service, the historical time of implementing the specified hardware acceleration service, historical data for the target hardware acceleration device, and the grouping data of the request.

8. The server system of claim 1, wherein when the receiving hardware acceleration device receives a request from the requesting hardware acceleration device, the receiving hardware acceleration device responds with a message including load data, the load data indicating the current load of the receiving hardware acceleration device.

9. The server system of claim 1, wherein each hardware acceleration device periodically sends load data indicating the current load of the hardware acceleration device to one or more other hardware acceleration devices that have previously sent a request to the hardware acceleration device.

10. The server system according to any one of claims 1-9, wherein each hardware acceleration device is configured to update a memory page accessible by the associated host server instance with load data from the data structure.

11. A method implemented by a server system, the method comprising: A plurality of servers are provided, each server including at least one hardware acceleration device and at least one processor, the at least one processor being communicatively coupled to the hardware acceleration device via an internal data bus and executing a host server instance, the host server instances of the plurality of servers collectively providing a software plane, and the hardware acceleration devices of the plurality of servers collectively providing a hardware acceleration plane for implementing a plurality of hardware acceleration services. At each hardware acceleration device: Collect load data from other hardware acceleration devices on other servers, and Each server of the hardware acceleration device maintains its own data structure containing the load data in its memory, the load data indicating the load of each of the multiple target hardware acceleration devices that implements a specified hardware acceleration service among the multiple hardware acceleration services. as well as At one of the hardware acceleration devices in the hardware acceleration device: Receive requests for specified hardware acceleration services; The request is routed to a target hardware acceleration device, which is indicated by the load data in the data structure of the corresponding server of at least one of the hardware acceleration devices to have a lower load than the other target hardware acceleration devices.

12. The method of claim 11, wherein the request for the specified hardware acceleration service originates from a requesting host server instance among the plurality of host server instances; and The request hardware acceleration device is coupled to the processor executing the request host server instance via the internal data bus, and the request hardware acceleration device reads the request and routes the request to the target hardware acceleration device.

13. The method of claim 11, wherein the request is a multi-step request for a plurality of specified hardware acceleration services, and the specified hardware acceleration service is the next specified hardware acceleration service among the plurality of specified hardware acceleration services, the method further comprising: At the hardware acceleration device in the hardware acceleration device: Receive the multi-step request from another hardware acceleration device; Implement one of the multiple specified hardware acceleration services; as well as The multi-step request is routed to the target hardware acceleration device that implements the next specified hardware acceleration service.

14. The method according to claim 11, The server provided includes: Provide multiple server clusters, each server cluster including a top-of-rack network switch, two or more servers among the multiple servers, and a backplane communicatively coupling the top-of-rack network switch and the two or more servers; Each hardware acceleration device of the two or more servers in the server cluster implements the same hardware acceleration service among the plurality of hardware acceleration services and maintains the data structure, which also contains near real-time load data, indicating the near real-time load of each other hardware acceleration device in the server cluster.

15. The method according to claim 14, At the receiving hardware acceleration device in one of the plurality of server clusters, the request is received from the requesting hardware acceleration device. Based on the near real-time load data of the data structure at the receiving hardware acceleration device, determine whether the current load of the receiving hardware acceleration device is higher than at least one of the following: a threshold load value or the current load of another hardware acceleration device in the server cluster that implements the same hardware acceleration service. as well as Based at least on the determination, the request is redirected to another hardware acceleration device in the server cluster, the near real-time load data of the data structure indicating that the other hardware acceleration device has a lower load than other hardware acceleration devices in the server cluster.

16. The method of claim 11, wherein when the requesting hardware acceleration device routes the request for the specified hardware acceleration service to the target hardware acceleration device, the requesting hardware acceleration device updates the load data for the target hardware acceleration device in its data structure based on one or more attributes of the request.

17. The method of claim 16, wherein the one or more attributes of the request are selected from the group consisting of: the size of the request, the type of the specified hardware acceleration service, the historical time of implementing the specified hardware acceleration service, historical data for the target hardware acceleration device, and grouping data of the request.

18. The method of claim 11, wherein when the receiving hardware acceleration device receives a request from the requesting hardware acceleration device, the receiving hardware acceleration device responds with a message including load data, the load data indicating the current load of the receiving hardware acceleration device, and the requesting hardware acceleration device updates the load data in the data structure stored in the memory at the receiving hardware acceleration device based on the current load indicated in the message from the receiving hardware acceleration device.

19. The method according to any one of claims 11-18, wherein each hardware acceleration device periodically sends load data indicating the current load of the hardware acceleration device to one or more other hardware acceleration devices that have previously sent a request to the hardware acceleration device.

20. A server system, comprising: Multiple server clusters of multiple servers, each server cluster including a rack-top network switch and two or more servers among the multiple servers, each server including at least one hardware acceleration device and at least one processor, the at least one processor being communicatively coupled to the hardware acceleration device via an internal data bus and executing a host server instance, the host server instances of the multiple servers collectively providing a software plane, and the hardware acceleration devices of the multiple servers collectively providing a hardware acceleration plane for implementing multiple hardware acceleration services. Each hardware acceleration device in one of the plurality of server clusters implements the same hardware acceleration service in the plurality of hardware acceleration services. Each hardware acceleration device maintains its own data structure in memory containing near real-time load data, which indicates the near real-time load of each other hardware acceleration device in the same server cluster as the hardware acceleration device; and When a receiving hardware acceleration device in one of the multiple server clusters receives a request from a requesting hardware acceleration device, the receiving hardware acceleration device determines, based on the near real-time load data of the data structure, whether the current load of the receiving hardware acceleration device is higher than a threshold load value and / or whether it is higher than another hardware acceleration device in the server cluster that implements the same hardware acceleration service. and Based at least on the determination, the receiving hardware acceleration device redirects the request to another hardware acceleration device in the server cluster, and the near real-time load data of the data structure indicates that the other hardware acceleration device has a lower load than other hardware acceleration devices in the server cluster.

Citation Information

Patent Citations

  • Managing Virtualized Accelerators Using Admission Control, Load Balancing and Scheduling

    US20110010721A1

  • Server systems with hardware accelerators including stacked memory

    US20160379686A1