1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2025-08-16 09:02:47 +02:00
seaweedfs/weed/command
Chris Lu 891a2fb6eb
Admin: misc improvements on admin server and workers. EC now works. (#7055)
* initial design

* added simulation as tests

* reorganized the codebase to move the simulation framework and tests into their own dedicated package

* integration test. ec worker task

* remove "enhanced" reference

* start master, volume servers, filer

Current Status
 Master: Healthy and running (port 9333)
 Filer: Healthy and running (port 8888)
 Volume Servers: All 6 servers running (ports 8080-8085)
🔄 Admin/Workers: Will start when dependencies are ready

* generate write load

* tasks are assigned

* admin start wtih grpc port. worker has its own working directory

* Update .gitignore

* working worker and admin. Task detection is not working yet.

* compiles, detection uses volumeSizeLimitMB from master

* compiles

* worker retries connecting to admin

* build and restart

* rendering pending tasks

* skip task ID column

* sticky worker id

* test canScheduleTaskNow

* worker reconnect to admin

* clean up logs

* worker register itself first

* worker can run ec work and report status

but:
1. one volume should not be repeatedly worked on.
2. ec shards needs to be distributed and source data should be deleted.

* move ec task logic

* listing ec shards

* local copy, ec. Need to distribute.

* ec is mostly working now

* distribution of ec shards needs improvement
* need configuration to enable ec

* show ec volumes

* interval field UI component

* rename

* integration test with vauuming

* garbage percentage threshold

* fix warning

* display ec shard sizes

* fix ec volumes list

* Update ui.go

* show default values

* ensure correct default value

* MaintenanceConfig use ConfigField

* use schema defined defaults

* config

* reduce duplication

* refactor to use BaseUIProvider

* each task register its schema

* checkECEncodingCandidate use ecDetector

* use vacuumDetector

* use volumeSizeLimitMB

* remove

remove

* remove unused

* refactor

* use new framework

* remove v2 reference

* refactor

* left menu can scroll now

* The maintenance manager was not being initialized when no data directory was configured for persistent storage.

* saving config

* Update task_config_schema_templ.go

* enable/disable tasks

* protobuf encoded task configurations

* fix system settings

* use ui component

* remove logs

* interface{} Reduction

* reduce interface{}

* reduce interface{}

* avoid from/to map

* reduce interface{}

* refactor

* keep it DRY

* added logging

* debug messages

* debug level

* debug

* show the log caller line

* use configured task policy

* log level

* handle admin heartbeat response

* Update worker.go

* fix EC rack and dc count

* Report task status to admin server

* fix task logging, simplify interface checking, use erasure_coding constants

* factor in empty volume server during task planning

* volume.list adds disk id

* track disk id also

* fix locking scheduled and manual scanning

* add active topology

* simplify task detector

* ec task completed, but shards are not showing up

* implement ec in ec_typed.go

* adjust log level

* dedup

* implementing ec copying shards and only ecx files

* use disk id when distributing ec shards

🎯 Planning: ActiveTopology creates DestinationPlan with specific TargetDisk
📦 Task Creation: maintenance_integration.go creates ECDestination with DiskId
🚀 Task Execution: EC task passes DiskId in VolumeEcShardsCopyRequest
💾 Volume Server: Receives disk_id and stores shards on specific disk (vs.store.Locations[req.DiskId])
📂 File System: EC shards and metadata land in the exact disk directory planned

* Delete original volume from all locations

* clean up existing shard locations

* local encoding and distributing

* Update docker/admin_integration/EC-TESTING-README.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* check volume id range

* simplify

* fix tests

* fix types

* clean up logs and tests

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-07-30 12:38:03 -07:00
..
scaffold remove sqlite due to GOOS support for freebsd and openbsd 2025-07-06 21:50:08 -07:00
admin.go Admin: misc improvements on admin server and workers. EC now works. (#7055) 2025-07-30 12:38:03 -07:00
autocomplete.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
backup.go pass volume version when creating a volume 2025-06-19 01:15:25 -07:00
benchmark.go change version directory 2025-06-03 22:46:10 -07:00
command.go Admin UI add maintenance menu (#6944) 2025-07-06 13:57:02 -07:00
compact.go pass volume version when creating a volume 2025-06-19 01:15:25 -07:00
download.go Added tls for http clients (#5766) 2024-07-16 23:14:09 -07:00
export.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer.go * Fix undefined http serve behaiver (#6943) 2025-07-07 22:48:12 -07:00
filer_backup.go feat(filer.backup): add ignore errors option (#6235) 2024-11-14 08:40:55 -08:00
filer_cat.go Add context with request (#6824) 2025-05-28 11:34:02 -07:00
filer_copy.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
filer_meta_backup.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
filer_meta_tail.go Added loadSecurityConfigOnce (#5792) 2024-07-16 09:15:55 -07:00
filer_meta_tail_elastic.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_meta_tail_non_elastic.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_remote_gateway.go filer.remote.gateway not filer.remote.sync for filer.remote.gateway help string. (#5935) 2024-08-23 20:42:59 -07:00
filer_remote_gateway_buckets.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
filer_remote_sync.go Added loadSecurityConfigOnce (#5792) 2024-07-16 09:15:55 -07:00
filer_remote_sync_dir.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
filer_replication.go Added loadSecurityConfigOnce (#5792) 2024-07-16 09:15:55 -07:00
filer_sync.go filer sync: source path and exclude path support dir suffix (#6268) 2024-11-21 08:25:12 -08:00
filer_sync_jobs.go Fix filer sync set offset (#5197) 2024-01-12 10:57:18 -08:00
filer_sync_std.go go fmt 2021-09-01 02:45:42 -07:00
filer_sync_windows.go filer.backup: escape colon from path on windows 2021-05-29 06:45:27 -07:00
fix.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
fuse.go Make fuse command linux/MacOS only (#6811) 2025-05-23 08:21:46 -07:00
fuse_notsupported.go Make fuse command linux/MacOS only (#6811) 2025-05-23 08:21:46 -07:00
fuse_std.go allow distro mount command to use disableXAttr (#6872) 2025-06-16 08:45:05 -07:00
iam.go * Fix undefined http serve behaiver (#6943) 2025-07-07 22:48:12 -07:00
imports.go Tarantool filer store (#6669) 2025-03-29 21:12:06 -07:00
master.go * Fix undefined http serve behaiver (#6943) 2025-07-07 22:48:12 -07:00
master_follower.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
mount.go Ensure weed fuse master process exits after mounted (#6809) 2025-05-22 09:50:07 -07:00
mount_darwin.go remove dead code 2022-02-27 03:03:19 -08:00
mount_freebsd.go mount: complete fix for freebsd 2025-06-12 08:19:47 -07:00
mount_linux.go add more logs 2022-08-31 23:16:05 -07:00
mount_notsupported.go mount: complete fix for freebsd 2025-06-12 08:19:47 -07:00
mount_std.go convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
mq_agent.go Admin UI: Add message queue to admin UI (#6958) 2025-07-11 10:19:27 -07:00
mq_broker.go Admin UI: Add message queue to admin UI (#6958) 2025-07-11 10:19:27 -07:00
s3.go change priority of admin credentials from env varaibles (#7032) 2025-07-23 11:44:36 -07:00
scaffold.go Add credential storage (#6938) 2025-07-02 18:03:17 -07:00
scaffold_test.go fix test 2019-11-28 18:44:27 -08:00
server.go add mq agent options to server.go 2025-07-09 09:02:26 -07:00
sftp.go change version directory 2025-06-03 22:46:10 -07:00
shell.go Added loadSecurityConfigOnce (#5792) 2024-07-16 09:15:55 -07:00
update.go fix build 2025-06-03 22:50:45 -07:00
update_full.go Tarantool filer store (#6669) 2025-03-29 21:12:06 -07:00
upload.go merge current message queue code changes (#6201) 2024-11-04 12:08:25 -08:00
version.go reference seaweedfs.com 2025-06-26 11:09:17 -07:00
volume.go * Fix undefined http serve behaiver (#6943) 2025-07-07 22:48:12 -07:00
volume_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
webdav.go change version directory 2025-06-03 22:46:10 -07:00
worker.go Admin: misc improvements on admin server and workers. EC now works. (#7055) 2025-07-30 12:38:03 -07:00