Creates a container with the specified placement policy.
Arguments:
Execution context
Method arguments, which includes:
Container placement policy
Container attributes (optional)
Result wait parameters (optional)
Session token (optional)
Additional headers (optional)
Placement Policy includes:
Unique flag
Backup factor
Filters
Selectors
Replicas
Placement Policies are used to determine on which node(s) of the system an object will be stored.
One way to represent a placement policy is to define a sequence of operations that create a selection based on node attributes.
Three main operations:
FILTER: Filters a set of nodes based on their attributes. The operation takes a set of nodes as input and returns a subset of these nodes. It is useful for selecting nodes that have (or do not have) specific attributes.
SELECT: Determines how many and which nodes from the subset previously obtained through filtering will be available to create replica groups for storing objects.
REP: Defines how many copies of an object need to be stored. A placement policy can contain multiple replication operations, each representing a replica group, i.e., a group of objects associated with the same replica.
The internal implementation verifies that the container has been created using periodic requests and the provided readiness wait parameters.
Note
After creating the container, it is also necessary to configure the access policy.
For more detailed information, refer to the APE section.