Data Processing Method and Related Apparatus
AssigneeHuawei Cloud Computing Technologies Co., Ltd.
InventorsXianghu Ji, Xudong Fu, Guanyu Zhu, Lixun Peng
Life of this patent
Estimating the term…
Abstract
A data processing method includes setting a connection processing module to obtain a connection request of a user for a database system, and a thread group bound to the user is created for the user based on the connection request, such that each created thread group processes only a data operation request of an user, thereby ensuring independence of processing resources between different users and avoiding mutual interference between different users. In addition, a load detection module of the database system can detect a load status of a created thread group, so as to delete some thread groups that have not loaded for a long time.
Claims21
A method comprising:
- receiving a first connection request comprising first user identity information of a first user;
- creating, based on the first user identity information, a first thread group for the first user, wherein the first thread group is bound to the first user, comprises at least one first worker thread, and is for processing a first data operation request corresponding to the first user;
- receiving a second connection request comprising second user identity information of a second user;
- creating, based on the second user identity information, a second thread group for the second user, wherein the second thread group is bound to the second user, comprises at least one second worker thread, and is for processing a second data operation request corresponding to the second user;
- detecting a first load status of the first thread group and a second load status of the second thread group;
- a determination that a no-load duration of a target thread group exceeds a target duration wherein the target thread group is the first thread group or the second thread group;
- and
- deleting, in response to the determination, the target thread group.
(canceled)
A compute device cluster comprising:
- at least one computing device comprising:
- one or more memories configured to store instructions, and
- one or more processors coupled to the one or more memories, wherein when executed by the one or more processors, the instructions cause the compute device cluster to:
- receive a first connection request comprising first user identity information of a first user;
- create, based on the first user identity information, a first thread group for the first user, wherein the first thread group is bound to the first user, comprises at least one first worker thread, and is for processing first data operation request corresponding to the first user;
- receive a second connection request comprising second user identity information of a second user;
- create, based on the second user identity information, a second thread group for the second user, wherein the second thread group is bound to the second user, comprises at least one second worker thread, and for processing a second data operation request corresponding to the second user;
- detect a first load status of the first thread group and a second load status of the second thread group;
- make a determination that a no-load duration of a target thread group exceeds a target duration, wherein the target thread group is the first thread group or the second thread group;
- and
- delete, in response to the determination, the target thread group.
A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by one or more processors, cause at least one computing device to:
- receive, using a connection processor of a database system, a first connection request comprising first user identity information of a first user;
- create, using the connection processor based on the first user identity information, a first thread group for the first user, wherein the first thread group is bound to the first user, comprises at least one first worker thread, and for processing a first data operation request corresponding to the first user;
- receive, using the connection processor, a second connection request comprising second user identity information of a second user;
- create, using the connection processor based on the second user identity information, a second thread group for the second user, wherein the second thread group is bound to the second user, comprises at least one second worker thread, and is for processing a second data operation request corresponding to the second user;
- detect, using a load detection processor of the database system, a first load status of the first thread group and a second load status of the second thread group;
- make a determination, using the load detection processor, that a no-load duration in which a target thread group exceeds a target duration, wherein the target thread group is the first thread group or the second thread group;
- and
- delete, using the load detection processor and in response to the determination, the target thread group.
Dependencies are inferred from the claim text.