Rule Violation Detection
The method and system address the challenge of rapid traffic increases in distributed storage systems by using moving averages and historical limits to detect and prevent performance degradation, ensuring efficient resource allocation.
Patent Information
- Application Number
- JP2023076175
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-11-25
- Filing Date
- 2023-05-02
- Publication Date
- 2024-12-05
- Estimated Expiration
- 2040-11-23
AI Technical Summary
Distributed storage systems face challenges in managing rapid traffic increases, leading to performance degradation due to non-zero reaction times in resource allocation, which existing methods struggle to detect efficiently, often relying on computationally expensive historical data analysis.
A method and system for detecting traffic ramp-up rule violations by determining RPS (requests per second) using moving averages and delta violations, with a grid-based approach to identify key ranges experiencing excessive loads, and applying zero and full history limits to accurately model capacity scaling.
Efficiently identifies potential performance degradation by reducing computational complexity and accurately detecting violations, allowing timely resource allocation to maintain system performance.
Smart Images

Figure 0007595108000001 
Figure 0007595108000002 
Figure 0007595108000003
Abstract
Description
[Technical field]
[0001] Technical Field The present disclosure relates to rule violation detection, for example, for the 500 / 50 / 5 traffic ramp-up rule. [Background technology]
[0002] background Cloud computing storage is rapidly becoming more popular. As more users and businesses switch to distributed storage systems for their data needs, performance degradation of cloud services becomes increasingly important. Large data stores (e.g., databases) are frequently horizontally partitioned (i.e., sharded) across multiple servers to improve performance. Database sharding often allows servers to handle dynamic loads by ramping up and down resources in near real-time. However, there may be cases where there is a non-zero reaction time for increasing resources, and a sufficiently fast traffic ramp-up can overload the underlying storage, degrading performance. Summary of the Invention
[0003] overview One aspect of the disclosure provides a method for detecting traffic ramp-up rule violations. The method includes receiving, in data processing hardware, data element search requests, each of which requests at least one data element from an information retrieval system. The information retrieval system comprises a plurality of data elements. The method also includes the data processing hardware determining an RPS (requests per second) of a key range of the information retrieval system based on a number of the received data element search requests. The method also includes the data processing hardware determining a moving average of the RPS of the key range of the information retrieval system over a first time period based on the number of the received data element search requests, and the data processing hardware determining a number of delta violations, each of which includes a start time point at which the RPS exceeded a delta RPS limit based on the moving average of the RPS. Each delta violation includes a start time point at which the delta RPS limit was exceeded. The delta RPS limit is based on the moving average of the RPS. For each delta violation, the method includes the data processing hardware determining a maximum conforming load of the key range over a second time period, and the data processing hardware determining whether the RPS exceeded the maximum conforming load of the key range based on the start time point of the delta violation. The method also includes the step of the data processing hardware determining that the delta violation corresponds to a full history violation if the RPS exceeds a maximum matching load for the key range. A full history violation indicates a degradation in performance of the information retrieval system.
[0004] Implementations of the present disclosure may include one or more of the following optional features: In some implementations, determining whether the RPS has exceeded the maximum compatible load for the key range based on a start time of the delta violation includes the data processing hardware determining a zero history RPS limit. The zero history RPS limit includes a function of a minimum of past zero history RPS limits and a moving average of the RPS. The method also includes the data processing hardware determining a time period beginning at the start time of the delta violation and ending when the RPS no longer exceeds the zero history RPS limit. The method optionally includes the data processing hardware determining a zero history violation based on a time period during which the RPS has exceeded the zero history RPS limit. In some examples, if the RPS has exceeded the maximum compatible load for the key range, the method includes the data processing hardware determining that the zero history violation corresponds to a full history violation. nothing.
[0005] In some embodiments, the method further includes the data processing hardware generating a request grid comprised of a plurality of cells, each cell representing a fixed length time bucket of a key bucket, each key bucket including a range of keys sized to represent a selected average volume of requests. The step of determining a moving average of the RPS includes determining a moving average for each key bucket. Optionally, each key bucket is sized to have the same average volume of requests. In some examples, the step of determining the number of delta violations includes determining narrow band delta violation candidates representing times when the RPS of the key bucket exceeds a delta RPS limit. The method also includes determining, from the narrow band delta violation candidates, broad band delta violation candidates comprised of adjacent narrow band delta violations, and for each broad band delta violation candidate, determining whether the broad band delta violation candidate is a delta violation based on the volume and intensity of data element search requests.
[0006] In some implementations, the maximum conforming load comprises a maximum load that the information retrieval system can sustain without performance degradation. In some examples, the information retrieval system comprises a dynamically scope-sharded information retrieval system. Determining the maximum conforming load comprises determining the maximum conforming load as a function of a number of data element search requests received so far during a threshold time window. Optionally, between adjacent pairs of delta violations, the RPS does not exceed a delta RPS limit.
[0007] Another aspect of the disclosure provides a system for detecting traffic ramp-up rule violations. The system includes data processing hardware and memory hardware in communication with the data processing hardware. The memory hardware stores instructions that, when executed on the data processing hardware, cause the data processing hardware to perform operations. The operations include receiving data element search requests, each of which requests at least one data element, from an information retrieval system. The information retrieval system includes a plurality of data elements. The operations also include determining a requests per second (RPS) for a key range of the information retrieval system based on the number of data element search requests received. The operations also include determining a moving average of the RPS for the key range of the information retrieval system over a first time period based on the number of data element search requests received, and determining a number of delta violations, each of which includes a start time at which the RPS exceeded a delta RPS limit. The delta RPS limit is based on the moving average of the RPS. For each delta violation, the operations include determining a maximum matched load for the key range over a second time period, and determining whether the RPS exceeded the maximum matched load for the key range based on the start time of the delta violation. The operations also include determining that the delta violation corresponds to a full history violation if the RPS exceeds a maximum matching load for the key range. A full history violation indicates a degradation in performance of the information retrieval system.
[0008] This aspect may include one or more of the following optional features: In some implementations, determining whether the RPS has exceeded the maximum conforming load of the key range based on a start time of the delta violation includes determining a zero history RPS limit. The zero history RPS limit includes a function of a minimum of past zero history RPS limits and a moving average of the RPS. The operations may also include determining a time period beginning at the start time of the delta violation and ending when the RPS no longer exceeds the zero history RPS limit. The operations optionally include determining a zero history violation based on a time period during which the RPS has exceeded the zero history RPS limit. In some examples, if the RPS has exceeded the maximum conforming load of the key range, the operations include determining that the zero history violation corresponds to a full history violation.
[0009] In some implementations, the operations further include generating a demand grid comprised of a plurality of cells, each cell representing a fixed length time bucket of a key bucket, each key The buckets include key ranges with sizes that represent a selected average volume of requests. Determining the moving average of the RPS may include determining a moving average for each key bucket. Optionally, each key bucket is sized to have the same average volume of requests. In some examples, determining the number of delta violations includes determining narrow band delta violation candidates that represent times when the RPS of the key bucket exceeds a delta RPS limit. The operations may also include determining from the narrow band delta violation candidates broad band delta violation candidates comprised of adjacent narrow band delta violations, and for each broad band delta violation candidate, determining whether the broad band delta violation candidate is a delta violation based on the volume and intensity of data element search requests.
[0010] In some implementations, the maximum conforming load comprises a maximum load that the information retrieval system can sustain without performance degradation. In some examples, the information retrieval system comprises a dynamically scope-sharded information retrieval system. Determining the maximum conforming load may include determining the maximum conforming load as a function of a number of data element search requests received so far during a threshold time window. Optionally, between adjacent pairs of delta violations, the RPS does not exceed a delta RPS limit.
[0011] The details of one or more embodiments of the disclosure are set forth in the accompanying drawings and the description below. Other aspects, features, and advantages will become apparent from the description and drawings, and from the claims. [Brief description of the drawings]
[0012] [Figure 1A] 1 is a schematic diagram of an example system that enables an information retrieval system to detect rule violations. [Figure 1B] 1 is a schematic diagram of an example system that enables an information retrieval system to detect rule violations. [Diagram 2] FIG. 2 is a schematic diagram of a horizontal partitioning of a data object. [Diagram 3] FIG. 2 is a schematic diagram of example components of a rule violation detector. [Figure 4] 1 is a schematic diagram of a grid composed of grid elements representing a key space spanning at least a portion of a criteria window of a request for an information retrieval system. [Diagram 5] 1 is a schematic diagram of a plot of RPS (requests per second), RPS load, and delta RPS limit. [Figure 6] 1 is a schematic diagram of another plot of RPS, RPS load, and delta RPS limit; [Figure 7] 1 is a schematic diagram of another plot of RPS, RPS load, and delta RPS limit; [Figure 8] 1 is a schematic diagram of a plot of RPS, RPS load, and zero hysteretic RPS limit. [Figure 9] 1 is a schematic diagram of a plot of RPS, RPS load, and full historical RPS limits. [Figure 10] FIG. 2 is a schematic diagram illustrating the relationship between a reference window, an RPS load, and a full historical RPS limit. [Figure 11] FIG. 1 is a schematic diagram of a bootstrap window for bootstrapping full historical RPS limits. [Figure 12] 4 is a flowchart of an example arrangement of operations of a method for detecting violations of traffic ramp-up rules; [Figure 13] FIG. 1 is a schematic diagram of an example computing device that can be used to implement the systems and methods described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] The same reference symbols in the various drawings indicate the same elements. Detailed Description Embodiments herein are directed to detecting traffic ramp-ups in a distributed storage system (e.g., cloud storage) that indicate the possibility of exceeding one or more traffic rules or degrading performance. A rule violation detector detects violations of traffic ramp-up rules and receives data element search requests (i.e., to store or retrieve data) for an information retrieval system operating on the distributed storage system. The rule violation detector may receive a portion of the data element search requests (i.e., sample the requests) sufficient to describe all characteristics of the data element search requests destined for the information retrieval system and determine the RPS (requests per second) of a key range of the information retrieval system. The rule violation detector determines a moving average of the RPS of the key range. Using the RPS and the moving average of the RPS, the violation detector determines the number of delta violations over a period of time. A delta violation includes a time when the moving average RPS exceeds an RPS limit. For each delta violation, the violation detector determines a maximum conforming load for the key range and determines whether the moving average of the RPS exceeds the maximum conforming load during the duration of each delta violation. If the moving average of the RPS exceeds the maximum compatible load for the key range, the violation detector determines that the delta violation corresponds to a traffic ramp-up rule violation.
[0014] To easily enable scaling by distributing the load across multiple machines, distributed storage systems frequently partition databases. A database may be partitioned vertically or horizontally. Horizontal partitioning of a database may also be referred to as sharding the database. Individual partitions are referred to as shards, and each shard may be stored on a separate server or other independent computing device. Sharding a database involves splitting the rows of a database into multiple different tables. This is in contrast to splitting columns into different tables (e.g., vertical partitioning). The columns in each partition are the same, but the rows may be different. A number of different sharding techniques may be implemented. For example, key-based sharding, range-based sharding, and directory-based sharding are all typical implementations of sharding.
[0015] Range-based sharding involves sharding data in a database based on a range of values for a shard key associated with that data. That is, each row in the database is associated with a shard key, and the value of the associated shard key determines in which shard the row of data is stored. Each shard may be assigned a proximity range of shard key values. Thus, data that is "close" in shard key values is more likely to be stored in the same shard. This may increase the efficiency of requests, operations, or queries.
[0016] Some distributed storage systems (e.g., range-sharded storage systems) may adjust key range load distribution according to fluctuations in the load they receive. This is sometimes referred to as autoscaling key range capacity. As previously mentioned, the complete key space is split into multiple shards (i.e., key range splits), which are the units of load distribution. Sustaining increased load on one shard for a threshold period of time leads to a "split" operation. In a "split" operation, the shard is split into two or more shards (e.g., one or more additional servers are added or shards are distributed across existing servers). This would effectively double (or more) the capacity of the key range. In some implementations, adjacent key range splits that have experienced low levels of load for a period of time are merged together (i.e., a "merge" operation) to return unused resources. In some examples, the duration of a split operation is much shorter than the duration of a merge operation. For example, the duration of a split operation is about 5 minutes, whereas the duration of a merge operation is about 10 minutes. This can take as long as a day, so the effective capacity of any key range can be rapidly doubled, and the capacity generated can be retained for a long period of time to handle further data explosion.
[0017] Since there is a delay (e.g., 5 minutes) in increasing capacity via a split operation, a sufficiently large and fast ramp-up of user traffic to one shard (i.e., key range split) may result in performance degradation. Such split and merge operations of a key range capacity autoscaling system may be modeled by traffic ramp-up rules. User traffic may be compared against this model to determine violations of the traffic ramp-up rules. Violations of the traffic ramp-up rules may indicate performance degradation. In some examples, such violations may impact the cloud service provider's guarantees (i.e., performance guarantees) to the client who is responsible for the violation. An example of a traffic ramp-up rule may be the 500 / 50 / 5 rule, etc. With the 500 / 50 / 5 rule, a client may start operating any key range at 500 RPS and increase traffic by 50% every 5 minutes from there. Following this rule will ensure that the system is able to add resources fast enough that performance degradation does not occur.
[0018] In some examples, the traffic ramp-up rules model traffic limits (e.g., of the RPS) below which user traffic must remain to avoid degradation of the information retrieval system's performance. Due to the splitting and merging nature of key range splits, traffic limits are inherently dependent on previous traffic data and the history of previous traffic limits. Due to the vast amount of data and the reliance on history to determine traffic limits, determining violations of traffic ramp-up rules is typically a very computationally expensive endeavor.
[0019] 1A and 1B, in some implementations, a system 100 includes one or more client devices 120, 120a-120n associated with one or more clients / customers / owners 10, 10a-10n that may communicate with a remote system 140 over a network 130. The remote system 140 may be a distributed system (e.g., a cloud environment) having scalable / elastic resources 110. The resources 110 include computing resources 112 and / or storage resources 114. An information retrieval system 150 (e.g., a distributed storage system or data store) is layered on top of the storage resources 114 to enable scalable use of the storage resources 114 by one or more of the client devices 120. The information retrieval system 150 is configured to store data objects 200, 200a-200n from the client devices 120. In some examples, the data objects include a database (i.e., rows and columns of data elements 202, 202a-202n).
[0020] The remote system 140 receives data objects 200 from the client devices 120 and stores the data objects 200 on the storage abstraction 150 by chunking or dividing the data objects 200 into constituent data elements or data chunks 202 and storing the data elements on one or more shards 152, 152a-152n. Alternatively, the remote system 140 creates an empty data object 200 and receives and stores the data elements 202 in the data object 200 from the client devices 120. As used herein, each shard 152 represents a separate computing resource 112 and storage resource 114 (e.g., a separate server) that stores a horizontal partition of the data object 200. The remote system 140 may implement any number of shards 152 and may dynamically add and remove shards 152 based on utilization.
[0021] The remote system 140 receives data element search requests 105 from clients 10 to retrieve one or more data elements 202 from an information retrieval system 150. The information retrieval system 150 identifies the location of the data element(s) 202 (i.e., which shard 152 the data element 202 is stored in) based on the shard key value 220 provided in each data element search request 105. Once the correct shard 152 is identified, the information retrieval system 150 fetches the appropriate data element 202 and returns it to the requesting client 10. The data element search request 105 may also include a request to the information retrieval system 150 to add another data element 202 or update an existing data element 202. Again, the information retrieval system 150 may use the associated shard key value 220 included in the search request 105 to determine the appropriate shard 152 for storing the uploaded data element 202.
[0022] 1B, in some implementations, a distributed system 140 may include loosely coupled memory hosts 110, 110a-110n (e.g., computers or servers) each having computing resources 112 (e.g., one or more processors or one or more central processing units (CPUs)) in communication with storage resources 114 (e.g., memory hardware, flash memory, dynamic RAM (DRAM), phase change memory (PCM), and / or disks) that may be used to cache data. A storage abstraction 150 layered on top of the storage resources 114 allows for scalable use of the storage resources 114 by one or more client devices 120, 120a-120n. The client devices 120 may communicate with the memory hosts 110 over a network 130 (e.g., via remote procedure calls (RPCs)).
[0023] In some implementations, distributed system 140 is a "single-sided" distributed system. "Single-sided" refers to the manner in which most request processing on memory host 110 may be done in hardware rather than in software running on CPU 112 of memory host 110. Other concepts and features related to single-sided distributed caching systems may be found in U.S. Patent No. 9,164,702, the entire contents of which are incorporated herein by reference.
[0024] The distributed system 140 may store constituent data elements or data chunks 202 of a data object 200 uploaded by a client device 120 on a storage resource 114 (e.g., memory hardware) of a remote memory host 110 (e.g., storage abstraction 150) and retrieve data chunks 202 from the remote memory host 110 via RPC or via a Remote Direct Memory Access (RDMA)-enabled network interface controller (NIC) 116. The network interface controller 116 (also known as a network interface card, network adapter, or LAN adapter) may be a computer hardware component that connects the computing device / resource 112 to the network 130. The memory hosts 110a-110n and the client devices 120 may each have a network interface controller 116 for network communication. An information retrieval system 150 running on a physical processor 112 of the hardware resource 110 registers a set of remote direct memory accessible regions / locations 118, 118a-118n of the storage resource (e.g., memory) 114 with the network interface controller 116. Each memory location 118 is configured to store a corresponding data element 202.
[0025] 2, an exemplary data object 200 (i.e., a table) includes a number of data elements 202 bounded by columns 210, including a first name column 210a, a last name column 210b, a job title column 210c, and a column of shard key values 220. For simplicity, the table 200 has three rows, but in practice, the table may have up to trillions of rows. As previously mentioned, the remote system 140 may partition the data object 200 using horizontal partitioning to store the partitions on separate shards 152. In this example, the data object 200 is partitioned and stored in shard 1 150a, shard 2 150b, and shard 3 150c based on the shard key value 220. In this example, shard 1 150a stores data elements 202 associated with shard key values 220 between 0 and 10. That is, all data elements associated with shard key values 220 between 0 and 10 may be stored in shard 1 150a. Shard 2 150b stores data elements 202 associated with shard key values 220 between 11 and 30. Similarly, shard 3 150c stores data elements 202 associated with shard key values 220 between 31 and 40. It should be understood that these values are merely examples and that any value may be assigned to the shard key value 220 (whether related to the rest of the data object 200 or not) and each shard 152 may correspond to any range of shard key values 220. For example, the shard key values 220 may be assigned to existing columns of data elements 202 in the data object 200 (e.g., employee number, cost of item, location field, etc.). The relationship of the shard key values 220 to the data elements (e.g., shard key cardinality, shard key frequency, etc.) may affect the performance of the information retrieval system 150.
[0026] 2, the data object 200 is divided into three partial data objects 201, 201a-201c, each having a plurality of data elements 202. Here, a row having a shard key value 220 of "5" is stored in shard 1 150a, and a row having a shard key value 220 of "13" is stored in shard 2 150b. Similarly, a row having a shard key value 220 of "28" is stored in shard 3 150c. In this manner, the data object 200 is divided among the three shards 150a, 150b, 150c (each of which may be a separate computing resource), thereby improving the information retrieval system 150's ability to access the data object 200.
[0027] Returning to FIG. 1A, the remote system 140 executes a rule violation detector 300. As will be described in more detail below, the rule violation detector 300 monitors client data element retrieval requests 105. Because the number of requests 105 may be abnormally high, in some examples the rule violation detector 300 randomly samples a sufficient portion of the requests 105 to represent the entire set of requests 105. Using the sampled requests 105, the rule violation detector 300 determines whether the requests 105 violate traffic ramp-up rules 302. The traffic ramp-up rules 302 outline the maximum rate at which user traffic (i.e., requests 105) may increase, for example, over any key range, to avoid performance degradation.
[0028] 3, in some implementations, the rule violation detector 300 includes a delta detector 310, a zero-history detector 320, and a full-history detector 330. In some examples, the sampled requests 105 do not characterize all trends in the traffic, but instead, only characterize the most significant or significant load fluctuations in the traffic. Various sampling techniques may be implemented to help control and / or minimize sampling error. The rule violation detector 300 receives the sampled requests 105 at the delta detector 310. In some examples, the delta detector 310 may include a full-history detector 330. The filter detector 310 receives sampled requests 105 (also generally referred to herein as "traffic") for a period of time, at least the length of a reference window 404 (FIG. 4). In some examples, the reference window 404 is equal to the period of time that the information retrieval system 150 maintains capacity after a split operation, divided by the period of time that the information retrieval system 150 needs to perform the split operation. The period of time that the system 150 maintains capacity is referred to herein as the RPS history, and the period of time that the system 150 needs to increase capacity is referred to herein as the RPS delay 726 (FIG. 7). For example, if the information retrieval system 150 requires 5 minutes to perform a split operation (i.e., to increase capacity in response to increased traffic) and maintains the increased capacity for 25 hours before performing a merge operation, then the period of the reference window 404 is 24 hours and 55 minutes. As used herein, the terms "requests per second (RPS)" and "queries per second (QPS)" may be used interchangeably.
[0029] Since the traffic ramp-up rule 302 relies on past history for the same period as the RPS history, the reference window 404 is sized to include all the necessary history up to the current time. In other words, since the traffic ramp-up rule 302 relies on history, all of the traffic and traffic limits for a previous period equal to the RPS history (25 hours in this example) are used to determine a violation of the traffic ramp-up rule 302 at time ts. In some examples, recent periods may be irrelevant because the system has not yet had time to react to the increase in traffic (e.g., RPS delay 726). Thus, the reference window 404 provides a sliding time window to determine a violation at a certain point in time. It should be understood that the specific values used herein are examples and may be replaced with any values unless otherwise stated. The sampled requests 105 received by the delta detector 310 may represent all traffic during the reference window 404.
[0030] 4, in some implementations, sampled traffic is arranged in a grid 400 made up of grid elements 402, 402a-402n. The x-axis of the grid may represent time in seconds, with each grid element 402 representing a fixed length "time bucket" 420, 420a-420n. Each time bucket 420 represents all sampled traffic that occurred during a set period of time. For example, each time bucket 420 (i.e., the x-axis of each grid element 402) may represent a period of 10 seconds. The length of the time bucket 420 is tunable (i.e., adjustable). If the reference window 404 is 24 hours and 55 minutes (i.e., the RPS history minus the RPS delay 726), then the x-axis of the grid 400 will be 8970 elements long (one grid element 402 for every 10 seconds of the 24 hours and 55 minutes of the reference window 404). In some examples, the delta detector 310 sequentially grids out portions of the reference window 404 to minimize the size of the grid 400. That is, the length of the grid 400 may represent only a portion of the reference window 404. In some examples, the length of the grid may be a percentage of the reference window 404. For example, the delta detector 310 may generate a grid 400 for the first two hours of the reference window 404 and analyze or process the data. Once complete, the delta detector 310 generates a grid 400 for the next two hours of the reference window 404, and so on until the entire reference window 404 has been processed. In some implementations, the generated grid 400 may not be perfectly aligned or coincident with the boundaries of the key buckets. By tuning the grid generation parameters and utilizing approximation techniques, the required metrics for the entire grid 400 may be derived with an acceptable level of error.
[0031] The Y-axis of the grid 400 may represent at least a portion of a key space 410 of the information retrieval system 150. The key space 410 represents all of the possible shard key values 220. , the Y-axis, in some examples, represents the entire key space 410 (i.e., from the minimum shard key value 220 to the maximum shard key value 220), and in other examples, represents only a relevant portion of the key space 410. Each grid element 402 may represent a key bucket 430, 430a-430n (i.e., the "height" of the grid element 402 represents a range of keys). A key bucket 430 is defined as a narrow range or band of keys, having a start key and an end key. For example, if the key space 410 is composed of all integers between 0 and 999, then one key bucket 430 may represent shard key values between 0 and 9. In other words, each grid element 402 represents a portion of the overall key space 410 (i.e., key buckets 430) for a period of time (i.e., time buckets 420). In some examples, each key bucket 430 is the same size (i.e., represents the same amount of key space 410). In other examples, each key bucket 430 is sized to represent approximately the same amount of traffic. For example, each key bucket 430 may represent a key space that receives roughly 50 RPS on average over the length of the grid 400 (which may be a portion, such as 2 hours, of the reference window 404b). It is not important that each key bucket 430 represents the exact same amount of traffic; an approximation will suffice. The number of requests per second may also be referred to as queries per second (QPS). Thus, each grid element 402 of the grid 400 may represent the number of requests 105 for a given key range (i.e., key bucket 430) over a given period (i.e., time bucket 420). This number of requests 105 may be referred to as the RPS 510 of that key bucket 430 in that time bucket 420. In some examples, the RPS 510 is equal to the period obtained by multiplying the average RPS by the length of the time bucket 420. For example, if the average RPS is 50, then each time bucket represents 10 seconds and each grid element 402 represents 500 requests.
[0032] Using the grid 400, the delta detector 310 may determine a moving average for each key bucket 430. The moving average is referred to herein as the RPS load 520 (FIG. 5). A moving average (i.e., the RPS load 520) over a period of time, referred to as the RPS load duration 522, is determined (FIG. 5). In some examples, the RPS load duration 522 is 5 minutes. Here, for each grid element 402, a moving average of the past 5 minutes is determined as the RPS load 520 for each key bucket 430. In some implementations, the delta detector 310 determines that a delta violation 312 has occurred whenever the RPS 510 (FIG. 5) at a certain point in time exceeds the RPS load 520 at the same point in time, which is equal to the RPS delay 726 prior to the certain point in time multiplied by a delta weight 524 (e.g., 1.5) (FIG. 5). The RPS load 520 multiplied by the delta weight 524 at a point in time (i.e., ts) after the RPS delay 726 (i.e., ts-RPS delay) may be referred to as the delta RPS limit 530 at time ts (FIG. 5). That is, the RPS limit at timestamp ts may be the delta weight 524 multiplied by the RPS load 520 at (ts-RPS delay). The delta weight 524 may model an increase in capacity after a split operation (i.e., the addition of one or more shards). In some examples, the RPS 510 may be a second moving average over a time period of a different length than the RPS load 520. That is, in some examples, the delta violation 312 may be determined based on two moving averages of different lengths (e.g., 5 minutes and 1 minute).
[0033] 5, a plot 500 with the X-axis being time (in seconds) and the Y-axis being RPS shows the relationship between RPS 510, RPS load 520, and delta RPS limit 530 when user traffic ramps up at the maximum amount without violating the delta RPS limit 530. From time 0 to approximately 750 seconds, RPS 510 remains constant at "500". Because RPS 510 remains constant, RPS load 520 (i.e., the moving average of RPS 510) also remains constant at "500". In this example, delta weight 524 is equal to approximately "1.5", so the delta RPS limit 530 is the answer to multiplying "500" by "1.5" (i.e., At time=750 seconds, RPS 510 increases to delta RPS limit 530, which is “750”. After a period of time (i.e., RPS delay 726), delta RPS limit 530 increases and RPS 510 (i.e., user traffic) and RPS load 520 increase to match delta RPS limit 530. Due to the RPS delay, the delta RPS limit 530 increases following the increase in RPS 510. That is, this delay models the behavior of information retrieval system 150, as system 150 has a delay before it can add more resources (e.g., add shard 152). FIG. 6 shows plot 600 of the same data as plot 500, but with a significantly increased time scale on the x-axis. This time scale reveals that delta RPS limit 530 increases at an approximately exponential rate. In the example shown in FIGS. 5 and 6, the RPS 510 cannot exceed the delta RPS limit 530, so the delta detector 310 would not acknowledge the existence of a delta violation 312.
[0034] Referring now to FIG. 7, another plot 700 provides an example of a different traffic pattern than those in FIGS. 5 and 6. Again, the X-axis is time (in seconds) and the Y-axis is requests per second. At time 0, the RPS 510 and delta RPS limit 530 are stable at "500" and "750", respectively. In this case, at time ≈ 500 seconds, the user traffic (represented by RPS 510) spikes to "6000", exceeding the delta RPS limit 530 of "750". The user traffic then drops back to 500 RPS at time ≈ 3000 seconds. A short time after the initial traffic spike (i.e., RPS delay 726), the delta RPS limit 530 rises to "9000" (i.e., 6000 multiplied by 1.5 of the delta weight 524). In this example, the delta detector 310 detects that the delta violation 312 begins with a traffic spike at time ≈ 500 seconds and continues until the delta RPS limit 530 is no longer exceeded by the RPS 510 (at t ≈ 1000 seconds). The delta RPS limit 530 is raised (due to an increase in RPS load 520) so that the remainder of the traffic spike (from t ≈ 1000 seconds to t ≈ 3000 seconds) is no longer a delta violation 312. After the traffic spike, the RPS load 520 returns to 500 RPS and the delta RPS limit 530 returns to 750 RPS.
[0035] Returning to Figure 3, while delta violations 312 do not necessarily cause violations of traffic ramp-up rules (discussed in more detail below), the delta detector 310 efficiently analyzes vast amounts of data (i.e., user traffic) to quickly identify periods of traffic toward specific key ranges that may indicate traffic ramp-up rule violations (i.e., full history violations 332). In other words, the delta detector 310 detects all areas of sudden load increases in the traffic. The delta detector 310 may detect delta violations 312 across almost any range of the key space 410.
[0036] The delta detector 310 may also determine the widest key range delta violation 312 (i.e., wideband delta violation) by concatenating narrow key range violations (i.e., key bucket 430 or narrowband delta violations). That is, if a severe load increase corresponds to a wide key range, the narrow key range, when concatenated with other delta violations 312 that are close to each other (in key space), will build a wider key range and will be subjected to a similar trend of traffic. Thus, the delta detector 310 may determine delta violations 312 that are candidates for being violations of the traffic ramp-up rules 302. That is, the delta detector 310 may determine narrowband delta violation candidates 312 and determine wideband delta violation candidates from these narrowband delta violation candidates. The delta detector 310 may apply further traffic rules to determine whether the concatenated delta violations 312 (i.e., wide key range delta violations) are subjected to a significant amount of traffic load increase. For example, the delta detector 310 may consider the intensity of the load increase in addition to the load peaks, and may determine the widest key range delta violations 312 that are candidates for being violations of the traffic ramp-up rules 302. Apply further filtering.
[0037] Thus, the delta detector 310 detects delta violations 312 across the entire key space 410 and constructs wide-band delta violations from narrow-band delta violations. The delta detector 310 does not need to restrict the derivation to over any key range, which significantly reduces the computational complexity while also significantly reducing the search space of traffic ramp-up rule violations.
[0038] 3, the delta detector 310 sends all of the detected delta violations 312 and associated data (i.e., timestamps, key ranges, etc.) to the zero history detector 320. In some implementations, the delta violations 312 only identify areas of the grid 400 where increased traffic levels are noticeable, and therefore do not fully capture changes in the model of the auto-scaling system for key range capacity. That is, violations of the traffic ramp-up rules 302 begin with a delta violation 312, but not all delta violations 312 correspond to full history violations 332.
[0039] Although the delta detector 310 uses the delta RPS limit 530 for simplicity (i.e., to effectively reduce the search space), in some examples, the delta RPS limit 530 may not represent the actual rate at which the RPS limit of the model of the key range capacity autoscaling system increases. Instead, a zero history RPS limit 830 (FIG. 8) may be used to more accurately model the traffic rule 302. For example, instead of multiplying the RPS load 520 by the delta weight 524 (i.e., the delta RPS limit 530) at a certain point in time (i.e., the RPS delay period prior to the timestamp of interest), the zero history RPS limit 830 may instead be the zero history RPS limit 830 at the same point in time (i.e., the past zero history RPS limit 830) multiplied by a function of the minimum of the RPS load 520 and the RPS increase rate 824 (FIG. 8). That is, the increase in the zero history RPS limit 830 may be capped by the past limit, so it may take longer to react to large traffic spikes.
[0040] 8, a plot 800 illustrates the relationship between RPS 510, RPS load 520, and zero hysteretic RPS limit 830. Plot 800 also has time (in seconds) on the x-axis and RPS on the y-axis. Here, RPS increase rate 824 is equal to "1.5". In this example, RPS increase rate 824 is the same as delta weight 524 in previous examples, but may be different. At time 0, RPS 510 and RPS load 520 are stable at 500 RPS. RPS load 520 (i.e., 500) multiplied by RPS increase rate 824 (i.e., 1.5) equals 750 RPS, so zero hysteretic RPS limit 830 is 750 RPS. At approximately 500 seconds, RPS 510 increases momentarily to 6000 RPS. After a period of time (e.g., 5 minutes) associated with RPS load duration 522 has elapsed, RPS load 520 also reaches 6000 RPS. However, in this example, zero historical RPS limit 830 is raised at the interval of RPS delay 726. Due to the extreme increase in RPS 510, the minimum between RPS 510 and the previous zero historical RPS limit 830 is the previous zero historical RPS limit 830 until more than 2000 seconds have elapsed.
[0041] In this example, the delta detector 310 detects a delta violation 312 for five minutes (i.e., RPS load duration 522) beginning at 500 seconds (i.e., when traffic suddenly increases). In contrast, the zero history violation 322 begins at the same time as the delta violation 312 (i.e., about 500 seconds), but its duration is equal to the time until the RPS 510 no longer exceeds the zero history RPS limit 830 (i.e., about 2300 seconds). Thus, in this example, the zero history violation 322 is of longer duration than the corresponding delta violation 312. In some examples, one zero history violation 322 is equivalent to multiple delta violations 312, so the zero history violation The total number of 322 may be less than or equal to the total number of delta violations 312. For example, if there is a gradual increase in traffic (i.e., RPS 510), the beginning of each gradation may be flagged as being a delta violation 312, but the overall traffic spike may be detected as a single zero history violation 332.
[0042] Because every zero history violation 322 includes a delta violation 312 at the beginning, early detection of a delta violation 312 (e.g., by delta detector 310) can greatly simplify detection of the corresponding zero history violation 322. This process also allows multiple delta violations to be merged into a single zero history violation.
[0043] Returning again to FIG. 3, the zero history detector 320 sends the detected zero history violations 322 along with associated information (e.g., timestamp, key range, etc.) to the full history detector 330. In some implementations, increasing the capacity of a key range (e.g., by adding shards 152) in response to a traffic spike may be relatively short-lived (e.g., 5 minutes), but the information retrieval system 150 may retain the increased capacity for a significant period of time (e.g., 1 day) even if the traffic immediately subsides to a level prior to the spike. This behavior may be modeled by the full history RPS limit 930 (FIG. 9). With the full history RPS limit 930, not every zero history violation 322 corresponds to a full history violation 332 because the zero history violations 322 do not consider the history of the entire reference window 404. The full history RPS limit 930 may be referred to as the maximum conforming load for a key range. The maximum conforming load may vary depending on the implementation of the auto-scaling resource (i.e., shard splitting and merging). That is, key range capacity (i.e., maximum matching load per key range) may be determined by load fluctuations that allow autoscaling to increase the load level due to the amount of data the key range holds, or to increase the number of partitions that each key range corresponds to.
[0044] In some examples, the zero history violation 322 includes multiple full history violations 332. For example, one zero history violation 322 (from one or more delta violations 312) with an interval [zh_start, zh_end] has a traffic pattern for the selected key range. The selected key range is normally increasing but wavy with two extreme maxima in the interval. Between these maxima, the traffic decreases and trends toward, but not equal to, the zero history limit 830, which results in one violation period for the zero history violation 322. Because each timestamp in the zero history violation interval (e.g., in the interval of the time bucket 420 period) has a different criteria window 404 that moves and slides with the timestamp, each timestamp may be compared to the maximum conforming load in the current criteria window 404 when determining the full history violation 332. Depending on the levels of historical load within these criteria windows 404, the regions around these two maxima may be derived as two separate full history violation periods, with the local minimum between these maxima conforming to the maximum compatible load.
[0045] The full history detector 330 detects a full history violation 332 that corresponds to a violation of the traffic ramp-up rule 302. A full history violation 332 may correspond to a zero history violation 322 where there is no previous level of conforming load within the corresponding criteria window 404. More specifically, when examining the zero history violation period of [zh_start, zh_end], at any timestamp ts that belongs to this period, the full history limit may be re-derived to be equal to the RPS increase rate 824 multiplied by the maximum conforming load of the corresponding criteria window 404. This new limit may be used to determine whether this point in time is a full history violation 332. In some examples, only a portion of this interval (e.g., the most extreme part) may be processed as a heuristic. In some examples, the full history detector 330 processes only the region corresponding to the zero history violation 322 to detect a full history violation 332. Because all of the history dependencies of Zero History Violation 322 are reset as soon as the load returns below the Zero History RPS Limit 830, and because there is more capacity available in response to the increased traffic, Zero History Violation 322 may not need to take into account some of the matching load.
[0046] In some implementations, the full history detector 330 also receives the grid 400. The high resolution grid 400 (e.g., generated by the delta detector 310) enables the full history detector 330 to derive boundaries for previous load levels for all key ranges. Each zero history violation 322 corresponds to a sudden increase in traffic level. If there is no comparable non-violating (i.e., conforming) load in the criteria window 404, the full history detector 330 determines that the zero history violation 322 is a full history violation 332.
[0047] 9, a plot 900 illustrates the relationship between RPS 510, RPS load 520, and full history RPS limit 930. As in the previous examples, the X-axis of plot 900 is time in seconds, and the Y-axis is RPS. Here, four traffic spikes are shown in which traffic jumps from about 500 RPS to about 4000 RPS. Now, assume that the user traffic (i.e., RPS 510) was stable for a long time (e.g., longer than the duration of the reference window 404) prior to time=0. Since the increased capacity (represented by the full history RPS limit 930) is maintained, all four spikes may be detected as delta violations 312 and zero history violations 322, but the full history detector 330 may determine that only the first spike is a full history violation 332.
[0048] 10, the main challenge in detecting violations of the traffic ramp-up rule 302 (i.e., full history violations 332) is the infinite history dependency of the traffic ramp-up rule 302. That is, whether a violation occurs at a particular time depends on the traffic behavior prior to that particular time. Obviously, this poses a problem in determining the initial full history RPS limit 930 at the beginning of the reference window 404. To overcome this history dependency, the rule violation detector 300 may implement a bootstrap technique. That is, the bootstrap technique may be utilized to initialize the full history RPS limit 930 before the rule violation detector 300 has sampled enough data to fill the RPS history (e.g., when the rule violation detector 300 has sampled data for less than 25 hours).
[0049] Due to the nature of the full historical RPS limit 930, if there is no violation for a given criteria window 404, then only the value of the RPS load 520 (and not the history of the full historical RPS limit 930) is required to determine the full historical RPS limit 930. In other words, a non-violated criteria window 404 can act as a "history reset" event, making history prior to the criteria window irrelevant.
[0050] 11 , in some implementations, the rule violation detector 300 selects a bootstrap window 1100 large enough to ensure that there is a high probability that there will be no full history violations 332, at least in the reference window 404 that includes the bootstrap window 1100. The rule violation detector 300 may start from the beginning of the bootstrap window 1100 and determine the full history RPS limit 930 (initially using only the RPS load 520). Since there is a high probability that there was a reset event within the bootstrap window 1100, the rule violation detector 300 may rely on the full history RPS limit 930 at the end of the bootstrap window 1100. Thus, before the rule violation detector 300 detects a full history violation 332 within the reference window 404, the rule violation detector 300 may determine that there will be no full history violations 332 within the reference window 404, at the beginning of the bootstrap window 1100. The full historical RPS limit 930 may be bootstrapped by selecting
[0051] 12 is a flow chart of an example arrangement of operations of a method 1200 for detecting traffic ramp-up rule violations in an information retrieval system. The method 1200 starts with an operation 1202, which includes receiving data element search requests 105 at the data processing hardware 112. The data element search requests 105 each request at least one data element 202 from the information retrieval system 150. The information retrieval system 150 comprises a plurality of data elements 202. The method 1200 includes, at an operation 1204, the data processing hardware 112 determining a request per second (RPS) 510 of the key range 430 of the information retrieval system 150 based on the number of data element search requests 105 received. At act 1206, the method 1200 includes the data processing hardware 112 determining a moving average 520 of the RPS of the key range 430 of the information retrieval system 150 over a first time period (e.g., the RPS load duration of FIGS. 5-7) 522 based on the number of data element search requests 105 received. At act 1208, the method 1200 includes the data processing hardware 112 determining a number of delta violations 312. Each delta violation 312 includes a start time at which the RPS 510 exceeded the delta RPS limit 530. The delta RPS limit 530 is based on the moving average 520 of the RPS.
[0052] For each delta violation 312, the method 1200 includes, at operation 1210, the data processing hardware 112 determining a maximum matched load 930 for the key range 430 over the second time period 404, and, at operation 1212, the data processing hardware 112 determining whether the RPS 510 exceeded the maximum matched load 930 for the key range 430 based on the start time of the delta violation 312. If the RPS 510 exceeded the maximum matched load 930 for the key range 430, the method 1200 includes, at operation 1214, the data processing hardware 112 determining that the delta violation 312 corresponds to a full history violation 332. The full history violation 332 indicates a degradation in performance of the information retrieval system 150.
[0053] 13 is a schematic diagram of an exemplary computing device 1300 that may be used to implement the systems and methods described herein. The computing device 1300 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the embodiments of the invention described and / or claimed herein.
[0054] The computing device 1300 includes a processor 1310, a memory 1320, a storage device 1330, a high-speed interface / controller 1340 connected to the memory 1320 and to a high-speed expansion port 1350, and a low-speed interface / controller 1360 connected to a low-speed bus 1370 and to the storage device 1330. Each of the components 1310, 1320, 1330, 1340, 1350, and 1360 are connected to one another using various buses and may be implemented on a common motherboard or otherwise implemented as appropriate. The processor 1310 is capable of processing instructions for execution within the computing device 1300, including instructions stored in the memory 1320 or instructions stored on the storage device 1330 for displaying graphical information for a Graphical User Interface (GUI) on an external input / output device, such as a display 580 coupled to the high-speed interface 1340. In other implementations, multiple processors and / or multiple buses may be utilized along with multiple memories and types of memories as appropriate. Also, multiple computing devices 1300 may be connected, each providing a portion of the required operations (eg, as a server bank, a group of blade servers, or a multi-processor system, etc.).
[0055] The memory 1320 stores information non-temporarily within the computing device 1300. The memory 1320 may be a computer-readable medium, a volatile storage device(s), or a non-volatile storage device(s). The non-transient memory 1320 may be a physical device used to temporarily or permanently store programs (e.g., a sequence of instructions) or data (e.g., program state information) for use by the computing device 1300. Examples of non-volatile memory include flash memory and Read-Only Memory (ROM) / Programmable ROM (PROM). Examples of volatile memory include, but are not limited to, RAM (Random Access Memory), DRAM (Dynamic Random Access Memory), SRAM (Static Random Access Memory), etc. Examples of such memory include, but are not limited to, PCM (Phase Change Memory), and disk or tape.
[0056] The storage device 1330 can provide mass storage for the computing device 1300. In some implementations, the storage device 1330 is a computer-readable medium. In various different implementations, the storage device 1330 can be a floppy disk drive, a hard disk drive, an optical disk drive, or a tape drive, a flash memory or other similar solid-state memory device, or an array of devices, including devices included in a storage area network or other configuration. In further implementations, a computer program product is tangibly embodied on an information carrier, and the computer program product includes instructions that, when executed, perform one or more methods, such as the methods described above. The information carrier is a computer or machine-readable medium, such as the memory 1320, the storage device 1330, or a memory on the processor 1310.
[0057] The high-speed controller 1340 manages operations requiring more bandwidth for the computing device 1300, and the low-speed controller 1360 manages operations requiring more of a lower bandwidth. This allocation of roles is merely exemplary. In some implementations, the high-speed controller 1340 is coupled to the memory 1320 (e.g., through a graphics processor or accelerator), the display 1380, and to a high-speed expansion port 1390 that may accept various expansion cards (not shown). In some implementations, the low-speed controller 1360 is coupled to the storage device 1330 and the low-speed expansion port 1390. The low-speed expansion port 1390, which may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet), may be coupled to one or more input / output devices, such as a keyboard, pointing device, scanner, or a network device, such as a switch or router, for example, through a network adapter.
[0058] The computing device 1300 may be implemented in a number of different forms as shown in the figure, for example as a standard server 1300a, or may be implemented multiple times in a collection of such servers 1300a, as a laptop computer 1300b, or as part of a rack server system 1300c.
[0059] Various embodiments of the systems and techniques described herein may be implemented using digital electronic and / or optical circuits, integrated circuits, specially designed ASICs (application specific integrated circuits), or other integrated circuits. The present invention may be implemented in a variety of computer-implemented systems, including a computer program product, a processor, a memory, a processor circuit, a processor, a processor unit, a processor ...
[0060] A software application (i.e., a software resource) may refer to computer software that causes a computing device to perform tasks. In some examples, a software application may be referred to as an "application," "app," or "program." Applications include, but are not limited to, system diagnostic applications, system management applications, system maintenance applications, word processing applications, spreadsheet applications, messaging applications, media streaming applications, social networking applications, and gaming applications.
[0061] These computer programs (also known as programs, software, software applications, or codes) contain machine instructions for a programmable processor and can be implemented in high-level procedural and / or object-oriented programming languages and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, non-transitory computer-readable medium, apparatus, and / or device (e.g., magnetic disks, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that accept machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0062] The processes and logic flows described herein may be executed by one or more programmable processors (also referred to as data processing hardware) that execute one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be executed by dedicated logic circuitry, for example, a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC). Processors suitable for executing computer programs include, by way of example, both general purpose and dedicated microprocessors, and any one or more processors of any kind of digital calculator. In general, a processor receives instructions and data from a Read Only Memory (ROM) or a Random Access Memory (RAM), or both. Essential computer components are a processor for executing instructions and one or more memory elements for storing instructions and data. In general, a computer comprises one or more mass storage devices, for example, magnetic disks, magneto-optical disks, or optical disks, for storing data, or is operably connected to receive, transmit, or both data from such one or more mass storage devices. However, a computer need not have such equipment. Suitable readable media for storing computer program instructions and data include, by way of example only, all forms of non-volatile memory, including semiconductor memory devices such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
[0063] To enable user interaction, one or more aspects of the present disclosure may be implemented on a computer with a display device, e.g., a cathode ray tube (CRT), liquid crystal display (LCD) monitor, or touch screen, for displaying information to a user, and optionally a keyboard and pointing device, e.g., a mouse or trackball, for allowing the user to provide input to the computer. Other types of devices may also be used to interact with the user, e.g., feedback provided to the user may be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user may be accepted in any form, e.g., acoustic input, speech input, tactile input, etc. In addition, the computer may interact with the user by sending and receiving documents to and from a device used by the user, e.g., sending a web page to a web browser on the user's client device in response to a request received from the web browser.
[0064] Certain implementations are described. However, it should be understood that various modifications may be made without departing from the spirit and scope of the disclosure. Accordingly, other implementations are within the scope of the following claims.
Claims
1. A method for causing data processing hardware to perform an operation, the operation comprising: receiving a plurality of data element search requests, each data element search request of the plurality of data element search requests requesting at least one data element from an information retrieval system, the information retrieval system comprising a plurality of data elements, the operations further comprising: generating a requirements grid for the information retrieval system comprising a plurality of cells, each cell of the plurality of cells representing a time bucket of a key bucket, each key bucket including a range of keys for the information retrieval system, the operations further comprising: For each key bucket of the request grid: determining a requests per second (RPS) for the range of keys in the key bucket based on the plurality of received data element retrieval requests; determining an RPS load comprising a running average of a number of data element lookup requests corresponding to the range of keys in the key bucket over a period of time; determining a delta RPS limit based on the RPS load; For one key bucket, determining that the RPS of the one key bucket has exceeded the delta RPS limit for the one key bucket; and determining a delta violation, indicative of possible degraded performance of the information retrieval system, based on determining that the RPS of the one key bucket has exceeded the delta RPS limit for the one key bucket.
2. The method of claim 1 , wherein the delta violation includes a start time corresponding to a time when the RPS exceeded the delta RPS limit.
3. The operation, for the delta violation, comprises: determining a maximum conforming load for the one key bucket over a second time period; determining that the RPS has exceeded the maximum conforming load for the one key bucket based on the start time of the delta violation; 3. The method of claim 2, further comprising: in response to determining that the RPS has exceeded the maximum matching load for the one key bucket, determining that the delta violation corresponds to a full history violation, the full history violation indicating a degradation in performance of the information retrieval system.
4. Determining whether the RPS has exceeded the maximum conforming load for the one key bucket based on the starting time of the delta violation includes: determining a zero history RPS limit comprising a function of a minimum of past zero history RPS limits and the RPS load; determining a third time period beginning at a start of the delta violation and ending when the RPS no longer exceeds the zero historical RPS limit; determining a zero history violation based on a period of time that the RPS has exceeded the zero history RPS limit; 4. The method of claim 3, comprising determining that the zero history violation corresponds to a full history violation in response to determining that the RPS has exceeded the maximum conforming load for the one key bucket.
5. The method of claim 3, wherein receiving the plurality of data element search requests comprises receiving the data element search requests for at least a length of a criteria window.
6. The operation includes: selecting a time window prior to the second period of time; and determining the maximum conforming load of the one key bucket during the time window.
7. The method of any preceding claim, wherein each key bucket is sized to represent a selected average volume of data element search requests.
8. The method of any one of claims 1 to 7, wherein the information retrieval system comprises a dynamically scope sharded information retrieval system.
9. 9. The method of claim 1, wherein determining a delta RPS limit for each key bucket of the demand grid comprises determining the delta RPS limit based on the RPS load and a delta weight that indicates an increase in model capacity after a split operation.
10. The method of claim 9 , wherein the splitting operation includes increasing memory available to the key bucket.
11. 1. A system comprising: Data processing hardware; and memory hardware in communication with the data processing hardware, the memory hardware storing instructions that, when executed on the data processing hardware, cause the data processing hardware to perform operations, the operations including: receiving a plurality of data element search requests, each data element search request of the plurality of data element search requests requesting at least one data element from an information retrieval system, the information retrieval system comprising a plurality of data elements, the operations further comprising: generating a requirements grid for the information retrieval system comprising a plurality of cells, each cell of the plurality of cells representing a time bucket of a key bucket, each key bucket including a range of keys for the information retrieval system, the operations further comprising: For each key bucket of the request grid: determining a requests per second (RPS) for the range of keys in the key bucket based on the plurality of received data element retrieval requests; determining an RPS load comprising a running average of a number of data element lookup requests corresponding to the range of keys in the key bucket over a period of time; determining a delta RPS limit based on the RPS load; For one key bucket, determining that the RPS of the one key bucket has exceeded the delta RPS limit for the one key bucket; and determining a delta violation, indicative of a possible degradation in performance of the information retrieval system, based on determining that the RPS of the one key bucket has exceeded the delta RPS limit for the one key bucket.
12. The system of claim 11 , wherein the delta violation includes a start time corresponding to a time when the RPS exceeded the delta RPS limit.
13. The operation, for the delta violation, comprises: determining a maximum conforming load for the one key bucket over a second time period; determining that the RPS has exceeded the maximum conforming load for the one key bucket based on the start time of the delta violation; 13. The system of claim 12, further comprising: in response to determining that the RPS has exceeded the maximum matching load for the one key bucket, determining that the delta violation corresponds to a full history violation, the full history violation indicating a degradation in performance of the information retrieval system.
14. Determining whether the RPS has exceeded the maximum conforming load for the one key bucket based on the starting time of the delta violation includes: determining a zero history RPS limit comprising a function of a minimum of past zero history RPS limits and the RPS load; determining a third time period beginning at a start of the delta violation and ending when the RPS no longer exceeds the zero historical RPS limit; determining a zero history violation based on a period of time that the RPS has exceeded the zero history RPS limit; and determining that the zero history violation corresponds to a full history violation in response to determining that the RPS has exceeded the maximum conforming load for the one key bucket.
15. The system of claim 13, wherein receiving the plurality of data element search requests comprises receiving the data element search requests for at least a length of a criteria window.
16. The operation includes: selecting a time window prior to the second period of time; and determining the maximum conforming load of the one key bucket during the time window.
17. A system according to any one of claims 11 to 16, wherein each key bucket is sized to represent a selected average volume of data element search requests.
18. The system of any one of claims 11 to 17, wherein the information retrieval system comprises a dynamically scope sharded information retrieval system.
19. 19. The system of claim 11, wherein determining a delta RPS limit for each key bucket of the demand grid includes determining the delta RPS limit based on the RPS load and a delta weight indicative of an increase in model capacity after a split operation.
20. 20. The system of claim 19, wherein the splitting operation includes increasing memory available to the key bucket.
21. A program causing data processing hardware to carry out the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
System and method for transferring data over a network
JP2003527800A
Device and method for adjusting crawler
JP2011028485A
Computer-implemented kinetic sharding method
JP2016062609A
Monitoring key access patterns for nonrelational databases
US11068461B1
Server, computer program product, and communication system
US20180145883A1
