Setting a zone group
Set a zone group by creating a JSON object and specifying minimally the required settings.
-
name: The name of the zone group. Required. -
api_name: The API name for the zone group. Optional. -
is_master: Determines if the zone group is the master zone group. Required.Note: You can only have one master zone group. -
endpoints: A list of all the endpoints in the zone group. For example, you may use multiple domain names to refer to the same zone group. Remember to escape the forward slashes (/). You may also specify a port (fqdn:port) for each endpoint. Optional. -
hostnames: A list of all the hostnames in the zone group. For example, you may use multiple domain names to refer to the same zone group. Optional. Thergw dns namesetting will automatically be included in this list. You should restart the gateway daemon(s) after changing this setting. -
master_zone: The master zone for the zone group. Optional. Uses the default zone if not specified.Note: You can only have one master zone per zone group. -
zones: A list of all zones within the zone group. Each zone has a name (required), a list of endpoints (optional), and whether or not the gateway will log metadata and data operations (false by default). -
placement_targets: A list of placement targets (optional). Each placement target contains a name (required) for the placement target and a list of tags (optional) so that only users with the tag can use the placement target (i.e., the user’splacement_tagsfield in the user info). -
default_placement: The default placement target for the object index and object data. Set todefault-placementby default. You may also set a per-user default placement in the user info for each user.
To set a zone group, create a JSON object consisting of the required fields, save the object to a
file, for example, zonegroup.json; then, run the following command:
Example
[ceph: root@host01 /]# radosgw-admin zonegroup set --infile zonegroup.json
Where zonegroup.json is the JSON file you created.
default zone group is_master setting is
true by default. If you create a new zone group and want to make it the master zone
group, you must either set the default zone group is_master
setting to false, or delete the default zone group.Finally, update the period:
Example
[ceph: root@host01 /]# radosgw-admin period update --commit