Multi-tenant Data Storage Policy Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current multi-tenant data storage systems require preconfigured data distribution policies for each application scenario, leading to complexity in policy deployment and inflexibility in meeting varying tenant requirements.
Innovation Solution
A data storage method that uses a combination of first and second data distribution policies to dynamically determine the distribution of data across resource zones and nodes, allowing for flexible control of data placement based on tenant permissions and space availability, thereby reducing policy deployment complexity.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If a preconfigured data distribution policy is used for each application scenario, then the data distribution can be determined, but the policy deployment complexity increases
Solution Approach 1:
The patent segments the data distribution policy into two independent parts: a first data distribution policy for determining distribution across resource zones (RZs), and a second data distribution policy for determining distribution within nodes. This segmentation allows each policy to be configured independently, reducing the overall complexity while maintaining adaptability for different application scenarios
Solution Approach 2:
The patent introduces dynamic selection mechanisms where the system can flexibly choose which first data distribution policy and second data distribution policy to apply based on the specific application scenario and tenant requirements. This dynamic approach enables the system to adapt to different scenarios without requiring preconfiguration of policies for every possible scenario
2Manufacturing precision
If multiple data distribution policies are preconfigured for different scenarios, then specific distribution results can be achieved, but the system becomes less flexible in meeting varying tenant requirements
Solution Approach 1:
The patent enables dynamic selection of data distribution policies based on tenant requirements and application scenarios. The system can flexibly combine different first data distribution policies (for RZ distribution) and second data distribution policies (for node distribution) to meet varying tenant needs, thereby maintaining both control precision and adaptability
Solution Approach 2:
The patent allows changing the parameters of data distribution by selecting different policies for different scenarios. The first data distribution policy controls the distribution pattern across resource zones, while the second policy controls the distribution pattern within nodes, enabling flexible adjustment of distribution parameters to match tenant requirements
Data Source
Figure 1~2
Figure 3
Figure 4~5
AI summary
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.