Commit Graph

1412 Commits (bddf376f160ffec3c2e7fdfce3b10c2bc0660435)

Author SHA1 Message Date
René Cannaò 6778ec0b51
Merge pull request #4081 from sysown/v2.x-freebsd-fixes
3 years ago
Rahim Kanji ae40be4312 Resolve conflicts
3 years ago
Rahim Kanji 3bb4bcf1c1 * Added few comments and fixed comment style
3 years ago
Javier Sánchez Parra f5281b236b Add soft TTL to Query Cache entries
3 years ago
Javier Sánchez Parra 2ffbf94fb7 Cleanup unused QueryEntry::set()
3 years ago
Miro Stauder f095b77877 define ETIME ifndef and usage note
3 years ago
Miro Stauder dacec21292 define ETIME for FreeBSD
3 years ago
René Cannaò 36575d273a Several code improvements
3 years ago
Javier Jaramago Fernández 51c723f6fc DRAFT: Monitor 'Group replication' rework
3 years ago
Jared Jetsel 1db2037e5b _MYSQL_COM_BINLOG_DUMP_GTID command
3 years ago
René Cannaò 71e2510ef6 Code cleanup on MySQL_HostGroups_Manager
3 years ago
Rahim Kanji 340a4f3318 Added proxysqltest: monitor task forced timeout
3 years ago
René Cannaò a2be18881a
Merge pull request #4062 from sysown/v2.x-fast_forward_ssl2
3 years ago
Rahim Kanji 11be1f1aa3 * Bulk processing of ready tasks based on provided percentage
3 years ago
Rahim Kanji 821a6f487e * Moved task_handler code from .hpp to .cpp
3 years ago
Rahim Kanji 6da927145c Few optimizations and fixes
3 years ago
Rahim Kanji ebc7ebf501 * Added total poll timeout in case poll is waiting on stale connection.
3 years ago
Rahim Kanji 147d23a815 Refactoring ProxySQL Monitor Module
3 years ago
Rahim Kanji 1a47d98b41 Refactoring ProxySQL Monitor Module
3 years ago
Javier Jaramago Fernández 06d4fe5775 Fix invalid memory forwarding to 'MyDS_real_query' for empty queries
3 years ago
René Cannaò c993eda2e4 SSL and fast_forward : removed double frees
3 years ago
René Cannaò cdc8423569 Adding some details on SSL and fast_forward implementation
3 years ago
René Cannaò 9dde792c46 Merge branch 'v2.x-fast_forward_ssl' into v2.x-fast_forward_ssl2
3 years ago
Javier Jaramago Fernández cdaa8b1764 Honor 'mysql-verbose_query_error' format for warnings #3935
3 years ago
Javier Jaramago Fernández be127f53e4 Add compiler format check pragma to 'proxy_error_func' and 'proxy_debug_func'
3 years ago
René Cannaò 6bbed9683e
Merge pull request #4045 from sysown/v2.x-4000
3 years ago
René Cannaò ec93211d02
Merge pull request #4024 from sysown/v2.x_LocalDNSCache
3 years ago
Javier Jaramago Fernández c83517c406 Several improvements to RESTAPI interface #4001
3 years ago
Javier Jaramago Fernández bcfc2329c5 Rework 'wexecvp' replacing legacy 'select' in favor of 'poll' #4001
3 years ago
Rahim Kanji c552fdb111 * Added DNS cache monitoring for ProxySQL servers.
3 years ago
Javier Sánchez Parra 23cab574ac Add new variable 'mysql-parse_failure_logs_digest'
3 years ago
René Cannaò 7dbfea7f05
Merge pull request #4016 from sysown/v2.x-fix_ldap_mapping_startup
3 years ago
René Cannaò a5dfb66936
Merge pull request #4008 from rahim-kanji/v2.x-3991
3 years ago
Rahim Kanji f9c5f8af92 Added Debug logs
3 years ago
Rahim Kanji 4885e1680d Merge remote-tracking branch 'Master/v2.x' into v2.x_LocalDNSCache
3 years ago
René Cannaò 86330fb1db
Merge pull request #3974 from sysown/v2.x-macos
3 years ago
Rahim Kanji dbfb99ce71 * Added hostname and ip information in mysql_connection
3 years ago
Javier Jaramago Fernández d4aea7c9db Fix support for 'stats_mysql_users' for LDAP plugin
3 years ago
Rahim Kanji eef3ddfcd6 Heap allocated host pointer for async mysql_real_connect_start function
3 years ago
Rahim Kanji 2bbb6305b5 Added DNS Cache enable/disable flag handling.
3 years ago
Rahim Kanji 7805924779 Feature: ProxySQL local DNS Cache
3 years ago
Javier Jaramago Fernández 41ef582fc5 Add new field 'stmt_id' to eventslog for 'STMT_PREPARE|STMT_EXECUTE' events
3 years ago
Rahim Kanji 8ebb990002 Resolves Issue 3991
4 years ago
René Cannaò 83ffb729bb
Merge pull request #3946 from sysown/v2.x-3923
4 years ago
René Cannaò 52842f6056 Build on MacOS
4 years ago
Javier Jaramago Fernández bcc6532d66 Modify previous impl for 'auto_increment_delay_multiplex_timeout_ms' and fix 'connection_delay_multiplex_ms'
4 years ago
Javier Jaramago Fernández 583218e9c5 Fix typo in 'MySQL_Session::hgs_expired_conns' doc
4 years ago
Javier Jaramago Fernández a67db17709 Fix current 'auto_increment_delay_multiplex_timeout_ms' behavior #3923
4 years ago
René Cannaò 301bb09a4d
Merge pull request #3921 from sysown/v2.x-cluster_cmp_checksums
4 years ago
Javier Jaramago Fernández f880338477 Fix typos in some cluster queries definitions doc
4 years ago
René Cannaò f960a4d9b7
Merge pull request #3903 from sysown/v2.x-tests_220619
4 years ago
René Cannaò 18c400e90f
Merge pull request #3916 from sysown/v2.x-3749
4 years ago
René Cannaò 622b748fdf Switching autocommit from 0 to 1 drops SAVEPOINTs
4 years ago
René Cannaò f7d8824379 Trying to work around MySQL bug 107875
4 years ago
Javier Jaramago Fernández 37efc833e3 Change wording in doc for 'MySQL_HostGroups_Manager::runtime_mysql_servers'
4 years ago
Javier Jaramago Fernández d8429ca71c Replace resultset for Cluster request fetching 'runtime_mysql_servers'
4 years ago
Javier Jaramago Fernández 7a0a83bb20 Fix compilation adding constructor for 'incoming_servers_t'
4 years ago
Javier Jaramago Fernández 099c2a5f06 Cluster: Speedup of processing of MySQL Users and MySQL Servers
4 years ago
Javier Jaramago Fernández 3dacb77321 Perform atomic update of Cluster fetched module checksum epochs
4 years ago
Javier Jaramago Fernández e6083250b5 Merge branch 'v2.x' of github.com:sysown/proxysql into v2.x-cluster_cmp_checksums
4 years ago
René Cannaò 5e68075edf Cluster: Speed up processing of MySQL Query Rules
4 years ago
Javier Jaramago Fernández 7286b334d1 Add utility function to convert 'MYSQL_RES' into 'SQLite3_result'
4 years ago
Javier Jaramago Fernández 4c4346a710 Add checksum computation after fetch to multiple cluster modules
4 years ago
René Cannaò 0a49b11fef Emulate SET autocommit in SQLite3 Server
4 years ago
René Cannaò a0f603e77b More code coverage for Clickhouse server
4 years ago
René Cannaò cad2d6b113 Removing handler___status_CHANGING_USER_CLIENT___STATE_CLIENT_HANDSHAKE
4 years ago
René Cannaò 630c50051e Allow compiling without c++17
4 years ago
root e47cb3fb8f Upgraded clickhouse-cpp to 2.1.0
4 years ago
René Cannaò 8730fcd350
Merge branch 'v2.x' into v2.x_generate_multi_rows
4 years ago
René Cannaò 97aba01d0a
Merge pull request #3875 from sysown/v2.x-gcc_12_1_compilation_fixes
4 years ago
René Cannaò c0fdf02b78 Fixed various compiler warnings
4 years ago
Javier Jaramago Fernández d8fb778534 Fix compilation with 'GCC 12.1.0' adding missing include
4 years ago
René Cannaò 7940d867da
Merge pull request #3867 from sysown/v2.x-multilag
4 years ago
Javier Jaramago Fernández 5569528b04 Move 'mysql_servers' from 'monitor' db into 'monitor_internal' db
4 years ago
René Cannaò 4bfe3e5878 Added mysql-monitor_replication_lag_group_by_host
4 years ago
Miro Stauder 0c37a63906
Merge branch 'v2.x' into CodeQL
4 years ago
René Cannaò f8a0934c13 Added new function to create multirows statements for SQLite
4 years ago
René Cannaò ea721ff31b
Merge pull request #3754 from sysown/v2.x-group_replication_consistency
4 years ago
René Cannaò e402b65de1
Merge pull request #3848 from sysown/v2.x-3847
4 years ago
René Cannaò f9b6f16beb
Merge pull request #3824 from sysown/v2.x-proxy_msg_stats
4 years ago
René Cannaò 50f1c9f61a Removed reference to STATUS_MYSQL_CONNECTION_NO_BACKSLASH_ESCAPES
4 years ago
René Cannaò 99408f9ad8 Initial POC for fast_forward and SSL #1459
4 years ago
Javier Jaramago Fernández f2590ff15c Fix 'proxysql_servers' failing to sync due to mismatching checksums #3847
4 years ago
Javier Jaramago Fernández 807d902d75 Move generic utility functions to 'proxysql_utils.h' #3847
4 years ago
René Cannaò 6ea642fc55
Merge pull request #3798 from sysown/v2.x-3797
4 years ago
René Cannaò 513ab0f9ea
Merge pull request #3839 from sysown/v2.x-delay_multiplex_timeout
4 years ago
Javier Jaramago Fernández da5291ee5e Add new variable 'mysql-auto_increment_delay_multiplex_timeout_ms'
4 years ago
René Cannaò b9c6f6e33b
Merge pull request #3790 from sysown/v2.x-prom_cluster_metrics
4 years ago
Javier Jaramago Fernández 543bb93e23 Add stats capabilities to log messages
4 years ago
Miro Stauder e84dc7ed0e fix CodeQL alerts
4 years ago
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