chrislu
5d90213288
pb: add address field to DataNodeInfo for proper node addressing
Previously, DataNodeInfo.Id was used as the node address, which worked
when Id was always ip:port. Now that Id can be an explicit string,
we need a separate Address field for connection purposes.
Changes:
- Add 'address' field to DataNodeInfo protobuf message
- Update ToDataNodeInfo() to populate the address field
- Update NewServerAddressFromDataNode() to use Address (with Id fallback)
- Fix LookupEcVolume to use dn.Url() instead of dn.Id()
Ref: https://github.com/seaweedfs/seaweedfs/issues/7487
6 days ago
Chris Lu
7acebf11ea
Master: volume assignment concurrency ( #7159 )
* volume assginment concurrency
* accurate tests
* ensure uniqness
* reserve atomically
* address comments
* atomic
* ReserveOneVolumeForReservation
* duplicated
* Update weed/topology/node.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update weed/topology/node.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* atomic counter
* dedup
* select the appropriate functions based on the useReservations flag
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
4 months ago
chrislu
35fd1e1c9a
optimize memory usage for large number of volumes
1. unwrap the map to avoid extra map object creation
2. fix ec shard counting in UpdateEcShards
1 year ago
wusong
6f58ab7e8b
[master] fix master panic ( #5893 )
1 year ago
小羽
e8537d7172
Different disk labels should not use the same DiskUsages instance while master received volume heatbeat ( #5770 )
1 year ago
chrislu
ca7cc61319
reduce the window size between unregistering a volume server and creating volumes on that server
fix https://github.com/seaweedfs/seaweedfs/issues/4467
3 years ago
chrislu
6690236754
rename variables
3 years ago
Konstantin Lebedev
695e3a909c
avoid data race on currentDiskUsage.maxVolumeCount ( #3592 )
https://github.com/seaweedfs/seaweedfs/issues/3590
3 years ago
Konstantin Lebedev
4d08393b7c
filer prefer volume server in same data center ( #3405 )
* initial prefer same data center
https://github.com/seaweedfs/seaweedfs/issues/3404
* GetDataCenter
* prefer same data center for ReplicationSource
* GetDataCenterId
* remove glog
3 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
3 years ago
ningfd
58f2dd6740
change topology mapping definition, improve spelling
3 years ago
ningfd
6f882eb354
optimiz: master ui will render data in order
3 years ago
Chris Lu
8a66306064
calculate disk usage in case of race condition
related to https://github.com/chrislusf/seaweedfs/issues/2357
4 years ago
Chris Lu
e5fc35ed0c
change server address from string to a type
4 years ago
Chris Lu
574485ec69
better IP v6 support
4 years ago
Chris Lu
65af3cf4df
master: disconnect only the phantom volume server
fix https://github.com/chrislusf/seaweedfs/issues/2311
4 years ago
Chris Lu
87a32bfef4
avoid possible nil when node is disconnected from its parent
fix https://github.com/chrislusf/seaweedfs/issues/2073
5 years ago
Chris Lu
565f7a6e72
Update data_node.go
5 years ago
Chris Lu
a37473ae60
add back volume ids
address https://github.com/chrislusf/seaweedfs/issues/1792#issuecomment-782339576
5 years ago
Chris Lu
c576ad04ac
fix volume server display for volumes
5 years ago
Chris Lu
53ca7e66ef
avoid dead lock
5 years ago
Chris Lu
cb9cc29518
volume.list display; fix updating maxVolumeCount for disk
5 years ago
Chris Lu
3fe628f04e
use hdd instead of empty string
5 years ago
Chris Lu
f8446b42ab
this can compile now!!!
5 years ago
Chris Lu
9c9ba3c209
nil related
related to https://github.com/chrislusf/seaweedfs/issues/1676
5 years ago
Chris Lu
d9e8479c06
adjust UI max count
5 years ago
Chris Lu
3cdf5945a2
adjust UI
5 years ago
Chris Lu
0d2ec832e2
rename from volumeType to diskType
5 years ago
Chris Lu
d156c74ec0
volume server set volume type and heartbeat to the master
5 years ago
Chris Lu
289e62a305
master: better locking of in memory volume data
related to https://github.com/chrislusf/seaweedfs/issues/1436#issuecomment-695880135
5 years ago
cheng.li01
dad1161c70
fix dn.volumes Iterate when write issue
5 years ago
Evgenii Kozlov
0e0db70f55
Set volumes ReadOnly if low free disk space
6 years ago
bingoohuang
1f8782a1ed
try showing the first 100 volume ids and an extra ...
6 years ago
bingoohuang
1a642b9876
add Volume Ids column only for max 100 volumes for convenience in the master ui.
6 years ago
Chris Lu
e426bd541e
grow volumes on volume servers with slots freed by cloud storage
6 years ago
j.laycock
6fc6322c90
Change joeslay paths to chrislusf paths
6 years ago
j.laycock
595a1beff0
Swap imports to use joeslay
6 years ago
Chris Lu
eaa76f11b7
free volume slots factor in ec shard counts
7 years ago
Chris Lu
2215e81be7
ui add ec shard statuses
7 years ago
Chris Lu
6f4b09b6a4
pb shard info uses ShardBits instead one message for one shard
7 years ago
Chris Lu
4659d80035
prepare to register ec shard info in master
7 years ago
Chris Lu
7180520889
ec shard info can be queried via VolumeList()
7 years ago
Chris Lu
6fc1f53018
shell: add command volume.move
7 years ago
Chris Lu
e5506152c0
refactoring
7 years ago
Chris Lu
aca653c08b
weed shell: list volumes
7 years ago
bingoohuang
ab6be025d7
go fmt and fix some typo
7 years ago
Chris Lu
a12c7b86b0
broadcast messages of new and deleted volumes
7 years ago
Chris Lu
e46c3415f7
gRpc for master~volume heartbeat
9 years ago
Chris Lu
0559aa9673
use Lock instead of RLock
fix https://github.com/chrislusf/seaweedfs/issues/364
9 years ago
霍晓栋
f04d8fcbcc
if replicated volume has one copy in readonly mode at one node,it should be removed from writable list
9 years ago