mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-11-07 09:47:23 +00:00
chore(plugins): 移除分片诊断日志
SHARD_DEBUG 只在排查「18 个分片为什么还是 12 秒」时用过一次,结论是 17 个 VM 真的在并行(17 VMs live),慢的是其中一个源本身。留着它就是 给热路径留一个 os.Getenv。
This commit is contained in:
@ -2,7 +2,6 @@ package lua
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sync"
|
||||
)
|
||||
|
||||
@ -125,12 +124,6 @@ func (sp *shardPool) ShardCall(name, fn string, argsList []map[string]interface{
|
||||
}(i)
|
||||
}
|
||||
wg.Wait()
|
||||
if os.Getenv("SHARD_DEBUG") != "" {
|
||||
sp.mu.Lock()
|
||||
idle, live := len(sp.idle), sp.live
|
||||
sp.mu.Unlock()
|
||||
fmt.Fprintf(os.Stderr, "[shard] %s.%s: %d args, %d VMs live, %d idle\n", name, fn, len(argsList), live, idle)
|
||||
}
|
||||
|
||||
var failed int
|
||||
for _, err := range errs {
|
||||
|
||||
Reference in New Issue
Block a user