事件:'setup'
🌐 Event: 'setup'
settings<Object>
每次调用 .setupPrimary() 时都会触发。
🌐 Emitted every time .setupPrimary() is called.
settings 对象是调用 .setupPrimary() 时的 cluster.settings 对象,仅供参考,因为在一个时钟周期内可以多次调用 .setupPrimary()。
🌐 The settings object is the cluster.settings object at the time
.setupPrimary() was called and is advisory only, since multiple calls to
.setupPrimary() can be made in a single tick.
如果准确性很重要,请使用 cluster.settings。
🌐 If accuracy is important, use cluster.settings.