Method, electronic device and computer program product for storage management
Abstract
Embodiments of the present disclosure relate to a method for storage management, an electronic device, and a computer program product. According to an example implementation of the present disclosure, a method for storage management is provided, which comprises receiving an access request for target metadata from a user at a node among a plurality of nodes included in a data protection system, wherein the access request includes an identification of the target metadata; based on the identification, acquiring target access information corresponding to the identification from a set of access information for the user, wherein the target access information records information related to access to the target metadata; and if the target access information is acquired, determining the target metadata based on the target access information.
Claims
exact text as granted — not AI-modifiedThe invention claimed is:
1. A method for storage management, comprising:
receiving an access request for target metadata from a user at a node among a plurality of nodes included in a data protection system, wherein the access request comprises an identification of the target metadata;
based on the identification, acquiring target access information corresponding to the identification from a set of access information for the user, wherein the target access information records information related to access to the target metadata, wherein a replacement model is used to manage the set of access information stored in the node;
when the target access information is not acquired from the set of access information, sending the identification to other nodes of the plurality of nodes;
receiving the target metadata from the other nodes;
creating the target access information based on the identification, the target metadata, an initiation time of the access request, and an initial value of an acquisition count;
determining to-be-replaced access information from the set of access information, wherein the to-be-replaced access information satisfies at least one selected from a group consisting of:
an update time of the to-be-replaced access information exceeding a threshold time, and
a second acquisition count of the to-be-replaced access information exceeding a threshold count;
replacing the to-be-replaced access information with the target access information; and
providing the to-be-replaced access information to the user.
2. The method according to claim 1 , wherein the target access information comprises at least one selected from a group consisting of:
a metadata identification,
metadata content,
update time of the target access information, and
the acquisition count of the target access information.
3. The method according to claim 1 , further comprising:
based on the target metadata, updating metadata content in the target access information; and
based on the initiation time, updating an update time in the target access information.
4. The method according to claim 1 , further comprising:
providing the target metadata to the user.
5. The method according to claim 2 , further comprising:
in response to the target access information being acquired, incrementing the acquisition count in the target access information.
6. The method according to claim 1 , further comprising:
when user logs into the data protection system via the node, determining whether the set of access information is stored in the node; and
when the set of access information has not been stored in the node, acquiring the set of access information from other nodes in the plurality of nodes.
7. The method according to claim 1 , further comprising:
when user logs out of the data protection system via the node, notifying other nodes of the plurality of nodes of an updated access information in the set of access information.
8. An electronic device, comprising:
at least one processing unit; and
at least one memory coupled to the at least one processing unit and storing instructions configured to be executed by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the electronic device to perform actions comprising:
receiving an access request for target metadata from a user at a node among a plurality of nodes included in a data protection system, wherein the access request comprises an identification of the target metadata;
based on the identification, acquiring target access information corresponding to the identification from a set of access information for the user, wherein the target access information records information related to access to the target metadata, wherein a replacement model is used to manage the set of access information stored in the node;
when the target access information is not acquired from the set of access information, sending the identification to other nodes of the plurality of nodes;
receiving the target metadata from the other nodes;
creating the target access information based on the identification, the target metadata, an initiation time of the access request, and an initial value of an acquisition count;
determining to-be-replaced access information from the set of access information, wherein the to-be-replaced access information satisfies at least one selected from a group consisting of:
an update time of the to-be-replaced access information exceeding a threshold time, and
a second acquisition count of the to-be-replaced access information exceeding a threshold count;
replacing the to-be-replaced access information with the target access information; and
providing the to-be-replaced access information to the user.
9. The electronic device according to claim 8 , wherein the target access information comprises at least one selected from a group consisting of:
a metadata identification,
metadata content,
update time of the target access information, and
the acquisition count of the target access information.
10. The electronic device according to claim 8 , wherein the actions further comprise:
based on the target metadata, updating metadata content in the target access information; and
based on the initiation time, updating an update time in the target access information.
11. A computer program product tangibly stored on a non-transitory computer-readable medium and comprising machine-executable instructions, wherein the machine-executable instructions, when executed, cause a machine to perform steps of a method, the method comprising:
receiving an access request for target metadata from a user at a node among a plurality of nodes included in a data protection system, wherein the access request comprises an identification of the target metadata;
based on the identification, acquiring target access information corresponding to the identification from a set of access information for the user, wherein the target access information records information related to access to the target metadata, wherein a replacement model is used to manage the set of access information stored in the node;
when the target access information is not acquired from the set of access information, sending the identification to other nodes of the plurality of nodes;
receiving the target metadata from the other nodes;
creating the target access information based on the identification, the target metadata, an initiation time of the access request, and an initial value of an acquisition count;
determining to-be-replaced access information from the set of access information, wherein the to-be-replaced access information satisfies at least one selected from a group consisting of:
an update time of the to-be-replaced access information exceeding a threshold time, and
a second acquisition count of the to-be-replaced access information exceeding a threshold count;
replacing the to-be-replaced access information with the target access information; and
providing the to-be-replaced access information to the user.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.