Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring replication lag actions + Simulator (combined) #4144

Merged
merged 23 commits into from
Apr 21, 2023

Commits on May 16, 2021

  1. Adding a simulator for read_only test

    This commit introduces a first simulator for read_only monitoring
    
    ProxySQL itself will simulate hundreds of backends across hundreds of
    hostgroups, all configured in hundreds of clusters, and return read_only
    values for each of the simulated backend.
    The read_only value can be configured in table READONLY_STATUS available in
    the SQLite3Server module.
    
    If a backend isn't configured in table READONLY_STATUS , its default read_only
    value is 1.
    
    It is possible to simulate a lot of simultaneous failover running queries like
    the following:
    
    UPDATE READONLY_STATUS SET read_only=1;
    CREATE TABLE t1 AS SELECT hostname FROM READONLY_STATUS ORDER BY RANDOM() LIMIT 50;
    UPDATE READONLY_STATUS SET read_only=0 WHERE hostname IN (SELECT hostname FROM t1);
    DROP TABLE t1;
    renecannao committed May 16, 2021
    Configuration menu
    Copy the full SHA
    eac6e75 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2021

  1. Configuration menu
    Copy the full SHA
    14428f7 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2021

  1. Configuration menu
    Copy the full SHA
    12d9187 View commit details
    Browse the repository at this point in the history
  2. Fixed typo using 'SAFE_SQLITE3_STEP' instead of 'SAFE_SQLITE3_STEP2' …

    …providing proper waiting for 'SQLITE_BUSY'
    JavierJF committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    ccef4ff View commit details
    Browse the repository at this point in the history
  3. Added documentation for 'ProxySQL_Admin::sql_query_global_mutex' and …

    …'ProxySQL_Admin::save_mysql_servers_runtime_to_database'
    JavierJF committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    e39211c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e538e0b View commit details
    Browse the repository at this point in the history
  5. Removed commented code and commented automatic population of 'mysql_s…

    …ervers' and 'mysql_replication_hostgroups' from 'enable_readonly_testing'
    JavierJF committed Jul 9, 2021
    Configuration menu
    Copy the full SHA
    1d49d39 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2c66cbe View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    adb3bcd View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2023

  1. Refactor and optimize read-only actions method

    This commit optimizes the read-only actions method by removing the dependency on proxysql admin tables. Instead, a separate mapping container is maintained, which records the state of the HGM servers. This avoids the need to call the commit method on every change, which improves performance.
    The changes in this commit also ensure that the mapping container is properly updated when servers are added, removed or modified.
    rahim-kanji committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    aaa959d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    665bdef View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. Resolving conflicts

    # Conflicts:
    #	lib/MySQL_Monitor.cpp
    rahim-kanji committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    3a08040 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2023

  1. Configuration menu
    Copy the full SHA
    a843aed View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'Master/v2.x_refactor_read_only_action' …

    …into v2.x_refactor_read_only_action_with_simulator
    rahim-kanji committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    7710fcb View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'Master/v2.2.0-sqliteserver_read_only' i…

    …nto v2.x_refactor_read_only_action_with_simulator
    rahim-kanji committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    1e0a1cf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3aa4055 View commit details
    Browse the repository at this point in the history
  5. Renaming variables

    rahim-kanji committed Feb 17, 2023
    Configuration menu
    Copy the full SHA
    a73726b View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. Warning fix

    rahim-kanji committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    0d86d0a View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2023

  1. Refactoring replication lag action method

    * Introduced support for handling of bulk servers
    * Commented mysql_servers_wrlock as this method does not use admin tables.
    rahim-kanji committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    55deb8d View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. Configuration menu
    Copy the full SHA
    380e582 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. Merge remote-tracking branch 'Master/v2.x_refactor_replication_lag_ac…

    …tion' into v2.x_refactor_replication_lag_action
    rahim-kanji committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    afc06ab View commit details
    Browse the repository at this point in the history
  2. Few fixes

    rahim-kanji committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    c8a94c1 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. Configuration menu
    Copy the full SHA
    8fa49d7 View commit details
    Browse the repository at this point in the history