Methods and apparatus using locks to throttle a distributed cloud database workload
Abstract
A method of managing load in a database system includes receiving, by a compute node, from a page store, a log writing quota. Then, requesting, by a transaction of the compute node, a lock of a page to be modified by the transaction where the page is part of the page store including a plurality of pages and the transaction is configured to write a data amount to a log. Also, granting, by a lock manager of the compute node, the lock and determining, by the compute node, that the data amount exceeds the log writing quota. Furthermore, releasing, by the transaction, the lock, and throttling, by the compute node, the transaction until a criteria is fulfilled. Then, reacquiring, by the transaction, in response to the criteria being fulfilled, the lock, and writing, by the compute node, the data amount to the log.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method of managing load in a distributed database system including a storage layer, the storage layer including a plurality of page stores, each page store of the plurality of page stores including one or more pages for storing data, the method comprising: receiving, by a compute node at a compute layer of the distributed database system, from a first page store of the plurality of page stores, a first log writing quota for the first page store; receiving, by the compute node, from a second page store of the plurality of page stores, a second log writing quota for the second page store; requesting, by a first transaction, a first lock of a first page to be modified by the first transaction, the first page being part of the first page store, the first transaction configured to write a first data amount to a first log; requesting, by the second transaction, a second lock of a second page to be modified by the second transaction, the second page being part of the second page store, the
- Claim 2Depends on #1
The method of claim 1, wherein the first lock is a write lock.
- Claim 3Depends on #1
The method of claim 1, wherein the log writing quota is expressed as an amount of data or log records, a rate of data or log records written, or an amount of data or log records written per unit of time.
- Claim 4Depends on #1
The method of claim 1, further comprising: requesting, by a second transaction of the compute node, read access to the page; and receiving, by the second transaction, read access to the page.
- Claim 5Independent Claim
A compute node at a compute layer of a distributed database system, the distributed database system including a storage layer, the storage layer including a plurality of page stores, each page store of the plurality of page stores including one or more pages for storing data, the compute node comprising: at least one processor; and a tangible, non-transitory computer readable medium having instructions recorded thereon to be performed by the at least one processor to: receive, from a first page store of the plurality of page stores, a first log writing quota for the first page store; receive, from a second page store of the plurality of page stores, a second log writing quota for the first page store; request, by a first transaction, a first lock of a first page to be modified by the first transaction, the first page being part of the first page store, the first transaction configured to write a first data amount to a first log; request, by a second transaction, a second lock of a seco
- Claim 6Depends on #5
The compute node of claim 5 wherein the first lock is a write lock.
- Claim 7Depends on #5
The compute node of claim 5, wherein the log writing quota is expressed as an amount of data, a rate of data, or an amount of data per unit of time.
- Claim 8Depends on #5
The compute node of claim 5, wherein the non-transitory computer readable medium has instructions recorded thereon to be further performed by the at least one processor to: request, by the second transaction of the compute node, read access to the page; and receive, by the second transaction, read access to the page.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This is the first application filed for the present invention. FIELD OF THE INVENTION The present invention pertains to the field of throttling in a multi-layered system, and in particular to methods and apparatus for using page locks to manage a distributed cloud database workload. BACKGROUND Currently, modern database systems are generally implemented as layered systems which include multiple (often distributed) components organized into layers. Each layer includes functionally independent components with well-defined interfaces for service requests and responses. Under a high user workload, a component of the system may become overloaded, which may result in various adverse effects, for example, resource exhaustion leading to failures of critical tasks, component throughput degrading with high loads to further aggravate overloading, denial of service leading to higher layer and system-wide failures, and the like. Accordingly, throttling was introduced to prevent overloading of any component of any layer of the system. For example, when a storage layer of the multi-layered database system is overloaded by a compute layer, a throttling process may be triggered to prevent overloading in the system. Existing approaches of throttling include limiting user requests, suspending a problematic query during execution and resuming its processing at a later time, pausing query execution by self-imposing sleeps at intervals (referred to as “ constant throttle approach ” ), and allowing compute layer queries to continue execution while the storage layer is not required (referred to as “ targeted log flush approach ” ). However, existing approaches fail to consider resource requirements of individual transactions and queries and in particular which component of the system is actually overloaded. For example, when a storage node in the storage layer is overloaded, existing approaches will start throttling all the queries from one or more c
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (9)
| Patent | Title | Year | Citations |
|---|