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

proxysql_galera_checker doesn't check if another instance of itself is already running

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In case of bad connection to the PXC, there may be multiplie instances of proxysql_galera_checker scripts due to mysql server timeout variable - https://github.com/percona/proxysql-admin-tool/blob/master/proxysql_galera_checker#L138

      In that case proxysql's table mysql_servers may be overwritten by multiplie scripts at once, causing a dissonance and resulting in broken cluster view.

       

      Possible solution is to use a locking mechanism such as flock, which is usually installed by default on linux systems.

       

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                ramesh.sivaraman Ramesh Sivaraman
                Reporter:
                beresnev Nikita
              • 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 - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 15 minutes
                  2h 15m