Skip to content

Commit

Permalink
feat: change default cluster name to cluster-1 (#2604)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Aug 7, 2023
1 parent 8f6f20b commit c55148b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions manager/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ import (
)

const (
// Default name for scheduler cluster.
DefaultSchedulerClusterName = "scheduler-cluster-1"

// Default name for seed peer cluster.
DefaultSeedPeerClusterName = "seed-peer-cluster-1"
// Default name for the cluster.
DefaultClusterName = "cluster-1"
)

type Database struct {
Expand Down Expand Up @@ -112,7 +109,7 @@ func seed(cfg *config.Config, db *gorm.DB) error {
BaseModel: models.BaseModel{
ID: uint(1),
},
Name: DefaultSchedulerClusterName,
Name: DefaultClusterName,
Config: map[string]any{
"candidate_parent_limit": schedulerconfig.DefaultSchedulerCandidateParentLimit,
"filter_parent_limit": schedulerconfig.DefaultSchedulerFilterParentLimit,
Expand All @@ -139,7 +136,7 @@ func seed(cfg *config.Config, db *gorm.DB) error {
BaseModel: models.BaseModel{
ID: uint(1),
},
Name: DefaultSeedPeerClusterName,
Name: DefaultClusterName,
Config: map[string]any{
"load_limit": schedulerconfig.DefaultSeedPeerConcurrentUploadLimit,
},
Expand Down

0 comments on commit c55148b

Please sign in to comment.