package premium

import (
	pb "github.com/tidbcloud/config-center/proto/config_center"
	"github.com/tidbcloud/config-center/templategen"
)

var specPD = templategen.Spec{
	ConfigType: pb.SHARED_POOL_CONFIG_PD,
	Name:       "system template of premium pd",
	Base: templategen.MustTOML(`
[replication]
location-labels = ["region", "zone", "host"]

[schedule]
patrol-region-interval = "100ms"
max-merge-region-size = 100

[security]
redact-info-log = true

[controller.request-unit]
write-base-cost=0.5
write-per-batch-base-cost=0.5
write-cost-per-byte=0.00048828`),
}

var specPDScheduling = templategen.Spec{
	ConfigType: pb.SHARED_POOL_CONFIG_PD_SCHEDULING,
	Name:       "system template of premium pd scheduling",
	Base: templategen.MustTOML(`
[log]

[log.file]
max-backups = 3

[security]
redact-info-log = true
`),
}

var specPDTSO = templategen.Spec{
	ConfigType: pb.SHARED_POOL_CONFIG_PD_TSO,
	Name:       "system template of premium pd tso",
	Base: templategen.MustTOML(`
[log]

[log.file]
max-backups = 3

[security]
redact-info-log = true
`),
}
