|
@ -3,7 +3,6 @@ package weed_server |
|
|
import ( |
|
|
import ( |
|
|
"context" |
|
|
"context" |
|
|
"fmt" |
|
|
"fmt" |
|
|
"github.com/chrislusf/seaweedfs/weed/glog" |
|
|
|
|
|
"github.com/chrislusf/seaweedfs/weed/storage/backend" |
|
|
"github.com/chrislusf/seaweedfs/weed/storage/backend" |
|
|
|
|
|
|
|
|
"github.com/chrislusf/raft" |
|
|
"github.com/chrislusf/raft" |
|
@ -183,8 +182,6 @@ func (ms *MasterServer) LookupEcVolume(ctx context.Context, req *master_pb.Looku |
|
|
|
|
|
|
|
|
func (ms *MasterServer) GetMasterConfiguration(ctx context.Context, req *master_pb.GetMasterConfigurationRequest) (*master_pb.GetMasterConfigurationResponse, error) { |
|
|
func (ms *MasterServer) GetMasterConfiguration(ctx context.Context, req *master_pb.GetMasterConfigurationRequest) (*master_pb.GetMasterConfigurationResponse, error) { |
|
|
|
|
|
|
|
|
glog.V(0).Infof("master sends metrics to %s every %d seconds", ms.option.MetricsAddress, ms.option.MetricsIntervalSec) |
|
|
|
|
|
|
|
|
|
|
|
resp := &master_pb.GetMasterConfigurationResponse{ |
|
|
resp := &master_pb.GetMasterConfigurationResponse{ |
|
|
MetricsAddress: ms.option.MetricsAddress, |
|
|
MetricsAddress: ms.option.MetricsAddress, |
|
|
MetricsIntervalSeconds: uint32(ms.option.MetricsIntervalSec), |
|
|
MetricsIntervalSeconds: uint32(ms.option.MetricsIntervalSec), |
|
|