SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
grow volumes on volume servers with slots freed by cloud storage
Chris Lue426bd541e20
diff --git a/weed/pb/master.proto b/weed/pb/master.protoindex 7fdd454694..9b1e884c75 100644--- a/weed/pb/master.proto+++ b/weed/pb/master.proto@@ -210,6 +210,7 @@ message DataNodeInfo {uint64 active_volume_count = 5;repeated VolumeInformationMessage volume_infos = 6;repeated VolumeEcShardInformationMessage ec_shard_infos = 7;+ uint64 remote_volume_count = 8;}message RackInfo {string id = 1;@@ -218,6 +219,7 @@ message RackInfo {uint64 free_volume_count = 4;uint64 active_volume_count = 5;repeated DataNodeInfo data_node_infos = 6;+ uint64 remote_volume_count = 7;}message DataCenterInfo {string id = 1;@@ -226,6 +228,7 @@ message DataCenterInfo {uint64 free_volume_count = 4;uint64 active_volume_count = 5;repeated RackInfo rack_infos = 6;+ uint64 remote_volume_count = 7;}message TopologyInfo {string id = 1;@@ -234,6 +237,7 @@ message TopologyInfo {uint64 free_volume_count = 4;uint64 active_volume_count = 5;repeated DataCenterInfo data_center_infos = 6;+ uint64 remote_volume_count = 7;}message VolumeListRequest {}diff --git a/weed/pb/master_pb/master.pb.go b/weed/pb/master_pb/master.pb.goindex a01fb0a1fb..ea4362c92f 100644--- a/weed/pb/master_pb/master.pb.go+++ b/weed/pb/master_pb/master.pb.go@@ -1043,6 +1043,7 @@ type DataNodeInfo struct {ActiveVolumeCount uint64 `protobuf:"varint,5,opt,name=active_volume_count,json=activeVolumeCount" json:"active_volume_count,omitempty"`VolumeInfos []*VolumeInformationMessage `protobuf:"bytes,6,rep,name=volume_infos,json=volumeInfos" json:"volume_infos,omitempty"`EcShardInfos []*VolumeEcShardInformationMessage `protobuf:"bytes,7,rep,name=ec_shard_infos,json=ecShardInfos" json:"ec_shard_infos,omitempty"`+ RemoteVolumeCount uint64 `protobuf:"varint,8,opt,name=remote_volume_count,json=remoteVolumeCount" json:"remote_volume_count,omitempty"`}func (m *DataNodeInfo) Reset() { *m = DataNodeInfo{} }@@ -1099,6 +1100,13 @@ func (m *DataNodeInfo) GetEcShardInfos() []*VolumeEcShardInformationMessage {return nil}+func (m *DataNodeInfo) GetRemoteVolumeCount() uint64 {+ if m != nil {+ return m.RemoteVolumeCount+ }+ return 0+}+type RackInfo struct {Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`VolumeCount uint64 `protobuf:"varint,2,opt,name=volume_count,json=volumeCount" json:"volume_count,omitempty"`@@ -1106,6 +1114,7 @@ type RackInfo struct {FreeVolumeCount uint64 `protobuf:"varint,4,opt,name=free_volume_count,json=freeVolumeCount" json:"free_volume_count,omitempty"`ActiveVolumeCount uint64 `protobuf:"varint,5,opt,name=active_volume_count,json=activeVolumeCount" json:"active_volume_count,omitempty"`DataNodeInfos []*DataNodeInfo `protobuf:"bytes,6,rep,name=data_node_infos,json=dataNodeInfos" json:"data_node_infos,omitempty"`+ RemoteVolumeCount uint64 `protobuf:"varint,7,opt,name=remote_volume_count,json=remoteVolumeCount" json:"remote_volume_count,omitempty"`}func (m *RackInfo) Reset() { *m = RackInfo{} }@@ -1155,6 +1164,13 @@ func (m *RackInfo) GetDataNodeInfos() []*DataNodeInfo {return nil}+func (m *RackInfo) GetRemoteVolumeCount() uint64 {+ if m != nil {+ return m.RemoteVolumeCount+ }+ return 0+}+type DataCenterInfo struct {Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`VolumeCount uint64 `protobuf:"varint,2,opt,name=volume_count,json=volumeCount" json:"volume_count,omitempty"`@@ -1162,6 +1178,7 @@ type DataCenterInfo struct {FreeVolumeCount uint64 `protobuf:"varint,4,opt,name=free_volume_count,json=freeVolumeCount" json:"free_volume_count,omitempty"`ActiveVolumeCount uint64 `protobuf:"varint,5,opt,name=active_volume_count,json=activeVolumeCount" json:"active_volume_count,omitempty"`RackInfos []*RackInfo `protobuf:"bytes,6,rep,name=rack_infos,json=rackInfos" json:"rack_infos,omitempty"`+ RemoteVolumeCount uint64 `protobuf:"varint,7,opt,name=remote_volume_count,json=remoteVolumeCount" json:"remote_volume_count,omitempty"`}func (m *DataCenterInfo) Reset() { *m = DataCenterInfo{} }@@ -1211,6 +1228,13 @@ func (m *DataCenterInfo) GetRackInfos() []*RackInfo {return nil}+func (m *DataCenterInfo) GetRemoteVolumeCount() uint64 {+ if m != nil {+ return m.RemoteVolumeCount+ }+ return 0+}+type TopologyInfo struct {Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`VolumeCount uint64 `protobuf:"varint,2,opt,name=volume_count,json=volumeCount" json:"volume_count,omitempty"`@@ -1218,6 +1242,7 @@ type TopologyInfo struct {FreeVolumeCount uint64 `protobuf:"varint,4,opt,name=free_volume_count,json=freeVolumeCount" json:"free_volume_count,omitempty"`ActiveVolumeCount uint64 `protobuf:"varint,5,opt,name=active_volume_count,json=activeVolumeCount" json:"active_volume_count,omitempty"`DataCenterInfos []*DataCenterInfo `protobuf:"bytes,6,rep,name=data_center_infos,json=dataCenterInfos" json:"data_center_infos,omitempty"`+ RemoteVolumeCount uint64 `protobuf:"varint,7,opt,name=remote_volume_count,json=remoteVolumeCount" json:"remote_volume_count,omitempty"`}func (m *TopologyInfo) Reset() { *m = TopologyInfo{} }@@ -1267,6 +1292,13 @@ func (m *TopologyInfo) GetDataCenterInfos() []*DataCenterInfo {return nil}+func (m *TopologyInfo) GetRemoteVolumeCount() uint64 {+ if m != nil {+ return m.RemoteVolumeCount+ }+ return 0+}+type VolumeListRequest struct {}@@ -1875,136 +1907,137 @@ var _Seaweed_serviceDesc = grpc.ServiceDesc{func init() { proto.RegisterFile("master.proto", fileDescriptor0) }var fileDescriptor0 = []byte{- // 2083 bytes of a gzipped FileDescriptorProto+ // 2102 bytes of a gzipped FileDescriptorProto0x1f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ed/server/volume_server_handlers_ui.go b/weed/server/volume_server_handlers_ui.goindex 63a9fe2305..8d35c9c8b4 100644--- a/weed/server/volume_server_handlers_ui.go+++ b/weed/server/volume_server_handlers_ui.go@@ -24,10 +24,10 @@ func (vs *VolumeServer) uiStatusHandler(w http.ResponseWriter, r *http.Request)volumeInfos := vs.store.VolumeInfos()var normalVolumeInfos, remoteVolumeInfos []*storage.VolumeInfofor _, vinfo := range volumeInfos {- if vinfo.RemoteStorageName == "" {- normalVolumeInfos = append(normalVolumeInfos, vinfo)- } else {+ if vinfo.IsRemote() {remoteVolumeInfos = append(remoteVolumeInfos, vinfo)+ } else {+ normalVolumeInfos = append(normalVolumeInfos, vinfo)}}args := struct {diff --git a/weed/shell/command_volume_list.go b/weed/shell/command_volume_list.goindex 91b5a0d329..c6c79d1500 100644--- a/weed/shell/command_volume_list.go+++ b/weed/shell/command_volume_list.go@@ -46,7 +46,7 @@ func (c *commandVolumeList) Do(args []string, commandEnv *CommandEnv, writer io.}func writeTopologyInfo(writer io.Writer, t *master_pb.TopologyInfo, volumeSizeLimitMb uint64) statistics {- fmt.Fprintf(writer, "Topology volume:%d/%d active:%d free:%d volumeSizeLimit:%d MB\n", t.VolumeCount, t.MaxVolumeCount, t.ActiveVolumeCount, t.FreeVolumeCount, volumeSizeLimitMb)+ fmt.Fprintf(writer, "Topology volume:%d/%d active:%d free:%d remote:%d volumeSizeLimit:%d MB\n", t.VolumeCount, t.MaxVolumeCount, t.ActiveVolumeCount, t.FreeVolumeCount, t.RemoteVolumeCount, volumeSizeLimitMb)sort.Slice(t.DataCenterInfos, func(i, j int) bool {return t.DataCenterInfos[i].Id < t.DataCenterInfos[j].Id})@@ -58,7 +58,7 @@ func writeTopologyInfo(writer io.Writer, t *master_pb.TopologyInfo, volumeSizeLireturn s}func writeDataCenterInfo(writer io.Writer, t *master_pb.DataCenterInfo) statistics {- fmt.Fprintf(writer, " DataCenter %s volume:%d/%d active:%d free:%d\n", t.Id, t.VolumeCount, t.MaxVolumeCount, t.ActiveVolumeCount, t.FreeVolumeCount)+ fmt.Fprintf(writer, " DataCenter %s volume:%d/%d active:%d free:%d remote:%d\n", t.Id, t.VolumeCount, t.MaxVolumeCount, t.ActiveVolumeCount, t.FreeVolumeCount, t.RemoteVolumeCount)var s statisticssort.Slice(t.RackInfos, func(i, j int) bool {return t.RackInfos[i].Id < t.RackInfos[j].Id@@ -70,7 +70,7 @@ func writeDataCenterInfo(writer io.Writer, t *master_pb.DataCenterInfo) statistireturn s}func writeRackInfo(writer io.Writer, t *master_pb.RackInfo) statistics {- fmt.Fprintf(writer, " Rack %s volume:%d/%d active:%d free:%d\n", t.Id, t.VolumeCount, t.MaxVolumeCount, t.ActiveVolumeCount, t.FreeVolumeCount)+ fmt.Fprintf(writer, " Rack %s volume:%d/%d active:%d free:%d remote:%d\n", t.Id, t.VolumeCount, t.MaxVolumeCount, t.ActiveVolumeCount, t.FreeVolumeCount, t.RemoteVolumeCount)var s statisticssort.Slice(t.DataNodeInfos, func(i, j int) bool {return t.DataNodeInfos[i].Id < t.DataNodeInfos[j].Id@@ -82,7 +82,7 @@ func writeRackInfo(writer io.Writer, t *master_pb.RackInfo) statistics {return s}func writeDataNodeInfo(writer io.Writer, t *master_pb.DataNodeInfo) statistics {- fmt.Fprintf(writer, " DataNode %s volume:%d/%d active:%d free:%d\n", t.Id, t.VolumeCount, t.MaxVolumeCount, t.ActiveVolumeCount, t.FreeVolumeCount)+ fmt.Fprintf(writer, " DataNode %s volume:%d/%d active:%d free:%d remote:%d\n", t.Id, t.VolumeCount, t.MaxVolumeCount, t.ActiveVolumeCount, t.FreeVolumeCount, t.RemoteVolumeCount)var s statisticssort.Slice(t.VolumeInfos, func(i, j int) bool {return t.VolumeInfos[i].Id < t.VolumeInfos[j].Iddiff --git a/weed/storage/volume_info.go b/weed/storage/volume_info.goindex 6a33aa2614..3b9b667eb4 100644--- a/weed/storage/volume_info.go+++ b/weed/storage/volume_info.go@@ -64,6 +64,10 @@ func NewVolumeInfoFromShort(m *master_pb.VolumeShortInformationMessage) (vi Volureturn vi, nil}+func (vi VolumeInfo) IsRemote() bool {+ return vi.RemoteStorageName != ""+}+func (vi VolumeInfo) String() string {return fmt.Sprintf("Id:%d, Size:%d, ReplicaPlacement:%s, Collection:%s, Version:%v, FileCount:%d, DeleteCount:%d, DeletedByteCount:%d, ReadOnly:%v",vi.Id, vi.Size, vi.ReplicaPlacement, vi.Collection, vi.Version, vi.FileCount, vi.DeleteCount, vi.DeletedByteCount, vi.ReadOnly)diff --git a/weed/topology/data_center.go b/weed/topology/data_center.goindex 640cb1937d..dc3accb719 100644--- a/weed/topology/data_center.go+++ b/weed/topology/data_center.go@@ -48,6 +48,7 @@ func (dc *DataCenter) ToDataCenterInfo() *master_pb.DataCenterInfo {MaxVolumeCount: uint64(dc.GetMaxVolumeCount()),FreeVolumeCount: uint64(dc.FreeSpace()),ActiveVolumeCount: uint64(dc.GetActiveVolumeCount()),+ RemoteVolumeCount: uint64(dc.GetRemoteVolumeCount()),}for _, c := range dc.Children() {rack := c.(*Rack)diff --git a/weed/topology/data_node.go b/weed/topology/data_node.goindex 3e72ccdbf5..617341e54d 100644--- a/weed/topology/data_node.go+++ b/weed/topology/data_node.go@@ -2,14 +2,13 @@ package topologyimport ("fmt"+ "strconv""sync""github.com/chrislusf/seaweedfs/weed/pb/master_pb""github.com/chrislusf/seaweedfs/weed/storage/erasure_coding""github.com/chrislusf/seaweedfs/weed/storage/needle"- "strconv"-"github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/storage")@@ -44,15 +43,26 @@ func (dn *DataNode) String() string {func (dn *DataNode) AddOrUpdateVolume(v storage.VolumeInfo) (isNew bool) {dn.Lock()defer dn.Unlock()- if _, ok := dn.volumes[v.Id]; !ok {+ if oldV, ok := dn.volumes[v.Id]; !ok {dn.volumes[v.Id] = vdn.UpAdjustVolumeCountDelta(1)+ if v.IsRemote() {+ dn.UpAdjustRemoteVolumeCountDelta(1)+ }if !v.ReadOnly {dn.UpAdjustActiveVolumeCountDelta(1)}dn.UpAdjustMaxVolumeId(v.Id)isNew = true} else {+ if oldV.IsRemote() != v.IsRemote() {+ if v.IsRemote() {+ dn.UpAdjustRemoteVolumeCountDelta(1)+ }+ if oldV.IsRemote() {+ dn.UpAdjustRemoteVolumeCountDelta(-1)+ }+ }dn.volumes[v.Id] = v}return@@ -70,7 +80,12 @@ func (dn *DataNode) UpdateVolumes(actualVolumes []storage.VolumeInfo) (newVolumedelete(dn.volumes, vid)deletedVolumes = append(deletedVolumes, v)dn.UpAdjustVolumeCountDelta(-1)- dn.UpAdjustActiveVolumeCountDelta(-1)+ if v.IsRemote() {+ dn.UpAdjustRemoteVolumeCountDelta(-1)+ }+ if !v.ReadOnly {+ dn.UpAdjustActiveVolumeCountDelta(-1)+ }}}dn.Unlock()@@ -88,7 +103,12 @@ func (dn *DataNode) DeltaUpdateVolumes(newlVolumes, deletedVolumes []storage.Volfor _, v := range deletedVolumes {delete(dn.volumes, v.Id)dn.UpAdjustVolumeCountDelta(-1)- dn.UpAdjustActiveVolumeCountDelta(-1)+ if v.IsRemote() {+ dn.UpAdjustRemoteVolumeCountDelta(-1)+ }+ if !v.ReadOnly {+ dn.UpAdjustActiveVolumeCountDelta(-1)+ }}dn.Unlock()for _, v := range newlVolumes {@@ -160,6 +180,7 @@ func (dn *DataNode) ToDataNodeInfo() *master_pb.DataNodeInfo {MaxVolumeCount: uint64(dn.GetMaxVolumeCount()),FreeVolumeCount: uint64(dn.FreeSpace()),ActiveVolumeCount: uint64(dn.GetActiveVolumeCount()),+ RemoteVolumeCount: uint64(dn.GetRemoteVolumeCount()),}for _, v := range dn.GetVolumes() {m.VolumeInfos = append(m.VolumeInfos, v.ToVolumeInformationMessage())diff --git a/weed/topology/node.go b/weed/topology/node.goindex b2808f5891..572a89d4d9 100644--- a/weed/topology/node.go+++ b/weed/topology/node.go@@ -20,6 +20,7 @@ type Node interface {ReserveOneVolume(r int64) (*DataNode, error)UpAdjustMaxVolumeCountDelta(maxVolumeCountDelta int64)UpAdjustVolumeCountDelta(volumeCountDelta int64)+ UpAdjustRemoteVolumeCountDelta(remoteVolumeCountDelta int64)UpAdjustEcShardCountDelta(ecShardCountDelta int64)UpAdjustActiveVolumeCountDelta(activeVolumeCountDelta int64)UpAdjustMaxVolumeId(vid needle.VolumeId)@@ -27,6 +28,7 @@ type Node interface {GetVolumeCount() int64GetEcShardCount() int64GetActiveVolumeCount() int64+ GetRemoteVolumeCount() int64GetMaxVolumeCount() int64GetMaxVolumeId() needle.VolumeIdSetParent(Node)@@ -44,6 +46,7 @@ type Node interface {}type NodeImpl struct {volumeCount int64+ remoteVolumeCount int64activeVolumeCount int64ecShardCount int64maxVolumeCount int64@@ -132,10 +135,11 @@ func (n *NodeImpl) Id() NodeId {return n.id}func (n *NodeImpl) FreeSpace() int64 {+ freeVolumeSlotCount := n.maxVolumeCount + n.remoteVolumeCount - n.volumeCountif n.ecShardCount > 0 {- return n.maxVolumeCount - n.volumeCount - n.ecShardCount/erasure_coding.DataShardsCount - 1+ freeVolumeSlotCount = freeVolumeSlotCount - n.ecShardCount/erasure_coding.DataShardsCount - 1}- return n.maxVolumeCount - n.volumeCount+ return freeVolumeSlotCount}func (n *NodeImpl) SetParent(node Node) {n.parent = node@@ -191,6 +195,12 @@ func (n *NodeImpl) UpAdjustVolumeCountDelta(volumeCountDelta int64) { //can be nn.parent.UpAdjustVolumeCountDelta(volumeCountDelta)}}+func (n *NodeImpl) UpAdjustRemoteVolumeCountDelta(remoteVolumeCountDelta int64) { //can be negative+ atomic.AddInt64(&n.remoteVolumeCount, remoteVolumeCountDelta)+ if n.parent != nil {+ n.parent.UpAdjustRemoteVolumeCountDelta(remoteVolumeCountDelta)+ }+}func (n *NodeImpl) UpAdjustEcShardCountDelta(ecShardCountDelta int64) { //can be negativeatomic.AddInt64(&n.ecShardCount, ecShardCountDelta)if n.parent != nil {@@ -220,6 +230,9 @@ func (n *NodeImpl) GetVolumeCount() int64 {func (n *NodeImpl) GetEcShardCount() int64 {return n.ecShardCount}+func (n *NodeImpl) GetRemoteVolumeCount() int64 {+ return n.remoteVolumeCount+}func (n *NodeImpl) GetActiveVolumeCount() int64 {return n.activeVolumeCount}@@ -235,6 +248,7 @@ func (n *NodeImpl) LinkChildNode(node Node) {n.UpAdjustMaxVolumeCountDelta(node.GetMaxVolumeCount())n.UpAdjustMaxVolumeId(node.GetMaxVolumeId())n.UpAdjustVolumeCountDelta(node.GetVolumeCount())+ n.UpAdjustRemoteVolumeCountDelta(node.GetRemoteVolumeCount())n.UpAdjustEcShardCountDelta(node.GetEcShardCount())n.UpAdjustActiveVolumeCountDelta(node.GetActiveVolumeCount())node.SetParent(n)@@ -250,6 +264,7 @@ func (n *NodeImpl) UnlinkChildNode(nodeId NodeId) {node.SetParent(nil)delete(n.children, node.Id())n.UpAdjustVolumeCountDelta(-node.GetVolumeCount())+ n.UpAdjustRemoteVolumeCountDelta(-node.GetRemoteVolumeCount())n.UpAdjustEcShardCountDelta(-node.GetEcShardCount())n.UpAdjustActiveVolumeCountDelta(-node.GetActiveVolumeCount())n.UpAdjustMaxVolumeCountDelta(-node.GetMaxVolumeCount())diff --git a/weed/topology/rack.go b/weed/topology/rack.goindex 932c1a8049..1921c0c056 100644--- a/weed/topology/rack.go+++ b/weed/topology/rack.go@@ -67,6 +67,7 @@ func (r *Rack) ToRackInfo() *master_pb.RackInfo {MaxVolumeCount: uint64(r.GetMaxVolumeCount()),FreeVolumeCount: uint64(r.FreeSpace()),ActiveVolumeCount: uint64(r.GetActiveVolumeCount()),+ RemoteVolumeCount: uint64(r.GetRemoteVolumeCount()),}for _, c := range r.Children() {dn := c.(*DataNode)diff --git a/weed/topology/topology_event_handling.go b/weed/topology/topology_event_handling.goindex 041351492b..068bd401ea 100644--- a/weed/topology/topology_event_handling.go+++ b/weed/topology/topology_event_handling.go@@ -59,6 +59,7 @@ func (t *Topology) UnRegisterDataNode(dn *DataNode) {vl.SetVolumeUnavailable(dn, v.Id)}dn.UpAdjustVolumeCountDelta(-dn.GetVolumeCount())+ dn.UpAdjustRemoteVolumeCountDelta(-dn.GetRemoteVolumeCount())dn.UpAdjustActiveVolumeCountDelta(-dn.GetActiveVolumeCount())dn.UpAdjustMaxVolumeCountDelta(-dn.GetMaxVolumeCount())if dn.Parent() != nil {diff --git a/weed/topology/topology_map.go b/weed/topology/topology_map.goindex 0ad30f12e4..73c55d77db 100644--- a/weed/topology/topology_map.go+++ b/weed/topology/topology_map.go@@ -85,6 +85,7 @@ func (t *Topology) ToTopologyInfo() *master_pb.TopologyInfo {MaxVolumeCount: uint64(t.GetMaxVolumeCount()),FreeVolumeCount: uint64(t.FreeSpace()),ActiveVolumeCount: uint64(t.GetActiveVolumeCount()),+ RemoteVolumeCount: uint64(t.GetRemoteVolumeCount()),}for _, c := range t.Children() {dc := c.(*DataCenter)