@@ -94,26 +94,10 @@ Creates a new Valkey Cluster with the specified configuration.
9494{
9595 "name" : " my-cluster" ,
9696 "node_instance_type" : " cache.m6g.large" ,
97- "shard_count" : 3 ,
98- "replication_factor" : 2 ,
97+ "shard_count" : 0 ,
98+ "replication_factor" : 0 ,
9999 "enforce_shard_multi_az" : true ,
100- "shard_placements" : [
101- {
102- "shard_index" : 0 ,
103- "availability_zone" : " us-east-1a" ,
104- "replica_availability_zones" : [" us-east-1b" , " us-east-1c" ]
105- },
106- {
107- "shard_index" : 1 ,
108- "availability_zone" : " us-east-1a" ,
109- "replica_availability_zones" : [" us-east-1b" , " us-east-1c" ]
110- },
111- {
112- "shard_index" : 2 ,
113- "availability_zone" : " us-east-1a" ,
114- "replica_availability_zones" : [" us-east-1b" , " us-east-1c" ]
115- }
116- ],
100+ "shard_placements" : [],
117101 "status" : " Creating"
118102}
119103```
@@ -556,15 +540,13 @@ curl -X POST -H "Authorization: <token>" \
556540 " https://api.cache.cell-1-us-east-1-1.prod.a.momentohq.com/ec-cluster"
557541```
558542
559- Create a cluster with explicit shard placements:
560-
561543``` bash
562544curl -X POST -H " Authorization: <token>" \
563545 -H " Content-Type: application/json" \
564546 -d ' {
565547 "name": "my-cluster",
566548 "node_instance_type": "cache.m6g.large",
567- "shard_count": 2 ,
549+ "shard_count": 3 ,
568550 "replication_factor": 2,
569551 "enforce_shard_multi_az": true,
570552 "shard_placements": [
@@ -577,6 +559,11 @@ curl -X POST -H "Authorization: <token>" \
577559 "shard_index": 1,
578560 "availability_zone": "us-east-1a",
579561 "replica_availability_zones": ["us-east-1b", "us-east-1c"]
562+ },
563+ {
564+ "shard_index": 2,
565+ "availability_zone": "us-east-1a",
566+ "replica_availability_zones": ["us-east-1b", "us-east-1c"]
580567 }
581568 ]
582569 }' \
0 commit comments