CN113687920A - Object strategy operation method, device and equipment of distributed system - Google Patents

Object strategy operation method, device and equipment of distributed system Download PDF

Info

Publication number
CN113687920A
CN113687920A CN202111006691.2A CN202111006691A CN113687920A CN 113687920 A CN113687920 A CN 113687920A CN 202111006691 A CN202111006691 A CN 202111006691A CN 113687920 A CN113687920 A CN 113687920A
Authority
CN
China
Prior art keywords
target
strategy
policy
user
creating
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.)
Granted
Application number
CN202111006691.2A
Other languages
Chinese (zh)
Other versions
CN113687920B (en
Inventor
李佳颖
邓灿
李楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202111006691.2A priority Critical patent/CN113687920B/en
Publication of CN113687920A publication Critical patent/CN113687920A/en
Application granted granted Critical
Publication of CN113687920B publication Critical patent/CN113687920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/465Distributed object oriented systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring 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, a device, equipment and a computer readable storage medium of a distributed system, 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 creating instruction; according to the target S3 user and the target object strategy, a target bucket corresponding to the target S3 user is created; the object strategy of the target bucket is a target object strategy; according to the method and the device, the target object strategy is created by using the target storage pool according to the object strategy information in the object strategy creating 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

Object strategy operation method, device and equipment of distributed system
Technical Field
The present invention relates to the field of distributed system technologies, 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 applied in IT (internet technology) enterprises, cloud computing, big data, virtualization and other fields.
In the prior art, only the operation function of a default object policy is provided in a distributed system, the operation control cannot be performed on an object policy of a designated storage pool and a designated compression algorithm, and the increasingly high use requirements of users in various fields cannot be met, so how to increase the operation function of the object policy in the distributed system, improve the robustness, usability and function richness of the distributed system, and improve the user experience is a problem which needs to be solved urgently 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 the user experience.
In order to solve the above technical problem, the present invention provides an object policy operation method for a distributed system, including:
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 creating instruction;
creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy; wherein the object policy of the target bucket is the target object policy.
Optionally, the determining a target S3 user and a target storage pool includes:
creating S3 users in a distributed cluster and determining the S3 user as the target S3 user;
a new storage pool is created and the storage pool is determined to be the target storage pool.
Optionally, before 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 the strategy information of the target object strategy in a database by using the strategy name of the target object strategy, and detecting whether the strategy information is correct;
if yes, executing the step of creating the target bucket corresponding to the target S3 user according to the target S3 user and the target object policy.
Optionally, after the target bucket corresponding to the target S3 user is created according to the target S3 user and the target object policy, the method further includes:
detecting whether the object policy of the target bucket is the target object policy;
if so, determining that the object strategy creation is completed.
Optionally, after the target bucket corresponding to the target S3 user is created 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;
and editing and modifying the target object strategy according to the strategy modification information to obtain an updated target object strategy.
Optionally, after the target bucket corresponding to the target S3 user is created 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 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:
a driving determining module, configured to start an object gateway service according to the obtained object policy creating instruction, and determine a target S3 user and a target storage pool;
an object strategy creating module, configured to create a target object strategy using the target storage pool according to the object strategy information in the object strategy creating instruction;
an object bucket creation module for creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy; wherein 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 object policy operation method of the distributed system as described above when executing the computer program.
Furthermore, the present invention also provides a computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the object policy operation method of the 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 creating instruction; according to the target S3 user and the target object strategy, a target bucket corresponding to the target S3 user is created; the object strategy of the target bucket is a target object strategy;
therefore, the object strategy is created by utilizing the target storage pool according to the object strategy information in the object strategy creating instruction, 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 of the user, 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 used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
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 control process diagram 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 operation apparatus 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 structural diagram of an object policy operation device of a distributed system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an object policy operation method of a distributed system according to an embodiment of the present invention. The method can comprise the following steps:
step 101: according to the acquired object policy creation instruction, the object gateway service is started, and the target S3 user and the target storage pool are determined.
The object policy creating instruction in this step may be an instruction for creating an object policy (i.e., a target object policy) in the distributed system; in this step, a target S3(Simple Storage Service) user may be an S3 user corresponding to the object policy creation instruction, that is, an 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, the specific manner in which the processor in this step creates the instruction according to the obtained object policy, starts the object gateway service, and determines the target S3 user and the target storage pool can be set by the designer according to the practical scene and the user requirement, for example, in this step, the processor can create the instruction according to the obtained object policy, and start the object gateway service using the icfs-object-rgw-start-node all instruction; as shown in fig. 2, the processor may initiate the object gateway service through the object gateway module.
The processor may find or create a target S3 user based on the S3 user information in the object policy creation instruction; for example, the processor may create a new S3 USER (i.e., the target S3 USER) in the distributed cluster using the icfs-object-USER-create-USER-UID $ NAME $ S3_ USER _ NAME-tenane $ S3_ tennat _ NAME instruction, based on the UID (USER identification) in the S3 USER information, the S3 username, and the S3 TENANT NAME; as shown in fig. 2, the processor may create a new S3 user (i.e., the target S3 user) with the corresponding S3 tenant through the S3 user creation module; correspondingly, the processor may further store the S3 TENANT NAME (e.g., $ S3_ TENANT _ NAME) corresponding to the target S3 user to facilitate subsequent lookup of the target bucket and target object policy usage of the target bucket; correspondingly, in this step, the processor may also determine the S3 user corresponding to the S3 user information in the searched 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, a processor may create a new storage POOL (i.e., a target storage POOL) using the icfs-admin-POOL- -create-POOL $ POOL- -NAME-pgnum 2048-REPLICATED 3-weight-threshold 0.8-minSize 1-faultdomain hdd- -1: host instruction; as shown in FIG. 2, the processor may create a new storage pool (i.e., the target storage pool) via the storage pool creation module; correspondingly, the processor may also store the memory POOL NAME (e.g., $ POOL _ NAME) of the target memory POOL to facilitate subsequent use; correspondingly, in this step, the processor may also determine the 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 creating instruction.
It is understood that in this step, the processor may create a target object policy 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 use the icfs-object-placement-create-place-POLICY-NAME-date-POOL-DATA-POOL-NAME-INDEX-POOL-NAME-CLASS-POOL-NAME-compression-CLASS-NAME instruction to create a new object POLICY ($ POOL-NAME), i.e., a target object POLICY, using 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 for 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; if yes, go to step 103. That is, the processor may, after creating the target object POLICY, use the POLICY NAME ($ POLICY _ NAME) of the created target object POLICY to query POLICY information of the target object POLICY in a database, such as mysql (a relational database management system) database, to detect whether the created target object POLICY is correct, such as whether the queried POLICY information corresponds to the object POLICY information in the object POLICY creation instruction; so that step 103 is entered when the created target object policy is correct. For example, the processor may use the icfs-object-placement-query-placement $ 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 object strategy is wrong, the error can be reported, such as the error information created by the output object strategy; as shown in fig. 2, the processor may detect whether the policy information of the created target object policy is correct through the object policy data polling query module.
Step 103: according to the target S3 user and the target object strategy, a target bucket corresponding to the target S3 user is created; and the object strategy of the target bucket is a target object strategy.
It is 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 it is ensured that the created object policy can be used normally. For example, a 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-search _ KEY-OBJECT-polarity $ 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 so, 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 created BUCKET NAME of the 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 so, determining that the object strategy creation is completed. For example, the processor may query whether the object policy of the target BUCKET is the target object policy using the icfs-object-BUCKET-query-policy-NAME $ BUCKET _ NAME-access _ KEY $ ACESS _ KEY-SECRET-KEY $ SECRET _ KEY instruction; if so, object policy creation may be completed such that the user may use the created object policy (i.e., target object policy) through the target bucket with the S3 tenant corresponding to the target S3 user; if not, error reporting can be carried out, 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 polling query 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 by 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; the object strategy modification instruction comprises strategy modification information; and 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 ($ COMPRESS _ ALGORITHM) of the modified target object POLICY ($ COMPRESS _ NAME) according to the compression ALGORITHM information in the POLICY modification information, using an icfs-object-placement-modification-placement $ POLICY _ NAME-compression $ ALGORITHM _ ALGORITHM instruction, to obtain a target object POLICY after the compression ALGORITHM is updated; as shown in FIG. 2, the processor may modify the created object policy through an object policy modification module.
Correspondingly, the processor can also find and detect whether the strategy information of the updated target object strategy in the database is correct or not by using the strategy name of the target object strategy after the updated target object strategy is obtained; if so, determining that the object strategy modification is completed; if the processor can use the icfs-object-placement-query-placement $ 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 may be determined that the object policy modification is complete; if the error occurs, the error can be reported, for example, the error information is modified by the output object strategy; as shown in fig. 2, the processor may detect whether the policy information of the modified target object policy is correct through the object policy data polling query 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 by 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 the icfs-object-placement-delete-placement $ POLICY _ NAME instruction with the object POLICY delete instruction corresponding to the target object POLICY; as shown in fig. 2, the processor may delete the created object policy through the object policy deletion module.
Correspondingly, the processor can also find and detect whether the target object strategy in the database is successfully deleted by using the strategy name of the target object strategy after the target object strategy is deleted; if so, determining that the object strategy is successfully deleted; if the processor can use the icfs-object-placement-query-placement $ POLICY _ NAME instruction after deleting the target object strategy, checking whether the strategy information of the deleted target object strategy does not exist in the mysql database; if not, it may be determined that the object policy modification is complete; if yes, error reporting can be carried out, such as failure information of deletion of the object strategy is output; as shown in fig. 2, the processor may detect whether the target object policy is successfully deleted through the object policy data polling query 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, after or during the deletion of the target object policy, the processor may delete the target storage pool or the data corresponding to the target object policy in the target storage pool to complete the deletion of 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 the target object policy and the data corresponding to the 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 data corresponding to the target storage pool or the target object policy in the target storage pool via the storage pool deletion module.
For example, the processor may modify the object policy by modifying the metadata in the CONTAINER 1($ contact _1) and the CONTAINER 2($ contact _2) through the object policy modification module; after modification, querying a DATA table in the mysql database, wherein the DATA table is the modified DATA of the container 1($ DATA1_ CHANGE) and the DATA of the container 2($ DATA2_ CHANGE), otherwise, an error is reported; then, the metadata $ DATA1_ CHANGE and $ DATA2_ CHANGE in the container 1 and the container 2 can be deleted through the object policy deletion module, and the deletion of the object policy is completed; after the deletion, DATA in the container 1 and the container 2 are subjected to polling query, no $ DATA1_ CHANGE or $ DATA2_ CHANGE exists, the function is normal, the program can return to 1, and the object strategy is determined to be successfully deleted; if any data to be deleted still exists, the program may return to 0 to notify an error.
In this embodiment, the object policy is created by using the target storage pool according to the object policy information in the object policy creation instruction, so that the storage pool and the policy algorithm can be specified in the distributed system, and the object policy 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 of the user, and the user experience is improved.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an object policy operating apparatus of a distributed system, and the object policy operating apparatus of a distributed system described below and the object policy operating method of a distributed system described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram illustrating an object policy operation apparatus of a distributed system according to an embodiment of the present invention. The apparatus may include:
a drive determining module 10, configured to start an object gateway service according to the obtained object policy creating instruction, and determine a target S3 user and a target storage pool;
an object policy creating module 20, configured to create a target object policy using the target storage pool according to the object policy information in the object policy creating instruction;
an object bucket creation module 30, configured to create a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy; and the object strategy of the target bucket is a target object strategy.
Alternatively, the driving determination module 10 may include:
an S3 user creating sub-module for creating S3 users in the distributed cluster and determining S3 users as target S3 users;
and the storage pool creating submodule 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 strategy data inspection query module is used for searching the strategy information of the target object strategy in the database by using the strategy name of the target object strategy and detecting whether the strategy 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 query module may be further configured to detect whether the object policy of the target bucket is a target object policy; if so, 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; the object strategy modification instruction comprises strategy 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 an updated target object strategy.
Optionally, the apparatus may further include:
the deletion acquisition module is used for acquiring an object strategy deletion 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, the object policy creating module 20 in the embodiment of the present invention creates the target object policy using the target storage pool according to the object policy information in the object policy creating instruction, and can specify the storage pool and the policy algorithm in the distributed system to create the object policy; and the object bucket creating module 30 creates the target 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, and the creating function of the object strategy in the distributed system is improved, so that the user can create and use the object strategy according to the use requirement of the user, and the user experience is improved.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an object policy operating device of a distributed system, and the object policy operating device of the distributed system described below and the object policy operating 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 operating 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 computer programs;
a processor D2, configured to implement the steps of the object policy operation method of the distributed system provided by the above method embodiments when executing the computer program.
Specifically, referring to fig. 5, fig. 5 is a schematic diagram illustrating a specific structure of an object policy operating device of a distributed system according to an embodiment of the present invention, where the object policy operating device 310 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 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 an application 342 or data 344. Memory 332 and storage media 330 may be, among other things, transient storage or persistent storage. 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 for 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 handling device 310.
The object policy operation device 310 may also include one or more power sources 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. Such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The object policy operation device 310 may be a server of a distributed system.
The steps in the object policy operation method of the distributed system described above may be implemented by the structure of the object policy operation device of the distributed system.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium, and 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 being executed by a processor, carries out the steps of the object policy operation method of a distributed system as provided in 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 (RAM), a magnetic disk or an optical disk, and various computer readable storage media capable of storing program codes.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The object policy operation method, device, equipment and computer readable storage medium of a distributed system provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. An object policy operation method for a distributed system, comprising:
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 creating instruction;
creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy; wherein the object policy of the target bucket is the target object policy.
2. The object policy operation method of distributed system according to claim 1, wherein said determining a target S3 user and a target storage pool comprises:
creating S3 users in a distributed cluster and determining the S3 user as the target S3 user;
a new storage pool is created and the storage pool is determined to be the target storage pool.
3. The object policy operation method of the distributed system as claimed in claim 1, wherein before creating the target bucket corresponding to the target S3 user according to the target S3 user and the target object policy, further comprising:
searching the strategy information of the target object strategy in a database by using the strategy name of the target object strategy, and detecting whether the strategy information is correct;
if yes, executing the step of creating the target bucket corresponding to the target S3 user according to the target S3 user and the target object policy.
4. The object policy operation method of distributed system according to claim 1, further comprising, after creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy:
detecting whether the object policy of the target bucket is the target object policy;
if so, determining that the object strategy creation is completed.
5. The object policy operation method for distributed system according to any one of claims 1 to 4, further comprising, after creating the target bucket corresponding to the target S3 user according to the target S3 user and the target object policy:
acquiring an object strategy modification instruction corresponding to the target object strategy; wherein the object policy modification instruction includes policy modification information;
and editing and modifying the target object strategy according to the strategy modification information to obtain an updated target object strategy.
6. The object policy operation method for distributed system according to any one of claims 1 to 4, further comprising, after creating the target bucket corresponding to the target S3 user according to the target S3 user and the target object policy:
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 object policy operation method of the distributed system according to claim 6, wherein deleting the target object policy according to the object policy deletion instruction includes:
and deleting the target object strategy according to the object strategy deleting instruction, and deleting the target storage pool or data corresponding to the target object strategy in the target storage pool.
8. An object policy operation apparatus for a distributed system, comprising:
a driving determining module, configured to start an object gateway service according to the obtained object policy creating instruction, and determine a target S3 user and a target storage pool;
an object strategy creating module, configured to create a target object strategy using the target storage pool according to the object strategy information in the object strategy creating instruction;
an object bucket creation module for creating a target bucket corresponding to the target S3 user according to the target S3 user and the target object policy; wherein the object policy of the target bucket is the target object policy.
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 a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the object policy operation method of the distributed system according to any one of claims 1 to 7.
CN202111006691.2A 2021-08-30 2021-08-30 Object policy operation method, device and equipment of distributed system Active CN113687920B (en)

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 true CN113687920A (en) 2021-11-23
CN113687920B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327271A (en) * 2021-12-28 2022-04-12 北京百度网讯科技有限公司 Life cycle management method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
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
US20170011078A1 (en) * 2015-07-07 2017-01-12 SwiftStack, Inc. Reconciler for a Distributed Storage System
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
US20200195743A1 (en) * 2018-12-14 2020-06-18 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
CN111857592A (en) * 2020-07-21 2020-10-30 星辰天合(北京)数据科技有限公司 Data storage method and device based on object storage system and electronic equipment
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
US20170011078A1 (en) * 2015-07-07 2017-01-12 SwiftStack, Inc. Reconciler for a Distributed Storage System
CN110392876A (en) * 2017-03-10 2019-10-29 净睿存储股份有限公司 Data set and other managed objects are synchronously copied into storage system based on cloud
US20200195743A1 (en) * 2018-12-14 2020-06-18 Nutanix, Inc. Systems and methods for accelerating object stores with distributed caching
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
CN111339054A (en) * 2020-02-16 2020-06-26 苏州浪潮智能科技有限公司 Storage system hierarchical management method, device, equipment and storage medium
CN111857592A (en) * 2020-07-21 2020-10-30 星辰天合(北京)数据科技有限公司 Data storage method and device based on object storage system and electronic equipment
CN112799841A (en) * 2021-01-29 2021-05-14 烽火通信科技股份有限公司 Data object storage management method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
胡艳;朱翠涛;: "策略信息转换与存储的设计及实现", 中南民族大学学报(自然科学版), no. 01 *
谢泓生: "基于Ceph的企业云存储***的设计与实现", 中国优秀硕士学位论文全文数据库, no. 8 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327271A (en) * 2021-12-28 2022-04-12 北京百度网讯科技有限公司 Life cycle management method, device, equipment and storage medium
CN114327271B (en) * 2021-12-28 2024-04-26 北京百度网讯科技有限公司 Lifecycle management method, apparatus, device and storage medium

Also Published As

Publication number Publication date
CN113687920B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
US8442951B1 (en) Processing archive content based on hierarchical classification levels
TW201737126A (en) Method and device for executing data recovery operation
US9514176B2 (en) Database update notification method
CN112579307A (en) Physical lock resource allocation detection method and device and electronic equipment
CN112416710A (en) User operation recording method and device, electronic equipment and storage medium
CN115114232A (en) Method, device and medium for enumerating historical version objects
CN113687920B (en) Object policy operation method, device and equipment of distributed system
CN112306957A (en) Method and device for acquiring index node number, computing equipment and storage medium
CN109388651B (en) Data processing method and device
CN105426544B (en) Method and device for monitoring database state
EP3108400B1 (en) Virus signature matching method and apparatus
CN107784043B (en) Monitoring method, device and system for data table of data warehouse
CN117112522A (en) Concurrent process log management method, device, equipment and storage medium
CN114756333B (en) Mirror image processing method and device, electronic equipment and readable medium
CN116719794A (en) Data processing method, device, electronic equipment, medium and program product
CN111367869A (en) Mirror image file processing method and device, storage medium and electronic equipment
CN115586872A (en) Container mirror image management method, device, equipment and storage medium
CN115543918A (en) File snapshot method, system, electronic equipment and storage medium
US20150347402A1 (en) System and method for enabling a client system to generate file system operations on a file system data set using a virtual namespace
CN113760600B (en) Database backup method, database restoration method and related devices
CN111563064B (en) File operation method, system, device and readable storage medium
CN114861003A (en) Object enumeration method, device and medium under specified directory
CN114461762A (en) Archive change identification method, device, equipment and storage medium
CN114416689A (en) Data migration method and device, computer equipment and storage medium
CN113656378A (en) Server management method, device and medium

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