DATA STORAGE METHOD AND DEVICE

Embodiments of this application provide a data storage method and apparatus. The method includes: receiving a data write request that is sent by a first tenant by using a client; determining, from a plurality of RZs and based on the data write request and storage permission of the first tenant for e...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: SUN, Guilin, XIN, Xianyin, LIU, Huaizhong, ZHA, Li
Format: Patent
Sprache:eng ; fre ; ger
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:Embodiments of this application provide a data storage method and apparatus. The method includes: receiving a data write request that is sent by a first tenant by using a client; determining, from a plurality of RZs and based on the data write request and storage permission of the first tenant for each of the plurality of resource zones RZs, at least one RZ available to the first tenant; determining, based on the data write request and a first data distribution policy, distribution of N duplicates in the at least one RZ; and storing, based on distribution of the N duplicates in the at least one RZ and a second data distribution policy, the N duplicates into at least one node corresponding to the at least one RZ. According to the data storage method and apparatus in the embodiments of this application, distribution of to-be-stored data of a tenant at a node can be flexibly controlled by using a combination of different data distribution policies, thereby reducing policy deployment complexity.