Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions mock-server/pkg/byoc_project/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func CreateServerlessCluster(c *gin.Context) {

log.Printf("[CreateServerlessCluster request]: %+v", request)

clusterId := "sl01-" + uuid.New().String()[:15]
clusterId := "in05-" + uuid.New().String()[:15]
connectAddress := fmt.Sprintf("https://%s.%s.vectordb-uat3.zillizcloud.com:19540", clusterId, request.RegionId)

cluster := &ServerlessClusterResponse{
Expand Down Expand Up @@ -112,9 +112,9 @@ func CreateServerlessCluster(c *gin.Context) {
SnapshotNumber: cluster.SnapshotNumber,
CreateProgress: cluster.CreateProgress,
Labels: cluster.Labels,
CuType: "Serverless",
CuType: "",
CuSize: 0,
Replica: 0,
Replica: 1,
}
clusterStore.Set(clusterId, dedicatedCluster)

Expand Down Expand Up @@ -143,7 +143,7 @@ func CreateFreeCluster(c *gin.Context) {

log.Printf("[CreateFreeCluster request]: %+v", request)

clusterId := "fr01-" + uuid.New().String()[:15]
clusterId := "in03-" + uuid.New().String()[:15]
connectAddress := fmt.Sprintf("https://%s.%s.vectordb-uat3.zillizcloud.com:19540", clusterId, request.RegionId)

cluster := &FreeClusterResponse{
Expand All @@ -152,7 +152,7 @@ func CreateFreeCluster(c *gin.Context) {
ProjectId: request.ProjectId,
Description: request.Description,
RegionId: request.RegionId,
Plan: "Free",
Plan: "Serverless",
ConnectAddress: connectAddress,
PrivateLinkAddress: "",
CreateTime: time.Now().Format(time.RFC3339),
Expand Down Expand Up @@ -180,9 +180,9 @@ func CreateFreeCluster(c *gin.Context) {
SnapshotNumber: cluster.SnapshotNumber,
CreateProgress: cluster.CreateProgress,
Labels: cluster.Labels,
CuType: "Free",
CuType: "",
CuSize: 0,
Replica: 0,
Replica: 1,
}
clusterStore.Set(clusterId, dedicatedCluster)

Expand Down
Loading