'setup' 事件


每次调用 .setupPrimary() 时触发。

settings 对象是调用 .setupPrimary() 时的 cluster.settings 对象,并且只是建议性的,因为可以在单个滴答中对 .setupPrimary() 进行多次调用。

如果准确性很重要,则使用 cluster.settings

Emitted every time .setupPrimary() is called.

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.

If accuracy is important, use cluster.settings.