hottub.patents
US 12,229,094 B2#3609298 Most CitedActiveUnited States (USPTO)Utility

Proxy-based database scaling

0Forward Citations (#3609298 Global)
0.0/yrCitation Velocity (#3609298 Global)
0.00Citation PageRank (#3609298 Global)
15Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
13Drawings / Sheets

Abstract

Proxy-based scaling may be performed for databases. A proxy may be implemented for a database that can establish a connection between the proxy and a database engine to perform a database queries received from a client at the proxy. A scaling event may be detected for the database responsive to which the proxy may establish a connection with a new database engine which may, in some embodiments, have different capabilities or resources that address the features or criteria that triggered the scaling event. Session state may be copied from the database engine to the new database engine so that the new database engine may be able to provide access to the database on behalf of requests received from the client through the proxy.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A system, comprising: one or more processors; and a memory, that stores program instructions that, when executed by the at least one processor, cause the one or more processors to implement a proxy for a database engine head node, configured to: receive a request for a database specified in Structured Query Language (SQL); parse, using a query engine implemented at the proxy, the request specified in SQL; determine, based on the parsed request, that the proxy is able to perform the parsed request instead of sending the request to the database engine head node to perform the parsed request; access, using the query engine, a schema for the database and statistics for the database to obtain database data to perform the parsed request for the database; parse, by the query engine, the database data to generate a result for the request; and return the result for the request for the database.

  2. Claim 2Depends on #1

    The system of claim 1, wherein the proxy is further configured to: receive a second request for the database specified in SQL; parse, using the query engine, the second request specified in SQL; determine that the proxy is not able to perform the parsed second request; establish a connection between the proxy and the database engine head node; send the second request for the database to the database engine head node; and return a second result for the second request for the database received from the database engine head node at the proxy.

  3. Claim 3Depends on #2

    The system of claim 2, wherein the proxy is further configured to provision the database engine head node from a pool of standby database engine head nodes after determining that the proxy is not able to perform the second database request.

  4. Claim 4Depends on #2

    The system of claim 2, wherein the proxy is further configured to send session state obtained from a previous database engine head node and stored at the proxy to the database engine head node.

  5. Claim 5Depends on #1

    The system of claim 1, wherein to determine that the proxy is able to perform the parsed request, the proxy is configured to determine that session state received at the proxy from a prior database engine head node for the database comprises the results for the request and wherein to perform the parsed request, the proxy is configured to access the session state.

  6. Claim 6Depends on #1

    The system of claim 1, wherein to determine that the proxy is able to perform the parsed request, the proxy is configured to recognize that the parsed request can be performed using a mapping to the result for the request and wherein to perform the parsed request, the proxy is configured to use the mapping to access the result according to the mapping.

  7. Claim 7Depends on #1

    The system of claim 1, wherein the proxy, the database engine head node and the database are implemented as part of one or more services hosted by a provider network.

  8. Claim 8Independent Claim

    A method, comprising: receiving, at a proxy for a database engine head node, a request for a database specified in Structured Query Language (SQL); parsing, by a query engine implemented at the proxy for the database engine head node, the request specified in SQL; based on the parsed request, determining, by the proxy for the database engine head node, that the proxy is able to perform the parsed request instead of sending the request to the database engine head node to perform the parsed request; accessing, using the query engine implemented at the proxy, a schema for the database and statistics for the database to obtain database data to perform, the parsed request for the database; parsing, by the query engine, the database data to generate a result for the request; and returning, by the proxy for the database, the result for the request for the database.

  9. Claim 9Depends on #8

    The method of claim 8, further comprising: receiving, at the proxy for the database engine head node, a second request for the database specified in SQL; parsing, by the query engine implemented at the proxy for the database engine head node, the second request specified in SQL; based on the parsed request, determining, by the proxy for the database engine head node, that the proxy is not able to perform the parsed second request; establishing, by the proxy for the database, a connection between the proxy and the database engine head node; sending, by the proxy for the database, the second request for the database to the database engine head node; and returning, by the proxy for the database engine head node, a second result for the second request for the database received from the database engine head node at the proxy.

  10. Claim 10Depends on #9

    The method of claim 9, further comprising provisioning a database engine head node for the database from a pool of standby database engine head nodes after determining that the proxy is not able to perform the second database request.

  11. Claim 11Depends on #9

    The method of claim 9, further comprising sending, by the proxy for the database, session state obtained from a previous database engine head node and stored at the proxy to a database engine head node for the database.

  12. Claim 12Depends on #8

    The method of claim 8, wherein determining that the proxy is able to perform the parsed request comprises determining that session state received at the proxy from a prior database engine head node for the database comprises the results for the request and wherein performing the parsed request comprises accessing the session state.

  13. Claim 13Depends on #8

    The method of claim 8, wherein determining that the proxy is able to perform the parsed request comprises recognizing that the parsed request can be performed using a mapping to the result for the request and wherein performing the parsed request comprises using the mapping to access the result according to the mapping.

  14. Claim 14Depends on #8

    The method of claim 8, wherein the proxy and the database engine head node are implemented as part of one or more services hosted by a provider network.

  15. Claim 15Independent Claim

    One or more non-transitory computer-readable storage media storing program instructions that, when executed on or across one or more processors, cause the one or more processors to: receiving, at a proxy for a database engine head node, a request for a database specified in Structured Query Language (SQL); parsing, by a query engine implemented at the proxy for the database engine head node, the request specified in SQL; based on the parsed request, determining, by the proxy for the database engine head node, that the proxy is able to perform the parsed request instead of sending the database engine head node to perform the parsed request; accessing, using the query engine implemented at the proxy, a schema for the database and statistics for the database to obtain database data to perform, the parsed request for the database; parsing, by the query engine, the database data to generate a result for the request; and returning, by the proxy for the database engine head node, the result for the request for the database.

  16. Claim 16Depends on #15

    The one or more non-transitory computer-readable storage media of claim 15, storing further program instructions that when executed on or across the one or more computing devices, cause the one or more computing devices to further implement: receiving, at the proxy for the database engine head node, a second request for the database specified in SQL; parsing, by the query engine implemented at the proxy for the database engine head node, the second request specified in SQL; based on the parsed second request, determining, by the proxy for the database engine head node, that the proxy is not able to perform the parsed second request; establishing, by the proxy for the database engine head node, a connection between the proxy and the database engine head node; sending, by the proxy for the database engine head node, the second request for the database to the database engine head node; and returning, by the proxy for the database, a second result for the second request for the database received from the database engine head node at the proxy.

  17. Claim 17Depends on #16

    The one or more non-transitory computer-readable storage media of claim 16, storing further program instructions that when executed on or across the one or more computing devices, cause the one or more computing devices to further implement provisioning a database engine head node for the database from a pool of standby database engine head nodes after determining that the proxy is not able to perform the parsed second request.

  18. Claim 18Depends on #16

    The one or more non-transitory computer-readable storage media of claim 16, storing further program instructions that when executed on or across the one or more computing devices sending, by the proxy for the database, session state obtained from a previous database engine head node and stored at the proxy to a database engine head node for the database.

  19. Claim 19Depends on #15

    The one or more non-transitory computer-readable storage media of claim 15, wherein, in determining that the proxy is able to perform the parsed request, the program instructions cause the one or more computing devices to implement determining that session state received at the proxy from a prior database engine head node for the database comprises the results for the request and wherein, in performing the parsed request, the programming instructions cause the one or more computing devices to implement accessing the session state.

  20. Claim 20Depends on #15

    The one or more non-transitory computer-readable storage media of claim 15, wherein, in determining that the proxy is able to perform the parsed request, the program instructions cause the one or more computing devices to implement recognizing that the parsed request can be performed using a mapping to the result for the request and wherein, in performing the parsed request, the program instructions cause the one or more computing devices to implement using the mapping to access the result according to the mapping.

Technical Overview & Description

RELATED APPLICATIONS This application is a continuation of U.S. patent application Ser. No. 15/971,964, filed May 4, 2018, which claims benefit of priority to U.S. Provisional Application Ser. No. 62/590,171, filed Nov. 22, 2017, which are incorporated herein by reference in their entirety. BACKGROUND Commoditization of computer hardware and software components has led to the rise of service providers that provide computational and storage capacity as a service. At least some of these services (e.g., managed services such as managed relational database services) can be difficult to scale, including scaling the processing capacity. Disruption of an application or other process can be a high cost associated with changing capacity to better match workloads, as client applications may be interrupted due to dropped connections (and may not even retry to connect, in some instances). Techniques that can support scaling resources to match workloads therefore are highly desirable. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a logical block diagram illustrating proxy-based database scaling, according to some embodiments. FIG. 2 is a logical block diagram illustrating a provider network that implements a proxy service for databases accessed by a database service and stored in a storage service, according to some embodiments. FIG. 3 is a logical block diagram illustrating a proxy service that implements a proxy for databases, according to some embodiments. FIG. 4 is a logical block diagram illustrating a database service that implements proxy-based database scaling, according to some embodiments. FIG. 5 is a logical block diagram illustrating a storage service that stores data for a separate database service, according to some embodiments. FIG. 6 is a logical block diagram illustrating example client interactions to configure scaling events for a database, according to some embodiments FIG. 7 is a block diagram illustrating the use of a separate storage service for a database s

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.

Non-Patent Literature (10)

  • P. Zhou, et al.,
  • “
  • Dynamic Tracking of Page Miss Ratio Curve for Memory Management
  • ”
  • , ASPLOS'04, Oct. 9, 2004, pp. 1-12.
  • Timothy Y. Chow, et al.,
  • “
  • Estimating Cache Hit Rates from the Miss Sequence
  • ”
  • , HP technical report, Sep. 21, 2007, available at http://www.hpl.hp.com/techreports/2007/HPL-2007-155.html, pp. 1-8.