改进 集群
This commit is contained in:
parent
302d091e3a
commit
0b585ccdbf
@ -158,7 +158,7 @@ private function report(): void
|
||||
while (1) {
|
||||
ClusterSupport::publish('system_usage', [
|
||||
'cpu' => $cpu,
|
||||
]);
|
||||
], true);
|
||||
|
||||
sleep(1);
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ public static function isSlave(): bool
|
||||
return config('settings.node.type') === 'slave';
|
||||
}
|
||||
|
||||
public static function publish($event, $data = [], $register = true): void
|
||||
public static function publish($event, $data = [], $register = false): void
|
||||
{
|
||||
/** @noinspection PhpUndefinedMethodInspection */
|
||||
Redis::publish('cluster_ready', json_encode([
|
||||
|
Loading…
Reference in New Issue
Block a user