Commit Graph

1319 Commits (e487ddf8ecfddebe661b61afa775fa577ce4e34d)

Author SHA1 Message Date
Javier Jaramago Fernández c50a7053ad Fix monitoring not working for AWS Aurora auto-discovered instances #3797
4 years ago
René Cannaò ea3a60c9ae
Merge pull request #3783 from sysown/v2.x-query_digest_preserve_comment
4 years ago
Javier Jaramago Fernández a10cb49cca Remove deprecated variable 'mysql-client_multi_statements'
4 years ago
Javier Jaramago Fernández 5480012329 Remove definitions of deprecated variable 'mysql-client_found_rows'
4 years ago
Javier Jaramago Fernández 8956b672f4 Remove 'admin_mysql_ifaces' from metrics labels for 'proxysql_servers_clients_status'
4 years ago
René Cannaò b5bdb47dae Add support for wsrep_osu_method
4 years ago
Javier Jaramago Fernández 6d59956b5f Change conn_pool metrics update functions to use 'const refs'
4 years ago
Javier Jaramago Fernández 5ed8bd5517 Add new metrics for 'proxysql_servers_checksum' and 'proxysql_servers_metrics'
4 years ago
Javier Jaramago Fernández 3e906acc04 Add new metric 'proxysql_servers_clients_status_last_seen_at'
4 years ago
Javier Jaramago Fernández 28230499d5 Add new prometheus helper function and improve others definitions
4 years ago
Javier Jaramago Fernández 35ad2f68c2 Implement new variable 'mysql-query_digests_keep_comment'
4 years ago
René Cannaò 25fc1def8e Fixed a buffer overflow in new variables
4 years ago
Javier Jaramago Fernández 01a6e1c9bf Add new prometheus metric 'proxysql_version_info' #3483
4 years ago
René Cannaò fd05b37762 Added support for more session variables:
4 years ago
René Cannaò 43c6acb218
Merge branch 'v2.x' into v2.1.2-cluster
4 years ago
René Cannaò db8275a66d
Merge branch 'v2.x' into v2.x-3504
4 years ago
André Cabaça 977bf0f1da
Removed dead code
4 years ago
René Cannaò 268f8520fe Added skeleton to support group_replication_consistency #3731
4 years ago
René Cannaò d20683c589
Merge pull request #3702 from sysown/v2.x-variables
4 years ago
René Cannaò 8d83bd3562
Merge branch 'v2.x' into v2.1.2-cluster
4 years ago
René Cannaò d03c823805
Merge pull request #3748 from sysown/v2.x-PtrArray_refact
4 years ago
René Cannaò 630124b774 Minor improvement for cache affinity
4 years ago
René Cannaò cb34b82c3a
Merge pull request #3680 from sysown/v2.x-fixes_for_query_diggest_issues
4 years ago
René Cannaò 330feaae8b Changed variables order in PtrSizeArray/PtrArray
4 years ago
René Cannaò e983fc6827 Adding support for more MySQL variables
4 years ago
René Cannaò 2ba9c401f1 Bug fixes in the new implementation of tracking mysql variables
4 years ago
René Cannaò e0e149d9b2
Merge pull request #3710 from sysown/v2.x-3690
4 years ago
Javier Jaramago Fernández b9a15947af Added a TODO comment for a future removal of tracked variable 'SQL_CHARACTER_SET_DATABASE' #2021
4 years ago
Javier Jaramago Fernández 8cd505bde6 Added support for 'COM_RESET_CONNECTION' #2021
4 years ago
Javier Jaramago Fernández bcb009fc24 Revert "Merge pull request #3645 from sysown/v2.x-2021"
4 years ago
Javier Jaramago Fernández 88dc295781 Fixed invalid handling of large packets in 'SQLite3_to_MySQL' function #3690
4 years ago
René Cannaò 497ef76478
Merge branch 'v2.x' into v2.x-variables
4 years ago
René Cannaò d335bfb899 Improvements on how MySQL variables are processed
4 years ago
René Cannaò 6485d1549d
Merge pull request #3700 from sysown/v2.x-multiple_port_delay
4 years ago
Jared Jetsel 111117bbc8 Merge branch 'v2.x-3674' of https://github.com/jaredev/proxysql into v2.x-3674
4 years ago
Jared Jetsel 962116f1b6 Fixed typo, memory leak, and documentation.
4 years ago
René Cannaò b59467371a
Merge branch 'v2.x' into v2.x-3674
4 years ago
René Cannaò 33fba7641a Speed up start time with multiple listeners #3699
4 years ago
René Cannaò e892413d1a
Merge branch 'v2.x' into v2.x-2021
4 years ago
René Cannaò 698031eb7a
Merge pull request #3676 from sysown/v2.x-3592
4 years ago
René Cannaò a6edd02a9b Revert "Merge branch 'v2.x' into v2.x-2021"
4 years ago
René Cannaò 3a3931f2d4
Merge branch 'v2.x' into v2.x-2021
4 years ago
René Cannaò 22ed00e2f7
Merge pull request #3652 from sysown/v2.x-3606
4 years ago
René Cannaò 8cea730de0
Merge pull request #3661 from sysown/v2.x-3649
4 years ago
Javier Jaramago Fernández 0426c49b77 Added digit replacement to second stage parsing, also added support for grouping and groups grouping
4 years ago
René Cannaò 79d1d8742c Testing unbalanced weight
4 years ago
Javier Jaramago Fernández c26d1a5034 Added new functions 'mysql_query_digest_and_first_comment_2' and 'mysql_query_digest_and_first_comment_one_it' as part of query digests rework
5 years ago
Jared Jetsel d114dbe3a3 Const strings where appropriate and improved test for statistics
5 years ago
Jared Jetsel 0ef478e597 In debug mode, the handlers for ProxySQL_Statistics are called even if the web interface plugin is not loaded. This way the code can be tested even if the plugin is not loaded. Added new member function ProxySQL_Statistics::knows_variable_name(), which is used to check if a variable_name is in the map. This is useful to do a check before get_variable_id_for_name() in instances where it is undesirable to load or create entries in the lookup table, while keeping direct access to the map private and mutex protected. In ProxySQL_Statistics::get_variable_id_for_name, wrapped the variable_id select code in a lambda so that it could be reused instead of calling sqlite3_last_insert_rowid(), as there were some thread safety concerns which potentially could produce incorrect ids. Changed the insert to use execute() instead of execute_statement() instead, sufficient and simpler. Added error in case the function could not find, load, or generate a new id.
5 years ago
Jared Jetsel 012cf16eaa Made the new member functions public. If these are only accessible internally by this class, or by the web interface plugin, consider making private and friend class to the plugin. As the extent of their usage is not yet known to me, making them public for now. Caution on adding new lookup entries unnecessarily.
5 years ago
Jared Jetsel 1adaf74170 Modified ProxySQL_Statistics to have two new member functions and two new private members. These are used to map the string variable_name to an integer variable_id to improve scalability. See documentation about their usage. Updated the MySQL_Threads_Hander_sets_v2 function to load the variable_name_id_map if it is empty for initial load from the lookup table. The prepared statement binds was changed to use the int64 variable_id retreived from the map.
5 years ago
Jared Jetsel d644f13780 Updated the SQLite history_mysql_status_variables create table statement to use variable_id instead of name for improved scalability. Added an index for the sql_status_variables table. Added lookup table create statement for history_mysql_status_variables_lookup table to refer the variable_id integer key to the variable_name string. Inserted the new table definition and execute code for the create index that were added. As the code has not yet received public release, there is no concern of keeping the previous table definition, and so the version number refers to v2.4.0.
5 years ago
Javier Jaramago Fernández 71a1f64f2d Added new metric 'proxysql_fds_in_use' reporting the current number of file descriptors in use #3592
5 years ago
Javier Jaramago Fernández 6a92cc9238 Added new command 'PROXYSQL_SIMULATOR' with support for simulating connection errors #3649
5 years ago
Javier Jaramago Fernández 4838d75cd3 Added new mysql variable 'mysql-unshun_algorithm' #3649
5 years ago
René Cannaò 4b04332473 Add optional mutex in MySrvC::connect_error()
5 years ago
René Cannaò a752292b9e Added function unshun_server_all_hostgroups()
5 years ago
Javier Jaramago Fernández b0608af7ee Added documentation for 'MySQL_Session::finishQuery' and 'MySQL_Session::RequestEnd' #3606
5 years ago
Javier Jaramago Fernández d00c394782 Added a TODO comment for a future removal of tracked variable 'SQL_CHARACTER_SET_DATABASE' #2021
5 years ago
Javier Jaramago Fernández e76882c2f9 Added support for 'COM_RESET_CONNECTION' #2021
5 years ago
Javier Jaramago Fernández 53da63eb99 Improved auth performed for 'COM_CHANGE_USER' with impl from 'process_pkt_handshake_response' #3504
5 years ago
Javier Jaramago Fernández 8e97f5a19c Merge branch 'v2.x' of github.com:sysown/proxysql into v2.x-3504
5 years ago
Javier Jaramago Fernández db9b4ad70f
Merge pull request #3617 from sysown/v2.x-client_err_limit
5 years ago
Javier Jaramago Fernández 4f94fd3d0f
Merge pull request #3533 from sysown/v2.x-gr_replication_lag_action
5 years ago
Javier Jaramago Fernández 416a0470a5 Added tables 'stats_mysql_client_host_cache' and 'stats_mysql_client_host_cache_reset' exposing entries in 'client_host_cache'
5 years ago
Javier Jaramago Fernández 6e533cb5d9 Merge branch 'v2.x' of github.com:sysown/proxysql into v2.x-client_err_limit
5 years ago
René Cannaò b485623d6f Reimplemented the handling of comments in 'USE' statements #3493
5 years ago
René Cannaò f7bb4d201b Add get_current_query_rules_fast_routing_count()
5 years ago
René Cannaò 2ae218f7ed Cluster: sync of proxysql_servers ensures that checksum is correct
5 years ago
René Cannaò 66c4c6b0a8 Adding new mutex in ProxySQL_Admin::save_proxysql_servers_runtime_to_database()
5 years ago
René Cannaò 48562faaf1 Merge branch 'v2.x' into v2.1.2-cluster
5 years ago
René Cannaò cf33522a25 Commenting unused code
5 years ago
René Cannaò 0da250ec8d
Merge pull request #3491 from csoulios/ldap-auth-changes
5 years ago
René Cannaò 08ea308033
Merge pull request #3552 from sysown/v2.x-ssl_no-rsa
5 years ago
René Cannaò dd71fcd81f Shun "soft" and "hard" in group replication lag
5 years ago
René Cannaò ebbd9845bd
Merge branch 'v2.x' into v2.1.2-cluster
5 years ago
René Cannaò 228c0bfd79
Merge branch 'v2.x' into v2.x-3504
5 years ago
Hormoz K 7762dea993 add crl, crlpath, and capath options
5 years ago
René Cannaò 1f81892adc Commenting unused code
5 years ago
René Cannaò af27c0b108 Merge branch 'v2.x' into v2.1.2-cluster
5 years ago
René Cannaò 3de13665e8
Merge pull request #3557 from sysown/v2.x-ccov2
5 years ago
René Cannaò 538feddc87 Code cleanup
5 years ago
René Cannaò 78f8821215 More code coverage mostly related to Admin
5 years ago
Javier Jaramago Fernández e2dd0a30cd Initial implementation for 'client_error_limit'
5 years ago
René Cannaò b912d978b0 Removing or commenting legacy/unused code
5 years ago
René Cannaò 7f0b358ed8
Merge pull request #3544 from sysown/v2.x-3525
5 years ago
René Cannaò 241a5e54d7 Draft to reimplement how session variables are handled
5 years ago
Javier Jaramago Fernández 4ea7b750fd Moved helper function 'proxy_mysql_stmt_close' from 'gen_utils' to 'MySQL_Protocol' #3525
5 years ago
René Cannaò bc4109404b Remove unused variables
5 years ago
René Cannaò fd7b5f8f50 Implemented PROXYSQL RELOAD TLS
5 years ago
René Cannaò e38562df40
Merge branch 'v2.x' into v2.x-PS-err3024
5 years ago
René Cannaò fce7a0204c Handle binary protocol resultset with ERR #3547
5 years ago
Javier Jaramago Fernández 297bc8bae6 Refactored calls to 'mysql_stmt_close' into function holding preparation of 'MYSQL_STMT*' parameter #3525
5 years ago
Christos Soulios 6030677258 Merge branch 'v2.x' into ldap-auth-changes
5 years ago
Javier Jaramago Fernández a6c2246276 Replaced 'TEST_GROUPREP' impl to better match approach followed for 'READONLY'
5 years ago
Javier Jaramago Fernández b929758a87 Several improvements to 'group_replication_lag_action'
5 years ago
Javier Jaramago Fernández 0850c4d596 Improved the documentation for 'group_replication_lag_action'
5 years ago
Javier Jaramago Fernández 53bf18b428 Changed setting readonly servers 'OFFLINE' due to replication lag behavior in favor of general server 'SHUNNING'
5 years ago
Christos Soulios 9d19c70e8c Merge branch 'v2.x' into ldap-auth-changes
5 years ago
Javier Jaramago Fernández 1f4f86d5ce Added mysql variable to enable unsupported query 'LOAD DATA LOCAL INFILE' issuing warning message #3500
5 years ago
René Cannaò 5ede60ec9f
Merge pull request #3499 from sysown/v2.x-codecov1
5 years ago
Christos Soulios 21803220e1 Merge branch 'v2.x' into ldap-auth-changes
5 years ago
René Cannaò 7950e9d102 Increasing the amount of entries stored in mysql_server_aws_aurora_log
5 years ago
Christos Soulios 4359b1f72f Count connections for frontend user, not backend
5 years ago
Javier Jaramago Fernández 5e0dc81e5e Added support for 'Auth Switch Request' for 'COM_CHANGE_USER' #3504
5 years ago
René Cannaò 1ee232bf85 Removed dead code from MySQL_Session
5 years ago
René Cannaò beddc41b1f Cleanup of dead code in MySQL_Protocol
5 years ago
René Cannaò 2ce9ed9686 Disabled in MySQL_Connection code related to store results
5 years ago
René Cannaò 257949f623 Removing MySQL_HostGroups_Manager::server_add()
5 years ago
René Cannaò 81ed72f3fe Removed dead functions from MySQL_Data_Stream()
5 years ago
René Cannaò 81e0bf7edb
Merge pull request #3467 from sysown/v2.x-misc1
5 years ago
Javier Jaramago Fernández 0dde4adb21 Added support for comments in 'USE' statements #3493
5 years ago
Christos Soulios 72d6602ffa Removed commented code
5 years ago
Christos Soulios c7dfb4f9da Removed functions that were not used
5 years ago
Christos Soulios 64ae971ff5 Removed methods that were not used
5 years ago
Christos Soulios df19d16f14 Passed attributes as param to LDAP auth
5 years ago
René Cannaò 6c7503f85f Improve debugging when unable to reach hostgroup
5 years ago
René Cannaò b8b840fe30 More verbosity when proxysql detects a broken connection
5 years ago
René Cannaò e14accd78b
Merge pull request #3453 from sysown/v2.2.0-3427
5 years ago
Javier Jaramago Fernández 9e70e3918b Reversed adding 'first_comment' to 'compute_hash' #3427
5 years ago
Javier Jaramago Fernández 028623c06c Added 'first_comment' to 'MySQL_STMT_Global_info' to allow processing it during 'STMT_EXECUTE' #3427
5 years ago
René Cannaò a2c82bd95a
Merge pull request #3445 from sysown/v2.2.0-opt2
5 years ago
René Cannaò d3c243d898
Merge pull request #3420 from sysown/v2.2.0-3419
5 years ago
René Cannaò 49c3b5476b More code cleanup for MySQL variables
5 years ago
René Cannaò 9e3d939ed3 More code cleanup for MySQL variables
5 years ago
René Cannaò eb8dc23dad Code cleanup for MySQL variables
5 years ago
René Cannaò 57fd24c2d6 Several code cleanup in MySQL_Thread
5 years ago
Javier Jaramago Fernández 04d3947212 Implemented sync support for 'mysql_ldap_mapping' table
5 years ago
Javier Jaramago Fernández ba1762bc3e Implemented sync support for 'ldap-%' global variables
5 years ago
René Cannaò 86c95dbb18 Cluster node exports admin-mysql_ifaces
5 years ago
René Cannaò 4f3c133cd0 Implemented variable cluster_sync_interfaces
5 years ago
René Cannaò 7cc750a111 Merge branch 'v2.1.1' into v2.1.2-cluster
5 years ago
René Cannaò f0e3a87159 Introduce ignore_vars in MySQL_Variables
5 years ago
René Cannaò d53578f269
Merge pull request #3353 from sysown/v2.1.1-deprecate_forward_autocommit
5 years ago
René Cannaò 428f2e7e4f
Merge pull request #3358 from sysown/v2.1.1-3357
5 years ago
René Cannaò 26790c3679
Merge pull request #3349 from sysown/v2.1.1-MonRo
5 years ago
René Cannaò 3266cfc506
Merge pull request #3343 from sysown/v2.1.1-spiffe
5 years ago
Javier Jaramago Fernández 228fe0640f Closes #3357: Ported 'v1.4.14-show-warnings' and added new mysql-variable to control it
5 years ago
René Cannaò a0fb4821cc Deprecate mysql-forward_autocommit #3253
5 years ago
René Cannaò f7754a5e00 HostGroups lookup using unordered_map
5 years ago
René Cannaò 532a0397f7 Faster MySQL_HostGroups_Manager::read_only_action
5 years ago
René Cannaò 2b8500aa36 Do not allow CHANGE_USER with spiffe
5 years ago
René Cannaò 7c0bde5f99 Working prototype for SPIFFE
5 years ago
Javier Jaramago Fernández f31d046868 Removed unused class member 'MySQL_HostGroups_Manager::p_err_map_access'
5 years ago
Javier Jaramago Fernández 75af796049 Merge remote-tracking branch 'origin/v2.1.1' into v2.1.1-3248
5 years ago
Javier Jaramago Fernández 32c686487b Merge remote-tracking branch 'origin/v2.1.1' into v2.1.1-3324
5 years ago
Javier Jaramago Fernández d507880cbb Added new metric 'proxysql_myhgm_auto_increment_multiplex_total' tracking the number of times that 'auto_increment_delay_multiplex' is triggered
5 years ago
Javier Jaramago Fernández 4b81e21d57 Added comments, simplified 'stmt->result.data' assignment and minor cleanup for 'process_rows_in_ASYNC_STMT_EXECUTE_STORE_RESULT_CONT'
5 years ago
Javier Jaramago Fernández 84e205dd5a Removed 'PROXYSQL_MONITOR_ERR' enum in favor of single enum 'PROXYSQL_MYSQL_ERR' holding all ProxySQL errors for backend connections
5 years ago
Javier Jaramago Fernández 9713abd3a0 Improved naming on new 'PROXYSQL_ERR' enums and explicit values
5 years ago