mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 23:51:03 +00:00
Include replicaN in /info response
This commit is contained in:
parent
11e4bbfc67
commit
664c911791
1 changed files with 2 additions and 0 deletions
2
api.go
2
api.go
|
|
@ -1758,6 +1758,7 @@ func (api *API) Info() serverInfo {
|
|||
CPUType: si.CPUModel(),
|
||||
Memory: mem,
|
||||
TxSrc: api.holder.txf.TxType(),
|
||||
ReplicaN: api.cluster.ReplicaN,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2004,6 +2005,7 @@ func (api *API) TranslateFieldDB(ctx context.Context, indexName, fieldName strin
|
|||
|
||||
type serverInfo struct {
|
||||
ShardWidth uint64 `json:"shardWidth"`
|
||||
ReplicaN int `json:"replicaN"`
|
||||
Memory uint64 `json:"memory"`
|
||||
CPUType string `json:"cpuType"`
|
||||
CPUPhysicalCores int `json:"cpuPhysicalCores"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue