Skip to content

Commit cb062d5

Browse files
Rename
1 parent 33fccf7 commit cb062d5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

conf/freno.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"RaftBind": "127.0.0.1:10008",
44
"RaftDataDir": "/tmp",
55
"RaftNodes": [],
6-
"VitessHTTPTimeoutSecs": 5
6+
"VitessAPITimeoutSecs": 5
77
}

pkg/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ type ConfigurationSettings struct {
108108
BackendMySQLPassword string
109109
MemcacheServers []string // if given, freno will report to aggregated values to given memcache
110110
MemcachePath string // use as prefix to metric path in memcache key, e.g. if `MemcachePath` is "myprefix" the key would be "myprefix/mysql/maincluster". Default: "freno"
111-
VitessHTTPTimeoutSecs int // timeout for Vitess vtctld HTTP API
111+
VitessAPITimeoutSecs int // timeout for Vitess vtctld HTTP API
112112
Stores StoresSettings
113113
}
114114

@@ -124,7 +124,7 @@ func newConfigurationSettings() *ConfigurationSettings {
124124
BackendMySQLPort: 3306,
125125
MemcacheServers: []string{},
126126
MemcachePath: "freno",
127-
VitessHTTPTimeoutSecs: 5,
127+
VitessAPITimeoutSecs: 5,
128128
//Debug: false,
129129
//ListenSocket: "",
130130
//AnExampleListOfStrings: []string{"*"},

pkg/throttle/throttler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func (throttler *Throttler) refreshMySQLInventory() error {
323323
log.Debugf("getting vitess data from %s", clusterSettings.VitessSettings.API)
324324
keyspace := clusterSettings.VitessSettings.Keyspace
325325
shard := clusterSettings.VitessSettings.Shard
326-
timeout := time.Duration(config.Settings().VitessHTTPTimeoutSecs) * time.Second
326+
timeout := time.Duration(config.Settings().VitessAPITimeoutSecs) * time.Second
327327
tablets, err := vitess.NewManager(timeout).ParseTablets(clusterSettings.VitessSettings.API, keyspace, shard)
328328
if err != nil {
329329
return log.Errorf("Unable to get vitess hosts from %s, %s/%s: %+v", clusterSettings.VitessSettings.API, keyspace, shard, err)

0 commit comments

Comments
 (0)