Commit Graph

1215 Commits (7d5da60ca9ab68c51b7145b2f405eb00a3cb8418)

Author SHA1 Message Date
René Cannaò b9c6f6e33b
Merge pull request #3790 from sysown/v2.x-prom_cluster_metrics
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
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
Javier Jaramago Fernández 01a6e1c9bf Add new prometheus metric 'proxysql_version_info' #3483
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ò 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
4 years ago
Jared Jetsel d114dbe3a3 Const strings where appropriate and improved test for statistics
4 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.
4 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.
4 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.
4 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.
4 years ago
Javier Jaramago Fernández 71a1f64f2d Added new metric 'proxysql_fds_in_use' reporting the current number of file descriptors in use #3592
4 years ago
Javier Jaramago Fernández 6a92cc9238 Added new command 'PROXYSQL_SIMULATOR' with support for simulating connection errors #3649
4 years ago