The embodiment of the present application discloses a
resource management method, device, electronic device and storage medium, wherein the method specifically includes: initializing the use status of all resources in the
resource pool to a dormant state; activating at least one target resource in the
resource pool according to the storage capacity allocated by the user, so that based on the
consistent hashing algorithm, the data collected by the collector is stored in the target resource in the activated state; in response to the trigger operation of shrinking the
resource pool, selecting resources that meet the shrinking requirements from the resources currently in the dormant state to shrink the resource
pool. Since the data is only stored in the resources in the activated state, when shrinking the resource
pool, the resources are directly selected from the dormant resources to shrink the resource
pool, so that the shrunk resources do not need to perform
data migration, reducing the
operation time of shrinking the resource pool, reducing the performance pressure of disk reading and writing, and achieving the purpose of optimizing the resource pool management effect.