事件:'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.