改进 调度

This commit is contained in:
iVampireSP.com 2023-02-09 19:32:39 +08:00
parent f1a7909991
commit 4601da469b
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -31,7 +31,12 @@ public function handle(): int
{
$weight = $this->argument('weight');
$this->info("当前节点的权重为:{$weight}");
$this->info("当前节点的权重为:{$weight}");
if ($weight == "0") {
$this->warn('请求将不再调度到此节点。');
} else {
$this->info('将开始接受请求。');
}
ClusterSupport::updateThisNode([
'weight' => $weight,