Uploaded image for project: 'ProxySQL Admin Scripts'
  1. ProxySQL Admin Scripts
  2. PSQLADM-115

proxysql_node_monitor fails with more than one command in scheduler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Pending Release
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.4.10
    • Fix Version/s: 1.4.12
    • Component/s: None
    • Labels:
      None

      Description

      Line 914:

      CLUSTER_TIMEOUT=$(proxysql_exec $LINENO "SELECT DISTINCT MAX(interval_ms / 1000 - 1, 1) FROM scheduler")

      This returns 2 lines if there are more than one task is configured and the two tasks have a different interval_ms value.

      I think you wanted to achieve something like this:

      CLUSTER_TIMEOUT=$(proxysql_exec $LINENO "SELECT MAX((SELECT MAX(interval_ms / 1000 - 1) FROM scheduler), 1)"){{}}

        Attachments

          Activity

            People

            • Assignee:
              kenn.takara Kenn Takara
              Reporter:
              mosi0815 Ralph Moser
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2 hours
                2h