File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
dbm-services/common/dbha/ha-module Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ func (a *MonitorAgent) FetchDBInstance() error {
238
238
HashCnt : mod ,
239
239
HashValue : modValue ,
240
240
ClusterTypes : []string {a .DetectType },
241
+ MachineOnly : true ,
241
242
}
242
243
243
244
rawInfo , err := a .CmDBClient .GetDBInstanceInfoByCityID (req )
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ type DBInstanceByCityRequest struct {
42
42
HashCnt int `json:"hash_cnt"`
43
43
HashValue int `json:"hash_value"`
44
44
ClusterTypes []string `json:"cluster_types"`
45
+ //if true, only return the smallest port instance of same ip
46
+ MachineOnly bool `json:"machine_only"`
45
47
}
46
48
47
49
// DBInstanceInfo instance info
@@ -176,6 +178,7 @@ func (c *CmDBClient) GetDBInstanceInfoByCityID(requestInfo DBInstanceByCityReque
176
178
HashCnt : requestInfo .HashCnt ,
177
179
HashValue : requestInfo .HashValue ,
178
180
ClusterTypes : requestInfo .ClusterTypes ,
181
+ MachineOnly : requestInfo .MachineOnly ,
179
182
}
180
183
181
184
log .Logger .Debugf ("GetDBInstanceInfoByCityID param:%#v" , req )
You can’t perform that action at this time.
0 commit comments