Commit Graph

690 Commits (ea999b48a653f54baa5acff208fc93152fdb16bf)

Author SHA1 Message Date
René Cannaò 8cea730de0
Merge pull request #3661 from sysown/v2.x-3649
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
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
Javier Jaramago Fernández d0ed1895fa Fixed typo in 'round_intv_to_time_interval' preventing parameter update
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
René Cannaò 7ef783487c Adding skeleton for PROXYSQL_SIMULATOR
5 years ago
Javier Jaramago Fernández 06c386dfd1
Merge pull request #3626 from sysown/v2.x-3625
5 years ago
Javier Jaramago Fernández 0058ecb4f0 Removed 'flush_error_log' call from 'PROXYSQL FLUSH QUERY CACHE'
5 years ago
Javier Jaramago Fernández 515167f5f9 Removed 'flush_error_log' call from 'PROXYSQL FLUSH MYSQL CLIENT HOSTS' #3625
5 years ago
Javier Jaramago Fernández 9aef676973 Added population of 'stats_mysql_client_host_cache' when 'stats_mysql_client_host_cache_reset' is queried
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 2d3da0fca3 Simplified check for query 'PROXYSQL FLUSH MYSQL CLIENT HOSTS' via 'strcasecmp'
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ò f7bb4d201b Add get_current_query_rules_fast_routing_count()
5 years ago
René Cannaò cd7e740a51 Get mutex during LOAD PROXYSQL SERVERS TO RUNTIME
5 years ago
René Cannaò 66c4c6b0a8 Adding new mutex in ProxySQL_Admin::save_proxysql_servers_runtime_to_database()
5 years ago
René Cannaò 45e55d4e90 Removing admin_mutex in ProxySQL_Admin.cpp
5 years ago
René Cannaò e1adc955eb Fixing some race condition in Cluster
5 years ago
René Cannaò 48562faaf1 Merge branch 'v2.x' into v2.1.2-cluster
5 years ago
René Cannaò 08ea308033
Merge pull request #3552 from sysown/v2.x-ssl_no-rsa
5 years ago
René Cannaò ebbd9845bd
Merge branch 'v2.x' into v2.1.2-cluster
5 years ago
René Cannaò 05fa6c23cf
Merge pull request #3569 from sysown/v2.x-3554
5 years ago
René Cannaò 46f75dae3b Add more verbosity when starting a scheduler job
5 years ago
René Cannaò f8ce41305d Fixing some race condition
5 years ago
René Cannaò 1e9295c13d Removing a lock introduced in 894e72041
5 years ago
René Cannaò 894e72041d Adding a mutex when Cluster is syncing mysql query rules
5 years ago
Javier Jaramago Fernández 58460bd323 Fixed 'heap-buffer-overflow' detected by ASAN in 'generate_show_fields_from' #3554
5 years ago
René Cannaò 5e422668c8 Removing mysql-threads from cluster sync
5 years ago
René Cannaò af27c0b108 Merge branch 'v2.x' into v2.1.2-cluster
5 years ago
René Cannaò 538feddc87 Code cleanup
5 years ago
René Cannaò c4fce91fc5 Change default value of mysql-session_idle_ms from 1000 to 1
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ò 194243503a Adding LCOV_EXCL_START around assert(0)
5 years ago
René Cannaò fd7b5f8f50 Implemented PROXYSQL RELOAD TLS
5 years ago
René Cannaò 5ede60ec9f
Merge pull request #3499 from sysown/v2.x-codecov1
5 years ago
René Cannaò dbf194075e
Merge pull request #3486 from sysown/v2.x-gcov-admin
5 years ago
René Cannaò 77a6b69507 Fix compile issue for __gcov_dump and __gcov_reset
5 years ago
René Cannaò 45f6ad8f65 Adding test for SHOW TABLE STATUS in Admin #3511
5 years ago
René Cannaò 41d15f6a87 Adding test for SHOW FIELDS FROM in Admin #3511
5 years ago
René Cannaò 3406bb6e23 Removing commented code
5 years ago
René Cannaò 2c159d1d9a Adding support for PROXYSQL GCOV DUMP|RESET
5 years ago
René Cannaò dc42fbca0b Some code cleanup in Admin
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ò d53578f269
Merge pull request #3353 from sysown/v2.1.1-deprecate_forward_autocommit
5 years ago
Javier Jaramago Fernández 5d0fd05534 Fixed improperly handled case for 'format_timezone_hours' when hours parameter to be formatted is '0'
5 years ago
Javier Jaramago Fernández 99e0e23646 Closes #2543: Added support for two new queries for Admin required for C# connector
5 years ago
René Cannaò 26790c3679
Merge pull request #3349 from sysown/v2.1.1-MonRo
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ò c5d018d740
Merge pull request #3344 from sysown/v2.1.1-3247
5 years ago
Javier Jaramago Fernández 089c5e656f Replaced trivial 'connection_id()' implementation in favor of a simpler and safer 'query rewrite' one
5 years ago
Javier Jaramago Fernández dfc51c3352 Closes #3247: Added support for command 'SELECT CONNECTION_ID()' in order to support 'mycli' client
5 years ago
Javier Jaramago Fernández 3fd234477a Used added functionality to 'prometheus-cpp' to reset prometheus counters for 'PROXYSQL STOP' and 'PROXYSQL RESTART' commands
5 years ago
Javier Jaramago Fernández 6e997a7297 Fixed 'invalid reads' reported by valgrind due to access to already freed string returned by 'serial_exposer'
5 years ago
René Cannaò b233819514
Merge pull request #3309 from sysown/v2.1.1-1574
5 years ago
Javier Jaramago Fernández 9bffef4156 Added missed default initialization of flag 'registered_prometheus_collectable'
5 years ago
Javier Jaramago Fernández 5d0a9a2087 Updated 'stats_mysql_prepared_statements_info' table definition to hold 'num_columns' and 'num_params' info for prepared statements
5 years ago
Javier Jaramago Fernández e2432bb661 Closes #3298: Fixed unnecessary port check and logging while flushing admin variables to runtime
5 years ago
René Cannaò a592402902 Implementation of table stats_proxysql_servers_clients_status and PROXYSQL CLUSTER_NODE_UUID command
5 years ago
René Cannaò 36cc360942 Create UUID
5 years ago
Javier Jaramago Fernández 17a4b4a701
Merge pull request #3239 from sysown/v2.1.0-3238
5 years ago
Javier Jaramago Fernández 6b873cbfd8 Changed several metrics name for being fully being fully complaint with 'promtool' checker
5 years ago
Javier Jaramago Fernández 5dbddb3cc4 Check for specified 'restapi_port' availability before instantiating 'ProxySQL_RESTAPI_Server'
5 years ago
Javier Jaramago Fernández 40448a58fc Fixed memory leak in 'save_mysql_servers_runtime_to_database' due to non-freed resultset
5 years ago
Javier Jaramago Fernández e654d41f17 Added 'SO_REUSEADDR' option to socket used to test 'web_port' availability
5 years ago
Javier Jaramago Fernández b712c8f334 Fixed socket resource leak in case 'bind' fails for 'web_port'
5 years ago
René Cannaò ed23f56473
Merge pull request #3139 from sysown/v2.1.0-3138
5 years ago
Javier Jaramago Fernández d2a566901e Added support for 'SHOW PROMETHEUS METRICS' command
6 years ago
Javier Jaramago Fernández 1c0dbd5fe2 Improve 'WebInterfacePlugin' initialization error handling
6 years ago
René Cannaò 4cdcc1f18f
Merge pull request #3123 from sysown/v2.1.0-deprecate_eof
6 years ago
Javier Jaramago Fernández 4ada7ba2e5 Fixed typos in comments specifying table version to be upgraded in 'disk_upgrade_rest_api_routes'
6 years ago
Javier Jaramago Fernández 6a1d616396 Renamed 'interval_ms' from 'restapi_routes' table into 'timeout_ms'
6 years ago
Bibek Shrestha 205b23acb8 Do not support CLIENT_DEPRECATE_EOF on AdminModule
6 years ago
Bibek Shrestha b16bb275f7 Hardcode false instead of default value
6 years ago
René Cannaò b8220382d9
Merge pull request #3100 from sysown/v2.1.0-3088
6 years ago
René Cannaò 43624ac63e
Merge pull request #3086 from sysown/v2.1.0-3083
6 years ago
Javier Jaramago Fernández 05a005f9fb
Add support for syncing 'mysql-variables' and 'admin-variables' #2820 (#2856)
6 years ago
René Cannaò 7c1fb6acd1 Allow compiling without jemalloc
6 years ago
Javier Jaramago Fernández f6e0e64f42 "Changed prometheus counter naming convention to include '_total' suffix"
6 years ago
Javier Jaramago Fernández 84f4c96afa Multiple changes to multiple metrics definitions
6 years ago
Javier Jaramago Fernández 622a763920 Added new column 'attributes' to 'mysql_query_rules' table
6 years ago
Javier Jaramago Fernández ebedd5e37b Several improvements to prometheus metrics definitions
6 years ago
Javier Jaramago Fernández c73de1bdb1 Changed new 'attributes' field for 'mysql_users' to VARCHAR
6 years ago
Javier Jaramago Fernández 7dc78b8ce0 Fixed placeholders for values in statements after 'COALESCE' removal
6 years ago
Javier Jaramago Fernández 76ca8b1b5b Removed 'COALESCE' usage for 'mysql_users' due to inclusion of new field 'attributes'
6 years ago
Javier Jaramago Fernández 61aa5275fe Removed added delete to non-existing field for 'ch_account_details_t'
6 years ago
René Cannaò 2d98ee0872 Make current and latest version accessible from outside
6 years ago
René Cannaò a0a544ccdf
Merge pull request #3087 from sysown/v2.1.0-admin_web_verbosity
6 years ago
Javier Jaramago Fernández 80e9b4c0d8 Changed new variable name to 'admin___web_verbosity' for being compliant with current 'thread' naming convention
6 years ago
Javier Jaramago Fernández 42fa0f7945 Added new column 'attributes' to 'mysql_users' table
6 years ago
Javier Jaramago Fernández 576e735d14 Added new variable 'web_verbosity' to control web verbosity
6 years ago
René Cannaò 7415a059a5 Removed global shared variables
6 years ago
Javier Jaramago Fernández d503ffec34 Fix invalid passing of non-trivial object through variadic function
6 years ago