Skip to content

About the cluster.setupMaster can only be called once #7156

Description

@jpuncle

Hi, I see the following statement at the api doc
https://nodejs.org/api/cluster.html#cluster_cluster_settings

It is effectively frozen after being set, because .setupMaster() can only be called once.

but, I couldn't find any limit in the source codes for 'called once'.

Could anyone help me? thanks.

Activity

  1. added
    clusterIssues and PRs related to the cluster subsystem.
    questionIssues asking questions about Node.js.
    on Jun 5, 2016
  2. bnoordhuis commented on Jun 5, 2016

    @bnoordhuis
    Member

    I couldn't find any limit

    Language barrier? I'm not sure what limit you're referring to.

  3. jpuncle commented on Jun 5, 2016

    @jpuncle
    Author

    @bnoordhuis I found I could call .setupMaster() any times, not 'called once' that in the api docs

  4. cjihrig commented on Jun 5, 2016

    @cjihrig
    Contributor

    I think the issue is that the docs say cluster.settings is effectively frozen after a single call because ".setupMaster() can only be called once." However, cluster.settings is updated on every call to setupMaster().

  5. jpuncle commented on Jun 5, 2016

    @jpuncle
    Author

    @cjihrig Yes, yes, I meaned it.
    Sorry, my english is bad.

  6. added a commit that references this issue on Jun 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clusterIssues and PRs related to the cluster subsystem.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions