Documentation Home
MySQL Utilities 1.5 Manual
Related Documentation Download this Manual
PDF (US Ltr) - 1.5Mb
PDF (A4) - 1.5Mb
HTML Download (TGZ) - 289.5Kb
HTML Download (Zip) - 301.7Kb


MySQL Utilities 1.5 Manual  /  ...  /  Threat Commands

8.4.12 Threat Commands

The threat commands are used to report that a server is not working properly for any reason, these commands can be used by external entities (e.g. connectors) and MySQL Fabric itself.

  • Command: report_error: Report a server error. If there are many issues reported by different servers within a period of time, the server is marked as faulty. Should the server be a primary, the failover mechanism is triggered. Users who only want to set the server's status to faulty after getting enough notifications from different clients must set the update_only parameter to true. By default its value is false.

    Usage:
      mysqlfabric  threat report_error <server_id> [--reporter=UNKNOWN]         
                   [--error=UNKNOWN] [--update_only] [--synchronous]            
    
    Parameters:
      <server_id>  Servers's UUID or HOST:PORT.                                 
    
    Options:
      --reporter=REPORTER  Who has reported the issue, usually an IP address or a
                           host name. By default unknown.                       
      --error=ERROR        Error that has been reported. By default unknown.    
      --update_only=UPDATE_ONLY                                                 
                           Only update the state store and skip provisioning. By
                           default False.                                       
      --synchronous=SYNCHRONOUS                                                 
                           By default True.
    
  • Command: report_failure: Report with certainty that a server has failed or is unreachable. Should the server be a primary, the failover mechanism is triggered. Users who only want to set the server's status to faulty must set the update_only parameter to True. By default its value is false.

    Usage:
      mysqlfabric  threat report_failure <server_id> [--reporter=UNKNOWN]       
                   [--error=UNKNOWN] [--update_only] [--synchronous]            
    
    Parameters:
      <server_id>  Servers's UUID or HOST:PORT.                                 
    
    Options:
      --reporter=REPORTER  Who has reported the issue, usually an IP address or a
                           host name. By default unknown.                       
      --error=ERROR        Error that has been reported. By default unknown.    
      --update_only=UPDATE_ONLY                                                 
                           Only update the state store and skip provisioning. By
                           default False.                                       
      --synchronous=SYNCHRONOUS                                                 
                           By default True.                                     
    

User Comments
Sign Up Login You must be logged in to post a comment.