Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34230

Implement setFreeMonitoring command and actionTypes

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.6
    • Component/s: None
    • Labels:
      None

      Description

      {setFreeMonitoring : 1, action: (enable | disable) }

      Parameters:
      action: enable|disable - see description before
      Returns:
      ok: bool - true if the command was successful, false otherwise
      This command can only be run on primaries.
      It requires the user to have action setFreeMonitoring to run. This action is part of the clusterManager role.
      If the state changes from disabled to enabled, or from enabled to enabled the server will register itself with Cloud. A registration call will occur regardless of whether the server already attempted registration or was previously registered.
      Only one setFreeMonitoring can proceed at a time. The command behaves as if there is a global lock coordinate all callers of the command.
      If the state changes from enabled to disabled, the server will stop uploading metrics.
      If the state changes from disabled to disabled, the server will do nothing
      If registration succeeds, it returns

      { ok: 1 }

      .
      If registration fails, it returns

      { ok: 0, errmsg ... }

      If registration times out, it returns

      { ok: 0, errmsg : timeout }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: