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

proxysql-admin verification on --write-node

    XMLWordPrintable

    Details

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

      Description

      proxysql-admin should validate the input of --write-node . It allows you to pass the hosts without port. Later when if checks the priority of the hosts, it requires it to have the format of host:port:

       

      [root@proxysql proxysql]# mysql -u admin -padmin -P6032 --protocol=TCP -e "SELECT hostname,port FROM mysql_servers WHERE status='ONLINE' and comment='READ' and hostgroup_id='11' " | sed 's|\t|:|g' | tr '\n' ' '
      mysql: [Warning] Using a password on the command line interface can be insecure.
      hostname:port 192.168.35.91:3306 192.168.35.92:3306
      
      [root@proxysql proxysql]# cat host_priority.conf
      # ProxySQL Host Priority File
      # Specify nodes in order from highest priority to lowest
      192.168.35.91
      192.168.35.92
      192.168.35.93

      At this point, the functionality won't work.

        Attachments

          Activity

            People

            • Assignee:
              kenn.takara Kenn Takara
              Reporter:
              marcelo.altmann Marcelo Altmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: