CN113687920B - Object policy operation method, device and equipment of distributed system - Google Patents
Object policy operation method, device and equipment of distributed system Download PDFInfo
- Publication number
- CN113687920B CN113687920B CN202111006691.2A CN202111006691A CN113687920B CN 113687920 B CN113687920 B CN 113687920B CN 202111006691 A CN202111006691 A CN 202111006691A CN 113687920 B CN113687920 B CN 113687920B
- Authority
- CN
- China
- Prior art keywords
- target
- policy
- strategy
- user
- storage pool
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/465—Distributed object oriented systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses an object strategy operation method, device and equipment of a distributed system and a computer readable storage medium, wherein the method comprises the following steps: according to the acquired object strategy creating instruction, starting an object gateway service, and determining a target S3 user and a target storage pool; creating a target object strategy by using the target storage pool according to the object strategy information in the object strategy creation instruction; creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object strategy; the object strategy of the target bucket is a target object strategy; according to the method and the system, the target object strategy is created by utilizing the target storage pool according to the object strategy information in the object strategy creation instruction, the storage pool and the strategy algorithm can be specified in the distributed system, the object strategy is created, and the created object strategy can be ensured to be normally used, so that a user can create the object strategy according to the use requirement of the user, and the user experience is improved.
Description
Technical Field
The present invention relates to the field of distributed systems, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for operating an object policy of a distributed system.
Background
With the development of modern society science and technology, distributed systems are widely used in the fields of IT (internet technology) enterprises, cloud computing, big data, virtualization and the like.
In the prior art, only the operation function of the default object strategy is provided in the distributed system, the operation control of the object strategy of the designated storage pool and the designated compression algorithm cannot be performed, and the higher and higher use requirements of users in various fields cannot be met, so that how to increase the operation function of the object strategy in the distributed system, improve the robustness, the usability and the functional richness of the distributed system, and improve the user experience is a problem which needs to be solved rapidly nowadays.
Disclosure of Invention
The invention aims to provide an object strategy operation method, device and equipment of a distributed system and a computer readable storage medium, so as to increase the operation function of an object strategy in the distributed system and improve user experience.
In order to solve the above technical problems, the present invention provides an object policy operation method of a distributed system, including:
according to the obtained object strategy creation instruction, starting an object gateway service, and determining a target S3 user and a target storage pool;
creating a target object strategy by using the target storage pool according to the object strategy information in the object strategy creation instruction;
creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object strategy; the object policy of the target bucket is the target object policy.
Optionally, the determining the target S3 user and the target storage pool includes:
creating S3 users in a distributed cluster, and determining the S3 users as the target S3 users;
a new storage pool is created and the storage pool is determined to be the target storage pool.
Optionally, before the creating the target bucket corresponding to the target S3 user according to the target S3 user and the target object policy, the method further includes:
searching policy information of the target object policy in a database by using the policy name of the target object policy, and detecting whether the policy information is correct or not;
if yes, executing the step of creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object strategy.
Optionally, after creating the target bucket corresponding to the target S3 user according to the target S3 user and the target object policy, the method further includes:
detecting whether the object strategy of the target bucket is the target object strategy;
if yes, determining that the object strategy creation is completed.
Optionally, after creating the target bucket corresponding to the target S3 user according to the target S3 user and the target object policy, the method further includes:
acquiring an object strategy modification instruction corresponding to the target object strategy; wherein the object policy modification instruction includes policy modification information;
editing and modifying the target object strategy according to the strategy modification information to obtain an updated target object strategy.
Optionally, after creating the target bucket corresponding to the target S3 user according to the target S3 user and the target object policy, the method further includes:
acquiring an object strategy deleting instruction corresponding to the target object strategy;
and deleting the target object strategy according to the object strategy deleting instruction.
Optionally, the deleting the target object policy according to the object policy deleting instruction includes:
and deleting the target object strategy according to the object strategy deleting instruction, and deleting the target storage pool or the data corresponding to the target object strategy in the target storage pool.
The invention also provides an object strategy operation device of the distributed system, which comprises:
the driving determining module is used for starting the object gateway service according to the acquired object strategy creating instruction and determining a target S3 user and a target storage pool;
the object policy creation module is used for creating a target object policy by utilizing the target storage pool according to the object policy information in the object policy creation instruction;
the object bucket creation module is used for creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object strategy; the object policy of the target bucket is the target object policy.
The invention also provides an object strategy operation device of the distributed system, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the method of object policy operation of the distributed system as described above when executing the computer program.
Furthermore, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the object policy operation method of a distributed system as described above.
The invention provides an object strategy operation method of a distributed system, which comprises the following steps: according to the acquired object strategy creating instruction, starting an object gateway service, and determining a target S3 user and a target storage pool; creating a target object strategy by using the target storage pool according to the object strategy information in the object strategy creation instruction; creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object strategy; the object strategy of the target bucket is a target object strategy;
therefore, the invention creates the target object strategy by utilizing the target storage pool according to the object strategy information in the object strategy creation instruction, and can designate the storage pool and the strategy algorithm in the distributed system to create the object strategy; and a target bucket corresponding to the target S3 user is created according to the target S3 user and the target object strategy, so that the created object strategy can be used normally, the creation function of the object strategy in the distributed system is improved, the user can create the used object strategy according to the use requirement, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an object policy operation method of a distributed system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a control process of an object policy operation method of a distributed system according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating an object policy handling device of a distributed system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an object policy operation device of a distributed system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a specific structure of an object policy operation device of a distributed system according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of an object policy operation method of a distributed system according to an embodiment of the present invention. The method may include:
step 101: and starting the object gateway service according to the acquired object strategy creation instruction, and determining the target S3 user and the target storage pool.
The object policy creation instruction in this step may be an instruction for creating an object policy (i.e., a target object policy) in the distributed system; the target S3 (Simple Storage Service ) user in this step may be the S3 user corresponding to the object policy creation instruction, that is, the S3 user corresponding to the target object policy created by the object policy creation instruction; the target storage pool in this step may be a storage pool corresponding to the object policy creation instruction, that is, a storage pool corresponding to the target object policy created by the object policy creation instruction.
Specifically, for the step, the processor starts the object gateway service according to the obtained object policy creation instruction, and determines specific modes of the target S3 user and the target storage pool, which can be set by a designer according to a practical scene and user requirements, for example, the processor can start the object gateway service according to the obtained object policy creation instruction and using the icfs-object-rgw-start-node all instruction; as shown in fig. 2, the processor may initiate an object gateway service through the object gateway module.
The processor can search or create a target S3 user according to the S3 user information in the object strategy creation instruction; for example, the processor may create a new S3 USER (i.e., target S3 USER) in the distributed cluster using an icfs-object-USER-create-USER-id $uid-NAME $s3_user_name-tenne $s3_tenant_name instruction from a UID (USER identification), S3 USER NAME, and S3 TENANT NAME in the S3 USER information; as shown in fig. 2, the processor may create a new S3 user (i.e., a target S3 user) and a corresponding S3 tenant through the S3 user creation module; correspondingly, the processor can also store an S3 TENANT NAME (such as $S3_TENANT_NAME) corresponding to the target S3 user, so as to facilitate the subsequent searching of the target bucket and the target object policy use of the target bucket; correspondingly, the processor in this step may also determine the S3 user corresponding to the S3 user information in the found object policy creation instruction as the target S3 user.
The processor can search or create a target storage pool according to the storage pool information in the object strategy creation instruction; for example, the processor may create a new storage POOL (i.e., target storage POOL) using an icfs-admin-POOL-create-POOL $POOL_NAME-pgnum 2048-REPLICATED 3-weight-threshold 0.8-minSize 1-faultdimain hdd_1: host instruction; as shown in fig. 2, the processor may create a new storage pool (i.e., a target storage pool) through the storage pool creation module; correspondingly, the processor may also store a POOL NAME (e.g., $pool_name) for the target POOL to facilitate subsequent use; correspondingly, in this step, the processor may also determine a storage pool corresponding to the storage pool information in the found object policy creation instruction as the target storage pool.
Step 102: and creating a target object strategy by using the target storage pool according to the object strategy information in the object strategy creation instruction.
It can be understood that, in this step, the processor may create a target object policy by using the target storage pool according to the object policy information (such as the policy name and the policy algorithm information) in the object policy creation instruction; for example, the processor may create a new object POLICY ($POOL_NAME), i.e., a target object POLICY, using an icfs-object-location-creation-location $policy_NAME-date-POOL $DATA_POOL_NAME-INDEX-POOL $INDEX_POOL_NAME-class_pool $class_POOL_NAME-composition $COMPRESS_ALGORITM instruction, with the target storage POOL ($POOL_NAME); as shown in fig. 2, the processor may create a new object policy (i.e., a target object policy) through the object policy creation module.
Specifically, the step may further include searching policy information of the target object policy in the database by using a policy name of the target object policy, and detecting whether the policy information is correct; if yes, go to step 103. That is, the processor may query POLICY information of the target object POLICY in a database, such as a mysql (a relational database management system) database, using a POLICY NAME ($policy_name) of the created target object POLICY after creating the target object POLICY, to detect whether the created target object POLICY is correct, such as whether the queried POLICY information coincides with the object POLICY information in the object POLICY creation instruction; so that when the created target object policy is correct, step 103 is entered. For example, the processor may use an icfs-object-displacement-query-displacement $policy_name instruction to see if the POLICY information for the newly created object POLICY (i.e., the target object POLICY) in the mysql database is correct; if so, step 103 may be entered; if the error occurs, the error can be reported, such as the error information is created by outputting the object strategy; as shown in fig. 2, the processor may check the polling module through the object policy data to detect whether the policy information of the created target object policy is correct.
Step 103: creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object strategy; the object policy of the target bucket is a target object policy.
It can be understood that, in this step, the processor may create a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy, so that the S3 tenant corresponding to the target S3 user may access and use the target object policy through the target bucket, and ensure that the created object policy can be normally used. For example, the processor may create a new BUCKET ($BUCKET_NAME), i.e., a target BUCKET, using an icfs-OBJECT-BUCKET-create-BUCKET-NAME $BUCKET_NAME-access_key $ACESS_KEY-SECRET-KEY $SECRET_KEY-OBJECT-pole $OBJCET_OBJECT instruction; as shown in fig. 2, the processor may create a new bucket through the object bucket creation module.
Specifically, the step may further include detecting whether the object policy of the target bucket is the target object policy; if yes, determining that the object strategy creation is completed. That is, the processor may query the POLICY NAME of the object POLICY of the target BUCKET using the BUCKET NAME of the created target BUCKET (e.g., $BUCKET_NAME) after creating the target BUCKET, and detect whether the POLICY NAME of the object POLICY of the target BUCKET is the POLICY NAME of the target object POLICY (e.g., $POLICY_NAME); if yes, determining that the object strategy creation is completed. For example, the processor may query whether the object policy of the target BUCKET is a target object policy using an icfs-object-BUCKET-query-policy-NAME $BUCKET_NAME-access_key $ACESS_KEY-SECRET-KEY $SECRET_KEY instruction; if yes, the object policy creation is completed, so that the created object policy (namely, the target object policy) is used by the target bucket for the S3 tenant corresponding to the target S3 user; if not, the error can be reported, such as outputting configuration error information; as shown in fig. 2, the processor may detect whether the object policy of the created target bucket is the target object policy through the object policy data patrol polling module.
Further, in order to further improve the operation function of the object policy in the distributed system and improve the user experience, the method provided in this embodiment may further include a modification process of the object policy, for example, the processor may obtain an object policy modification instruction corresponding to the target object policy after step 103; wherein the object policy modification instruction includes policy modification information; editing and modifying the target object strategy according to the strategy modification information to obtain an updated target object strategy. For example, the processor may edit the compression ALGORITHM ($composition_algorism) of the modified target object POLICY ($composition_name) using the icfs-object-displacement-policy_name-compression $composition_algorism instruction according to the compression ALGORITHM information in the POLICY modification information, to obtain a target object POLICY updated by the compression ALGORITHM; as shown in fig. 2, the processor may modify the created object policy by an object policy modification module.
Correspondingly, the processor can also search and detect whether the updated strategy information of the target object strategy in the database is correct or not by utilizing the strategy name of the target object strategy after obtaining the updated target object strategy; if yes, determining that the modification of the object strategy is completed; if the processor can use the icfs-object-displacement-query-displacement $policy_NAME instruction to check whether the strategy information of the modified target object strategy in the mysql database is correct after the target object strategy is modified; if so, it can be determined that the object policy modification is complete; if the error occurs, the error can be reported, such as the error information is modified by the output object strategy; as shown in fig. 2, the processor may check the polling module through the object policy data to detect whether the policy information of the modified target object policy is correct.
Further, in order to further improve the operation function of the object policy in the distributed system and improve the user experience, the method provided in this embodiment may further include a deletion process of the object policy, for example, the processor may obtain an object policy deletion instruction corresponding to the target object policy after step 103; and deleting the target object strategy according to the object strategy deleting instruction. For example, the processor may delete the target object POLICY ($policy_name) using an object POLICY delete instruction corresponding to the target object POLICY using an icfs-object-displacement $policy_name instruction; as shown in fig. 2, the processor may delete the created object policy by the object policy deletion module.
Correspondingly, the processor can also search and detect whether the target object strategy in the database is successfully deleted by utilizing the strategy name of the target object strategy after deleting the target object strategy; if yes, determining that the object strategy is successfully deleted; if the processor can use the icfs-object-displacement-query-displacement $ policy_name instruction to check whether the deleted target object POLICY does not exist in the mysql database after deleting the target object POLICY; if not, it may be determined that the object policy modification is complete; if the object strategy deletion failure information exists, an error can be reported, such as the object strategy deletion failure information is output; as shown in fig. 2, the processor may detect whether the target object policy is successfully deleted by the object policy data inspection polling module.
Specifically, the processor may delete the target object policy according to the object policy deletion instruction, and delete the target storage pool or data corresponding to the target object policy in the target storage pool. That is, the processor may delete the target storage pool or the data corresponding to the target object policy in the target storage pool after or during deleting the target object policy, so as to complete deleting the data related to the target object policy; if the target storage pool only stores the data corresponding to the target object policy, the processor may directly delete the target storage pool; when the target storage pool stores data corresponding to the target object policy and other object policies, the processor may delete the data corresponding to the target object policy in the target storage pool. As shown in fig. 2, the processor may delete the target storage pool or the data corresponding to the target object policy in the target storage pool by the storage pool deletion module.
For example, the processor may modify the metadata in CONTAINER 1 ($CONTAINER_1) and CONTAINER 2 ($CONTAINER_2) simultaneously by the object policy modification module to complete the modification of the object policy; after modification, querying a DATA table in the mysql database, wherein the DATA table is the modified DATA ($DATA1_CHANGE) of the container 1 and the modified DATA ($DATA2_CHANGE) of the container 2, and otherwise, reporting errors; then, through the object policy deleting module, metadata $DATA1_CHANGE and $DATA2_CHANGE in the container 1 and the container 2 can be deleted, and the object policy deletion is completed; after deletion, carrying out inspection polling on the DATA in the container 1 and the container 2, wherein the $DATA1_CHANGE and the $DATA2_CHANGE do not exist, the functions are normal, the program can return to 1, and the object strategy deletion is determined to be successful; if any data to be deleted is found to exist, the program can return to 0 to carry out error reporting notification.
In the embodiment of the invention, the target storage pool is utilized to create the target object strategy according to the object strategy information in the object strategy creation instruction, so that the storage pool and the strategy algorithm can be specified in the distributed system, and the object strategy is created; and a target bucket corresponding to the target S3 user is created according to the target S3 user and the target object strategy, so that the created object strategy can be used normally, the creation function of the object strategy in the distributed system is improved, the user can create the used object strategy according to the use requirement, and the user experience is improved.
Corresponding to the above method embodiment, the embodiment of the present invention further provides an object policy operation device of a distributed system, where the object policy operation device of the distributed system described below and the object policy operation method of the distributed system described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram of an object policy operation device of a distributed system according to an embodiment of the present invention. The apparatus may include:
the driving determining module 10 is configured to start an object gateway service according to the acquired object policy creation instruction, and determine a target S3 user and a target storage pool;
the object policy creation module 20 is configured to create a target object policy using the target storage pool according to the object policy information in the object policy creation instruction;
the object bucket creation module 30 is configured to create a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy; the object policy of the target bucket is a target object policy.
Alternatively, the driving determination module 10 may include:
the S3 user creation sub-module is used for creating S3 users in the distributed cluster and determining the S3 users as target S3 users;
and the storage pool creation sub-module is used for creating a new storage pool and determining the storage pool as a target storage pool.
Optionally, the apparatus may further include:
the object policy data inspection and polling module is used for searching policy information of the target object policy in the database by using the policy name of the target object policy and detecting whether the policy information is correct or not; if so, a start signal is sent to the object bucket creation module 30.
Optionally, the object policy data inspection polling module may be further configured to detect whether an object policy of the target bucket is a target object policy; if yes, determining that the object strategy creation is completed.
Optionally, the apparatus may further include:
the modification acquisition module is used for acquiring an object strategy modification instruction corresponding to the target object strategy; wherein the object policy modification instruction includes policy modification information;
and the object strategy modification module is used for editing and modifying the target object strategy according to the strategy modification information to obtain the updated target object strategy.
Optionally, the apparatus may further include:
the deleting and acquiring module is used for acquiring an object strategy deleting instruction corresponding to the target object strategy;
and the object strategy deleting module is used for deleting the target object strategy according to the object strategy deleting instruction.
Optionally, the apparatus may further include:
and the storage pool deleting module is used for deleting the target storage pool or the data corresponding to the target object strategy in the target storage pool according to the object strategy deleting instruction.
In this embodiment, according to the object policy creation module 20, according to the object policy information in the object policy creation instruction, a target object policy is created by using a target storage pool, so that the storage pool and a policy algorithm can be specified in the distributed system, and the object policy is created; and the object bucket creation module 30 creates the object bucket corresponding to the target S3 user according to the target S3 user and the target object strategy, so that the created object strategy can be used normally, the creation function of the object strategy in the distributed system is improved, the user can create the used object strategy according to the self use requirement, and the user experience is improved.
Corresponding to the above method embodiment, the embodiment of the present invention further provides an object policy operation device of a distributed system, where the object policy operation device of the distributed system described below and the object policy operation method of the distributed system described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an object policy operation device of a distributed system according to an embodiment of the present invention. The object policy operation device may include:
a memory D1 for storing a computer program;
and the processor D2 is used for implementing the steps of the method for operating the object strategy of the distributed system provided by the embodiment of the method when executing the computer program.
Specifically, referring to fig. 5, fig. 5 is a schematic diagram of a specific structure of an object policy operation device of a distributed system according to an embodiment of the present invention, where the object policy operation device 310 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 322 (e.g., one or more processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) storing application programs 342 or data 344. Wherein the memory 332 and the storage medium 330 may be transitory or persistent. The program stored on the storage medium 330 may include one or more units (not shown), each of which may include a series of instruction operations on the data processing apparatus. Still further, the central processor 322 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the object policy operation device 310.
The object policy operations device 310 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input output interfaces 358, and/or one or more operating systems 341. For example, windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
Wherein the object policy operation device 310 may be a server of the distributed system.
The steps in the above-described object policy operation method of the distributed system may be implemented by the structure of the object policy operation device of the distributed system.
Corresponding to the above method embodiments, the present invention further provides a computer readable storage medium, where a computer readable storage medium described below and an object policy operation method of a distributed system described above may be referred to correspondingly.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of object policy operation of a distributed system as provided by the above embodiments.
The computer readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, which may store program codes.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. The apparatus, device and computer readable storage medium of the embodiments are described more simply because they correspond to the methods of the embodiments, and the description thereof will be given with reference to the method section.
The method, the device, the equipment and the computer readable storage medium for operating the object strategy of the distributed system are described in detail. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
Claims (10)
1. A method of operating an object policy of a distributed system, comprising:
according to the obtained object strategy creation instruction, starting an object gateway service, and determining a target S3 user and a target storage pool;
creating a target object strategy by using the target storage pool according to the object strategy information in the object strategy creation instruction;
creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object strategy; the object strategy of the target bucket is the target object strategy;
the method for creating the object policy according to the acquired object policy creates an instruction, starts an object gateway service, determines a target S3 user and a target storage pool, and includes:
searching or creating the target S3 user according to the S3 user information in the object strategy creation instruction; searching or creating the target storage pool according to the storage pool information in the object strategy creating instruction; the target S3 user is a simple storage service user.
2. The method of claim 1, wherein determining the target S3 user and the target storage pool comprises:
creating S3 users in a distributed cluster, and determining the S3 users as the target S3 users;
a new storage pool is created and the storage pool is determined to be the target storage pool.
3. The method for operating an object policy of a distributed system according to claim 1, wherein before said creating a target bucket corresponding to said target S3 user according to said target S3 user and said target object policy, further comprises:
searching policy information of the target object policy in a database by using the policy name of the target object policy, and detecting whether the policy information is correct or not;
if yes, executing the step of creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object strategy.
4. The method for operating an object policy of a distributed system according to claim 1, wherein after creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy, the method further comprises:
detecting whether the object strategy of the target bucket is the target object strategy;
if yes, determining that the object strategy creation is completed.
5. The method according to any one of claims 1 to 4, wherein after creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy, the method further comprises:
acquiring an object strategy modification instruction corresponding to the target object strategy; wherein the object policy modification instruction includes policy modification information;
editing and modifying the target object strategy according to the strategy modification information to obtain an updated target object strategy.
6. The method according to any one of claims 1 to 4, wherein after creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy, the method further comprises:
acquiring an object strategy deleting instruction corresponding to the target object strategy;
and deleting the target object strategy according to the object strategy deleting instruction.
7. The method according to claim 6, wherein deleting the target object policy according to the object policy deletion instruction comprises:
and deleting the target object strategy according to the object strategy deleting instruction, and deleting the target storage pool or the data corresponding to the target object strategy in the target storage pool.
8. An object policy operation device of a distributed system, comprising:
the driving determining module is used for starting the object gateway service according to the acquired object strategy creating instruction and determining a target S3 user and a target storage pool;
the object policy creation module is used for creating a target object policy by utilizing the target storage pool according to the object policy information in the object policy creation instruction;
the object bucket creation module is used for creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object strategy; the object strategy of the target bucket is the target object strategy;
the driving determining module is specifically configured to search or create the target S3 user according to the S3 user information in the object policy creation instruction; searching or creating the target storage pool according to the storage pool information in the object strategy creating instruction; the target S3 user is a simple storage service user.
9. An object policy operation device of a distributed system, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the object policy operation method of the distributed system according to any one of claims 1 to 7 when executing said computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the object policy operation method of a distributed system according to any of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111006691.2A CN113687920B (en) | 2021-08-30 | 2021-08-30 | Object policy operation method, device and equipment of distributed system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111006691.2A CN113687920B (en) | 2021-08-30 | 2021-08-30 | Object policy operation method, device and equipment of distributed system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113687920A CN113687920A (en) | 2021-11-23 |
| CN113687920B true CN113687920B (en) | 2024-02-13 |
Family
ID=78584145
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111006691.2A Active CN113687920B (en) | 2021-08-30 | 2021-08-30 | Object policy operation method, device and equipment of distributed system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113687920B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114327271B (en) * | 2021-12-28 | 2024-04-26 | 北京百度网讯科技有限公司 | Life cycle management method, device, equipment and storage medium |
| CN114968114B (en) * | 2022-05-31 | 2026-02-27 | 济南浪潮数据技术有限公司 | An object storage method, apparatus, and medium |
| CN115329178A (en) * | 2022-08-31 | 2022-11-11 | 浪潮电子信息产业股份有限公司 | Management software acceleration method, device, equipment and medium |
| CN119766572B (en) * | 2025-01-08 | 2025-10-10 | 浪潮云信息技术股份公司 | Object storage bucket strategy configuration method, device, equipment and medium based on large model |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6205545B1 (en) * | 1998-04-30 | 2001-03-20 | Hewlett-Packard Company | Method and apparatus for using static branch predictions hints with dynamically translated code traces to improve performance |
| CN110209558A (en) * | 2019-04-10 | 2019-09-06 | 星辰天合(北京)数据科技有限公司 | Intelligent operation and maintenance method and device based on software definition storage |
| CN110392876A (en) * | 2017-03-10 | 2019-10-29 | 净睿存储股份有限公司 | Data set and other managed objects are synchronously copied into storage system based on cloud |
| CN111857592A (en) * | 2020-07-21 | 2020-10-30 | 星辰天合(北京)数据科技有限公司 | Data storage method and device based on object storage system, and electronic device |
| CN112783436A (en) * | 2019-11-07 | 2021-05-11 | Netapp股份有限公司 | Synchronized object placement for information lifecycle management |
| CN112799841A (en) * | 2021-01-29 | 2021-05-14 | 烽火通信科技股份有限公司 | Data object storage management method and device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10061790B2 (en) * | 2015-07-07 | 2018-08-28 | SwiftStack, Inc. | Reconciler for a distributed storage system |
| US10715622B2 (en) * | 2018-12-14 | 2020-07-14 | Nutanix, Inc. | Systems and methods for accelerating object stores with distributed caching |
| CN111339054A (en) * | 2020-02-16 | 2020-06-26 | 苏州浪潮智能科技有限公司 | Storage system hierarchical management method, device, equipment and storage medium |
-
2021
- 2021-08-30 CN CN202111006691.2A patent/CN113687920B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6205545B1 (en) * | 1998-04-30 | 2001-03-20 | Hewlett-Packard Company | Method and apparatus for using static branch predictions hints with dynamically translated code traces to improve performance |
| CN110392876A (en) * | 2017-03-10 | 2019-10-29 | 净睿存储股份有限公司 | Data set and other managed objects are synchronously copied into storage system based on cloud |
| CN110209558A (en) * | 2019-04-10 | 2019-09-06 | 星辰天合(北京)数据科技有限公司 | Intelligent operation and maintenance method and device based on software definition storage |
| CN112783436A (en) * | 2019-11-07 | 2021-05-11 | Netapp股份有限公司 | Synchronized object placement for information lifecycle management |
| CN111857592A (en) * | 2020-07-21 | 2020-10-30 | 星辰天合(北京)数据科技有限公司 | Data storage method and device based on object storage system, and electronic device |
| CN112799841A (en) * | 2021-01-29 | 2021-05-14 | 烽火通信科技股份有限公司 | Data object storage management method and device |
Non-Patent Citations (2)
| Title |
|---|
| 基于Ceph的企业云存储系统的设计与实现;谢泓生;中国优秀硕士学位论文全文数据库(第8期);全文 * |
| 策略信息转换与存储的设计及实现;胡艳;朱翠涛;;中南民族大学学报(自然科学版)(01);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113687920A (en) | 2021-11-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113687920A (en) | Object strategy operation method, device and equipment of distributed system | |
| CN107220142B (en) | Method and device for executing data recovery operation | |
| CN114968111A (en) | Data deleting method, device, equipment and computer readable storage medium | |
| CN105426544B (en) | Method and device for monitoring database status | |
| CN112416957A (en) | Data increment updating method and device based on data model layer and computer equipment | |
| CN115576946A (en) | A data processing method, device, storage medium and equipment in Iceberg | |
| CN116719794B (en) | Data processing method, device, electronic equipment, medium and program product | |
| CN115586872B (en) | Container mirror image management method, device, equipment and storage medium | |
| CN116627928B (en) | Database migration methods, apparatus, equipment and storage media | |
| CN115690880A (en) | Secondary aggregation method, system, equipment and storage medium for heterogeneous portrait archive data | |
| CN115543918A (en) | A file snapshot method, system, electronic device and storage medium | |
| CN112000321B (en) | Method and device for realizing undo and/or redo of three-dimensional detection software | |
| CN113760600B (en) | Database backup method, database restoration method and related devices | |
| CN110222046A (en) | Processing method, device, server and the storage medium of table data | |
| CN114282071A (en) | Request processing method, device and equipment based on graph database and storage medium | |
| CN113434938A (en) | BIM (building information modeling) model checking method and device, computer equipment and storage medium | |
| CN114491666A (en) | File checking method and device and computer readable storage medium | |
| CN117112522B (en) | Concurrent process log management method, device, equipment and storage medium | |
| CN117851345A (en) | Storage management method, device and equipment | |
| CN116340318B (en) | Method, device, equipment and storage medium for processing secondary index record | |
| CN116719482A (en) | Data migration method, device and storage medium and electronic equipment | |
| CN114697074A (en) | Authority verification method, electronic device and storage medium | |
| CN114461762A (en) | Archive change identification method, device, equipment and storage medium | |
| CN112181480A (en) | Authority management method and device of version management system | |
| US12158866B2 (en) | Delta merge with location data |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |