mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-23 22:40:39 +02:00
add admin script worker (#8491)
* admin: add plugin lock coordination
* shell: allow bypassing lock checks
* plugin worker: add admin script handler
* mini: include admin_script in plugin defaults
* admin script UI: drop name and enlarge text
* admin script: add default script
* admin_script: make run interval configurable
* plugin: gate other jobs during admin_script runs
* plugin: use last completed admin_script run
* admin: backfill plugin config defaults
* templ
Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
* comparable to default version
Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
* default to run
Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
* format
Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
* shell: respect pre-set noLock for fix.replication
* shell: add force no-lock mode for admin scripts
* volume balance worker already exists
Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
* admin: expose scheduler status JSON
* shell: add sleep command
* shell: restrict sleep syntax
* Revert "shell: respect pre-set noLock for fix.replication"
This reverts commit 2b14e8b826.
* templ
Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
* fix import
Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
* less logs
Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
* Reduce master client logs on canceled contexts
* Update mini default job type count
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
16f2269a33
commit
e1e5b4a8a6
27 files changed
+1888
-27
No files matched your search
@@ -150,14 +150,14 @@ func parseReplicaPlacementArg(commandEnv *CommandEnv, replicaStr string) (*super
|
||||
if err != nil {
|
||||
return rp, err
|
||||
}
|
||||
fmt.Printf("using replica placement %q for EC volumes\n", rp.String())
|
||||
glog.V(1).Infof("using replica placement %q for EC volumes\n", rp.String())
|
||||
} else {
|
||||
// No replica placement argument provided, resolve from master default settings.
|
||||
rp, err = getDefaultReplicaPlacement(commandEnv)
|
||||
if err != nil {
|
||||
return rp, err
|
||||
}
|
||||
fmt.Printf("using master default replica placement %q for EC volumes\n", rp.String())
|
||||
glog.V(1).Infof("using master default replica placement %q for EC volumes\n", rp.String())
|
||||
}
|
||||
|
||||
return rp, nil
|
||||
@@ -1628,7 +1628,7 @@ func EcBalance(commandEnv *CommandEnv, collections []string, dc string, ecReplic
|
||||
}
|
||||
|
||||
if len(collections) == 0 {
|
||||
fmt.Printf("WARNING: No collections to balance EC volumes across.\n")
|
||||
glog.V(1).Infof("WARNING: No collections to balance EC volumes across.\n")
|
||||
}
|
||||
for _, c := range collections {
|
||||
if err = ecb.balanceEcVolumes(c); err != nil {
|
||||
|
||||
Reference in new issue
Block a user