|
| 1 | +--- |
| 2 | +subcategory: "TencentDB for Redis(crs)" |
| 3 | +layout: "tencentcloud" |
| 4 | +page_title: "TencentCloud: tencentcloud_redis_connection_config" |
| 5 | +sidebar_current: "docs-tencentcloud-resource-redis_connection_config" |
| 6 | +description: |- |
| 7 | + Provides a resource to create a redis connection_config |
| 8 | +--- |
| 9 | + |
| 10 | +# tencentcloud_redis_connection_config |
| 11 | + |
| 12 | +Provides a resource to create a redis connection_config |
| 13 | + |
| 14 | +## Example Usage |
| 15 | + |
| 16 | +```hcl |
| 17 | +resource "tencentcloud_redis_connection_config" "connection_config" { |
| 18 | + instance_id = "crs-fhm9fnv1" |
| 19 | + client_limit = "20000" |
| 20 | + add_bandwidth = "30" |
| 21 | +} |
| 22 | +``` |
| 23 | + |
| 24 | +## Argument Reference |
| 25 | + |
| 26 | +The following arguments are supported: |
| 27 | + |
| 28 | +* `instance_id` - (Required, String) The ID of instance. |
| 29 | +* `add_bandwidth` - (Optional, Int) Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1. |
| 30 | +* `client_limit` - (Optional, Int) The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3). |
| 31 | + |
| 32 | +## Attributes Reference |
| 33 | + |
| 34 | +In addition to all arguments above, the following attributes are exported: |
| 35 | + |
| 36 | +* `id` - ID of the resource. |
| 37 | +* `base_bandwidth` - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased. |
| 38 | +* `max_add_bandwidth` - Additional bandwidth is capped. |
| 39 | +* `min_add_bandwidth` - Additional bandwidth sets the lower limit. |
| 40 | +* `total_bandwidth` - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s. |
| 41 | + |
| 42 | + |
| 43 | +## Import |
| 44 | + |
| 45 | +Redis connectionConfig can be imported, e.g. |
| 46 | + |
| 47 | +``` |
| 48 | +$ terraform import tencentcloud_redis_connection_config.connection_config instance_id |
| 49 | +``` |
| 50 | + |
0 commit comments