mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-11 07:11:02 +00:00
891 nodeid tags (from #897)
This commit is contained in:
parent
7116232625
commit
53fa54d3d3
1 changed files with 6 additions and 14 deletions
20
server.go
20
server.go
|
|
@ -130,21 +130,13 @@ func (s *Server) Open() error {
|
|||
// Set Cluster URI.
|
||||
s.Cluster.URI = s.URI
|
||||
|
||||
/*
|
||||
// Create local node if no cluster is specified.
|
||||
if len(s.Cluster.Nodes) == 0 {
|
||||
s.Cluster.Nodes = []*Node{
|
||||
{Scheme: s.URI.Scheme(), Host: s.URI.HostPort()},
|
||||
}
|
||||
// Find the Node ID and append that tag to stats.
|
||||
for i, n := range s.Cluster.Nodes {
|
||||
if n.URI == s.URI {
|
||||
s.Holder.Stats = s.Holder.Stats.WithTags(fmt.Sprintf("NodeID:%d", i))
|
||||
break
|
||||
}
|
||||
|
||||
// TODO: nodes aren't here yet. May need to merge new stats code anyway.
|
||||
for i, n := range s.Cluster.Nodes {
|
||||
if s.Cluster.NodeByHost(n.Host) != nil {
|
||||
s.Holder.Stats = s.Holder.Stats.WithTags(fmt.Sprintf("NodeID:%d", i))
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
// Open holder.
|
||||
s.Holder.LogOutput = s.LogOutput
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue