Class: Google::Cloud::Redis::Cluster::V1::ZoneDistributionConfig
- Inherits:
-
Object
- Object
- Google::Cloud::Redis::Cluster::V1::ZoneDistributionConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/redis/cluster/v1/cloud_redis_cluster.rb
Overview
Zone distribution config for allocation of cluster resources.
Defined Under Namespace
Modules: ZoneDistributionMode
Instance Attribute Summary collapse
-
#mode ⇒ ::Google::Cloud::Redis::Cluster::V1::ZoneDistributionConfig::ZoneDistributionMode
Optional.
-
#zone ⇒ ::String
Optional.
Instance Attribute Details
#mode ⇒ ::Google::Cloud::Redis::Cluster::V1::ZoneDistributionConfig::ZoneDistributionMode
Returns Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 |
# File 'proto_docs/google/cloud/redis/cluster/v1/cloud_redis_cluster.rb', line 1169 class ZoneDistributionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines various modes of zone distribution. module ZoneDistributionMode # Not Set. Default: MULTI_ZONE ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0 # Distribute all resources across 3 zones picked at random, within the # region. MULTI_ZONE = 1 # Distribute all resources in a single zone. The zone field must be # specified, when this mode is selected. SINGLE_ZONE = 2 end end |
#zone ⇒ ::String
Returns Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 |
# File 'proto_docs/google/cloud/redis/cluster/v1/cloud_redis_cluster.rb', line 1169 class ZoneDistributionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Defines various modes of zone distribution. module ZoneDistributionMode # Not Set. Default: MULTI_ZONE ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0 # Distribute all resources across 3 zones picked at random, within the # region. MULTI_ZONE = 1 # Distribute all resources in a single zone. The zone field must be # specified, when this mode is selected. SINGLE_ZONE = 2 end end |