白丝美女被狂躁免费视频网站,500av导航大全精品,yw.193.cnc爆乳尤物未满,97se亚洲综合色区,аⅴ天堂中文在线网官网

Hierarchical token buckets

專利號(hào)
US11616725B1
公開日期
2023-03-28
申請(qǐng)人
Amazon Technologies, Inc.(US WA Seattle)
發(fā)明人
Salman Ahmad Syed; Sandeep Kumar
IPC分類
H04L47/125; H04L47/78; H04L47/215
技術(shù)領(lǐng)域
token,bucket,tokens,service,host,throttle,request,requests,global,key
地域: WA WA Seattle

摘要

Systems and methods are provided for efficient handling of user requests to access shared resources in a distributed system, which handling may include throttling access to resources on a per-resource basis. A distributed load-balancing system can be logically represented as a hierarchical token bucket cache, where a global cache contains token buckets corresponding to individual resources whose tokens can be dispensed to service hosts each maintaining a local cache with token buckets that limit the servicing of requests to access those resources. Local and global caches can be implemented with a variant of a lazy token bucket algorithm to enable limiting the amount of communication required to manage cache state. High granularity of resource management can thus enable increased throttle limits on user accounts without risking overutilization of individual resources.

說明書

At (3), the service host 106 sends a request for tokens for Key 1 to the global cache 114 in response to a determination that the token bucket corresponding to Key 1 is not in a throttled state. This may be based on a determination that the service host has not already requested tokens from the global cache 114 during the current interval, and/or that it has not requested tokens and received a no-token response. Illustratively, the number of tokens the service host requests may be a fixed number of tokens, a fraction of the maximum tokens in global bucket 406, a number of tokens calculated based on a weighted average of previous requests as described above, etc. Alternatively, the request may not specify a number of tokens. For example, the service host may not have previously received a request for Key 1, and may request a fixed number of tokens reflecting the number of requests typical for any given key per interval. Alternatively, the service host may issue a request for more tokens without specifying a fixed number, and rely on the global cache 114 to determine the number of tokens to dispense, for example a fraction of the maximum tokens in the global token bucket corresponding to Key 1. If the service host 106 has history for Key 1, it may base the number of tokens requested on the allowed requests in the corresponding local token bucket in order to minimize the number of requests it needs to make for more tokens without running out of tokens in the current interval.

At (4), the global cache 114 refills global token bucket 406. Illustratively, the global cache 114 may track the time of the last refill via a refill timestamp, and determine on receipt of a token request that global bucket 406 is empty and that it has not been refilled within the current interval.

權(quán)利要求

1
微信群二維碼
意見反饋