Commit Graph

3022 Commits (55fbef61fa8d2ced4e7e5d3a773e857c2cf3c3a9)

Author SHA1 Message Date
Javier Jaramago Fernández 01a6e1c9bf Add new prometheus metric 'proxysql_version_info' #3483
4 years ago
Javier Jaramago Fernández 3a19f717ac Fix 'mysql-connect_retries_delay' not being honored
4 years ago
Javier Jaramago Fernández b24459cd9a Remove extra logging info for troubleshooting SHUNNING errors
4 years ago
Javier Jaramago Fernández c3c1a50d91 Add extra logging info for troubleshooting SHUNNING errors
4 years ago
René Cannaò ae80989638
Merge pull request #3305 from sysown/v2.1.2-cluster
4 years ago
René Cannaò 43c6acb218
Merge branch 'v2.x' into v2.1.2-cluster
4 years ago
René Cannaò 3ae299cb97 Add more verbosity for TAP test_unshun_algorithm-t
4 years ago
René Cannaò 4bfe674064
Merge branch 'v2.x' into v2.x-3504
4 years ago
René Cannaò 09a1388750
Merge pull request #3766 from sysown/v2.x-3765
4 years ago
René Cannaò db8275a66d
Merge branch 'v2.x' into v2.x-3504
4 years ago
Javier Jaramago Fernández b528bc9b4f Fixed typo in 'bio_st' struct doc #3765
4 years ago
Javier Jaramago Fernández 9dad81c4b2 Update 'bio_st' OpenSSL internal struct definition to match library #3765
4 years ago
Javier Jaramago Fernández c51d78c10b Fix 'create_new_connection' annotation failure due to thread-local connection pool
4 years ago
Javier Jaramago Fernández 06c7c56f4f Fix issues with 'fast_forward' and 'DEPRECATE_EOF'
4 years ago
René Cannaò d20683c589
Merge pull request #3702 from sysown/v2.x-variables
4 years ago
René Cannaò ba929e2851 Improved handling of sql_big_selects variable
4 years ago
René Cannaò 8d83bd3562
Merge branch 'v2.x' into v2.1.2-cluster
4 years ago
René Cannaò 9f264fcf1d In Cluster pull_mysql_servers_from_peer() lock mysql_servers only if mysql servers tables are going to be written.
4 years ago
René Cannaò 8afbadaaef In c_tokenizer replace initializer list with simple memset
4 years ago
René Cannaò a7d1dc5b5c Rename c_tokenizer.c to c_tokenizer.cpp
4 years ago
Miro Stauder 118e58dd7e rename variable
4 years ago
Miro Stauder fbd3eade83 add -std=c11 flag
4 years ago
René Cannaò d03c823805
Merge pull request #3748 from sysown/v2.x-PtrArray_refact
4 years ago
René Cannaò 66b30806a5 Removing a comment
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
Javier Jaramago Fernández 77a114ebc8 Fixed 'stats_mysql_client_host_cache/_reset' table definitions with extra spaces for formatting #3734
4 years ago
Javier Jaramago Fernández 48261edf59 Field 'last_updated' from 'stats_mysql_query_digest' is now reported in seconds #3734
4 years ago
René Cannaò e983fc6827 Adding support for more MySQL variables
4 years ago
René Cannaò 9ee636395d Remove poor optimization to disable wsrep_sync_wait #3723
4 years ago
René Cannaò 00916441b9 Admin support for SELECT current_user() and user()
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 da8d343051 Fixed 'user_attributes' not being preserved during 'COM_CHANGE_USER' #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
Javier Jaramago Fernández 0c7934aab8 Replaced 'mysql_query_digest_and_first_comment' with new implementation 'mysql_query_digest_and_first_comment_2'
4 years ago
Javier Jaramago Fernández 81ebfef917 Removed unused 'cmnt_type_1_st' parameter for 'process_cmnt_type_3' and 'process_cmnt_type_2'
4 years ago
Javier Jaramago Fernández 617f916479 Several improvements for 'mysql_query_digest_and_first_comment_2' implementation
4 years ago
Javier Jaramago Fernández 78d4776f68 Ported NULL termination added to new implementation of 'query_digest_and_first_comment' into old one
4 years ago
Javier Jaramago Fernández 291a254056 Fixed checking for boundary checks when copying 'cmd' comments to digest result buffer
4 years ago
René Cannaò ff05b5fd3c MYSQL_COM_STATISTICS was displaying wrong number of slow queries
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
Javier Jaramago Fernández 3e34b603fc Multiple improvements to stage parsing for new 'mysql_query_digest_and_first_comment_2'
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ò 7edfec6f3f
Merge pull request #3657 from sysown/v2.x-3655
4 years ago
René Cannaò 698031eb7a
Merge pull request #3676 from sysown/v2.x-3592
4 years ago
René Cannaò aed1f205d4 Merge branch 'v2.x' into v2.x-3655
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
Javier Jaramago Fernández 82e5cb5c7c Introduced 'NULL' replacing in the staging impl, changed variable name and some functions params order
4 years ago
Javier Jaramago Fernández adee2655de Improved float parsing moving parsing logic into 'is_digit_string' instead of skipping characters copy
4 years ago
René Cannaò ab3f9bcedc PROXYSQLTEST 51 and 52 on debug build only
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
Javier Jaramago Fernández 141086cc9c Added missing case of space removal before literals for 'mysql_query_digest_and_first_comment'
5 years ago
Javier Jaramago Fernández 45b557ccfd Added handy comments to original 'mysql_query_digest_and_first_comment' implementation
5 years ago
Javier Jaramago Fernández 1c1b29b1f0 Added size check and added space removal after opening parenthesis when followed by number
5 years ago
Javier Jaramago Fernández aa09e86ca4 Store previous character as ending delimiter found for string literal
5 years ago
Javier Jaramago Fernández 20347b1e8e Removed extra spaces before NULL values when 'query_digests_replace_null=1'
5 years ago
Javier Jaramago Fernández c6249d4715 Added removal of extra space before closing parenthesis when previous char has been replaced
5 years ago
Javier Jaramago Fernández 7e41e793d9 Avoiding comma copy when 'groping_limit' is exceeded replaced in favor of deletion for avoiding unnecessary removals
5 years ago
Jared Jetsel 910a626652 Fixed error messages
5 years ago
Jared Jetsel d114dbe3a3 Const strings where appropriate and improved test for statistics
5 years ago
Javier Jaramago Fernández c91db18c05 Several fixes for parsing issues in 'mysql_query_digest_and_first_comment'
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 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
René Cannaò 5efb1dd020
Merge pull request #3664 from VinaySagarGonabavi/u/gonabavi/using_transaction_isolation_should_not_disable_multiplexing
5 years ago
Javier Jaramago Fernández d0ed1895fa Fixed typo in 'round_intv_to_time_interval' preventing parameter update
5 years ago
Javier Jaramago Fernández 545f5c5a29 Fixed typos found in 'th_metrics_map' definition
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
René Cannaò 9293dea199 Do not shun backend for error 3118
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
Vinay Sagar Gonabavi 5bd42079f7 Add transaction_isolation to the list of hardcoded session variables that do not disable ProxySQL multiplexing
5 years ago
Javier Jaramago Fernández dc4bf3ccce Added 'schemaname' to userinfo for 'PROXYSQL INTERNAL SESSION' command #3655
5 years ago
René Cannaò 4b04332473 Add optional mutex in MySrvC::connect_error()
5 years ago
René Cannaò 7ef783487c Adding skeleton for PROXYSQL_SIMULATOR
5 years ago
René Cannaò a752292b9e Added function unshun_server_all_hostgroups()
5 years ago
René Cannaò b150313ef8
Merge pull request #3658 from sysown/v2.x-asan_ci_run
5 years ago
Javier Jaramago Fernández 86e5caf6ea Fixed handling of splitted packets during 'CONNECTING_SERVER' state for 'FAST_FORWARD' mode
5 years ago
René Cannaò d1e70578ba Adding support links to proxysql.com
5 years ago
Javier Jaramago Fernández 062381efd4 Fixed crashes in 'MySQL_Session::get_pkts_from_client' when 'mysql-query_digests' are disabled #3655
5 years ago
Javier Jaramago Fernández 3fd1cd3f13 Replaced non-thread safe 'strtok' function in favor of 'strtok_r' for 'IsKeepMultiplexEnabledVariables'
5 years ago
Javier Jaramago Fernández a49433cc91 Manually set 'POLLOUT' event for 'SHOW_WARNINGS' session status to ensure sending by 'MySQL_Connection' #3606
5 years ago
Javier Jaramago Fernández 4312cd9a72 Moved session cleanup after error report for 'SHOW_WARNINGS' #3606
5 years ago
Javier Jaramago Fernández c3d0ecd84f Improved implementation of 'mysql-log_mysql_warnings_enabled' #3606
5 years ago
Javier Jaramago Fernández cbe926b4f7
Fix regression introduced for 'at signs' parsing for multiplexing disabling (#3647)
5 years ago
Javier Jaramago Fernández 9829c6d37b
Fixes crashes related with 'client_error_limit' and connection timeouts (#3646)
5 years ago