改进 调度
This commit is contained in:
parent
f1a7909991
commit
4601da469b
@ -31,7 +31,12 @@ public function handle(): int
|
|||||||
{
|
{
|
||||||
$weight = $this->argument('weight');
|
$weight = $this->argument('weight');
|
||||||
|
|
||||||
$this->info("当前节点的权重为:{$weight}");
|
$this->info("当前节点的权重为:{$weight}。");
|
||||||
|
if ($weight == "0") {
|
||||||
|
$this->warn('请求将不再调度到此节点。');
|
||||||
|
} else {
|
||||||
|
$this->info('将开始接受请求。');
|
||||||
|
}
|
||||||
|
|
||||||
ClusterSupport::updateThisNode([
|
ClusterSupport::updateThisNode([
|
||||||
'weight' => $weight,
|
'weight' => $weight,
|
||||||
|
Loading…
Reference in New Issue
Block a user