# Schrodinger Configuration.

# host is host to listen
host = "172.16.30.12"

# port is which port to used
port = 60000

# log-file is which log file write to
log-file = ""

[storage]

# driver is the type of storage
driver = "mysql"

# datasource for storage
datasource = "root:@(localhost:4000)/schrodinger"

# max idle connects
max-idle-conns = 256

[kube-config]

# absolute path to the kubeconfig file
config-path = "/home/pingcap/.kube/config"

# the path of charts file
chart-path = "./charts"

# the node port of tiller service
tiller-port = 30790

# defines the namespace for tidb-operator
namespace = "pingcap"

[controller]
# monitor-interval for all controller, in seconds
monitor-interval = "10s"

[experiment]
# sync-interval for experiment
sync-interval = "300s"

[cat]
# tidb-lease defines the lease of tidb
tidb-lease = 5

# monitor-reserve-days defines the retention time of the monitoring data for tidb
monitor-reserve-days = 5

# retention-duration defines the duration this object and all its PVs will be
# retention after we gracefully delete the cluster
retention-duration = "2h"

# agent-port defines agent port for cluster
agent-port = 8350

# pd-service-port defines pd service port
pd-service-port    = 2379

# tidb-service-port defines tidb service port
tidb-service-port  = 4000

# tikv-service-port defines tikv service pod
tikv-service-port  = 20160

# data-dir defines data dir for tikv、pd
data-dir = "/var/lib/tidb"

# config-map defines config map to generates tidb/tikv/pd's toml
config-map = "tidb-cluster-config-template"

[test]
# sync-interval for test
sync-interval = "300s"

# expirer for test
expirer = "168h"

# retry-times for sync
retry-times = 5

# log-lines define log lines
log-lines = 500

# public-node defines public node can be access from office
public-node = "172.16.30.11"

[agent]
# restart-limit is pod restart limit
restart-limit = 0

# restart-interval is pod restart interval
restart-interval = 1

# timeout is process timeout
timeout = "480h"

[daemon]
port = 8888

[image]
# dockerhub-prefix defines dockerhub images prefix
dockerhub-prefix = "hub.pingcap.net/schrodinger"

# prometheus defines the docker image of prometheus
prometheus = "uhub.ucloud.cn/pingcap/prometheus:v2.0.0"

# grafana defines the docker image of grafana
grafana = "uhub.ucloud.cn/pingcap/grafana:4.6.3"

# dashboard defines the docker image of dashboard
dashboard = "pingcap/tidb-dashboard-installer:v2.0.0"

# pushgateway defines the docker image of pushgateway
pushgateway = "uhub.ucloud.cn/pingcap/pushgateway:v0.3.1"

[build]
# Max retry times for build task
max-retry = 3

# Max build jobs in running in queue
request-buffer-size = 10

[label]
# idc-key defines for idc label
idc-key = "idc"

[notifiers]
[notifiers.time]
# Hours before destroying an abnormal but unreleased experiment (unit: hour)
destroy_threshold = 72

# Interval between every two polling loop (unit: second)
loop_interval = 5
[notifiers.slack]
# default slack channel to send notification 
channel = "#stability-alert"

# default slack username 
username = "schrodinger_bot"

# slack token 
token = "xoxb-338269940566-EqbYEgr8kg007mVEqWdY4gwT"

[util]
# sql-retry defines how many times sql retry
sql-retry = 3

# download-add is download addr prefix
download-addr-prefix = "http://pingcap-dev.hk.ufileos.com"

# default-idc defines which idc used as default
default-idc = "idc"

# page-size is default page size each page
page-size = 15

# github-monitor-interval is default monitor interval
github-monitor-interval = "10m"

# manager domain is manager domain
manager-domain = "schrodinger.pingcap.net"

[jira]
# default jira username
username = "sre-bot@pingcap.com"

# jira password
password = "N8^^y4#8Q0"

# the adddress of jira service
base-url = "https://internal.pingcap.net/jira/"

# default jira project to send report
project = "TRR"

# default type of jira issue
IssueType = "Schrodinger Test Record"

[log]
# log service
[log.kibana]

# kibana address
address = "http://172.16.4.4:30750"

# schrodinger index id in elasticsearch.
index = "d575b240-bdc8-11e9-a168-b9df9becdde7"

[log.elasticsearch]

# elasticsearch client address
address = "http://10.233.61.3:9200"

# schrodinger index in elasticsearch.
index = "kubernetes_cluster-*"