US 12,437,099 B2
Access limiting method, apparatus and device for metadata server
Mengjun Li, Beijing (CN); Qing Xu, Beijing (CN); Ke Sun, Beijing (CN); Jun Guo, Beijing (CN); and Xuan Luo, Beijing (CN)
Assigned to Beijing Volcano Engine Technology Co., Ltd., Beijing (CN)
Filed by Beijing Volcano Engine Technology Co., Ltd., Beijing (CN)
Filed on Aug. 22, 2024, as Appl. No. 18/812,238.
Claims priority of application No. 202311069872.9 (CN), filed on Aug. 23, 2023.
Prior Publication US 2025/0068757 A1, Feb. 27, 2025
Int. Cl. G06F 21/62 (2013.01)
CPC G06F 21/6218 (2013.01) 17 Claims
OG exemplary drawing
 
1. An access limiting method for a metadata server, wherein the method is applied to a data lake metadata server and comprises:
receiving a metadata access request sent by a client, the metadata access request being used for obtaining metadata stored by a storage server for describing target data, the target data being data in a target table;
determining a metadata service interface used by the data lake metadata server according to the metadata access request;
obtaining, in response to the metadata service interface satisfying a preset condition, request parameters of the metadata access request, the request parameters including a number of table partitions and a number of partition levels of the target table;
determining a number of applied tokens corresponding to the metadata access request according to the number of table partitions and the number of partition levels; and
performing, in response to the number of applied tokens being greater than a number of remaining tokens corresponding to the client, limiting processing on the metadata access request,
wherein obtaining the number of applied tokens corresponding to the metadata access request according to the number of table partitions and the number of partition levels comprises:
obtaining a first value by calculating a logarithm of the number of table partitions;
obtaining a second value by calculating a product of a first constant, the number of partition levels, and the first value;
obtaining a third value by calculating a sum of the second value and a second constant; and
calculating a product of the third value and a third constant as the number of applied tokens for the metadata access request, wherein the first constant, the second constant, and the third constant are related to a configuration of the storage server.