US 12,287,768 B2
Database performance tuning method, apparatus, and system, device, and storage medium
Ji Zhang, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed on May 27, 2021, as Appl. No. 17/332,948.
Application 17/332,948 is a continuation of application No. PCT/CN2020/081613, filed on Mar. 27, 2020.
Claims priority of application No. 201910290722.8 (CN), filed on Apr. 11, 2019.
Prior Publication US 2021/0286786 A1, Sep. 16, 2021
Int. Cl. G06F 16/21 (2019.01); G06N 3/04 (2023.01); G06N 3/08 (2023.01); G06N 20/00 (2019.01)
CPC G06F 16/217 (2019.01) [G06N 3/04 (2013.01); G06N 3/08 (2013.01); G06N 20/00 (2019.01)] 13 Claims
OG exemplary drawing
 
1. A database performance tuning method, performed by a computer device, the method comprising:
receiving a performance tuning request of tuning a configuration parameter of a target database, the target database being a cloud database of a cloud service provider;
invoking a standard deep reinforcement learning model, the standard deep reinforcement learning model being trained with standard database instances and comprising a first deep reinforcement learning network and a second deep reinforcement learning network, the first deep reinforcement learning network being configured to provide a recommendation policy for outputting a recommended configuration parameter according to a status indicator, the second deep reinforcement learning network being configured to evaluate the recommendation policy provided by the first deep reinforcement learning network;
replaying an actual workload of the target database by: returning, by a load generator, the target database to a state at a previous timestamp; and re-executing a plurality of operations logged in an operation execution record of the target database within a historical time starting from the previous timestamp according to a same execution sequence logged in the operation execution record;
performing at least one round of retraining process on the standard deep reinforcement learning model in a process of running the target database according to the actual workload;
stopping retraining the standard deep reinforcement learning model when a training stop condition is met, to obtain the tuned deep reinforcement learning model;
obtaining a status indicator of the target database; and
inputting the status indicator of the target database into the tuned deep reinforcement learning model, to obtain a recommended configuration parameter of the target database,
wherein the target database tuned based on the recommended configuration parameter has a higher concurrency and a lower latency compared to the target database before tuning, the concurrency indicating a quantity of requests processed by the target database per unit time.