Commit Graph

428 Commits (9ffc3f8d711d2f1d3373c91a135d40cbea202841)

Author SHA1 Message Date
Rahim Kanji ae40be4312 Resolve conflicts
3 years ago
Rahim Kanji 3bb4bcf1c1 * Added few comments and fixed comment style
3 years ago
Javier Jaramago Fernández 51c723f6fc DRAFT: Monitor 'Group replication' rework
3 years ago
Javier Jaramago Fernández 7062ae0078 Fix 'AWS_NO_PINGABLE_SRV' error counters
3 years ago
Rahim Kanji 340a4f3318 Added proxysqltest: monitor task forced timeout
3 years ago
Rahim Kanji 6c104fbefb Crash fix
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 7fa44cedc1 Avoid null pointer mysql connection access in Debug
3 years ago
Rahim Kanji 147d23a815 Refactoring ProxySQL Monitor Module
3 years ago
Rahim Kanji 1a47d98b41 Refactoring ProxySQL Monitor Module
3 years ago
Rahim Kanji 06f160cce1 Compilation fix for old GCC version
3 years ago
Javier Jaramago Fernández 300532d6e2 Fix multiple warnings in logging function calls
3 years ago
Rahim Kanji 097a517792 Compilation fix
3 years ago
René Cannaò ec93211d02
Merge pull request #4024 from sysown/v2.x_LocalDNSCache
3 years ago
Rahim Kanji 29677cb983 Check and remove connection from monitor connection pool if not used for long time.
3 years ago
Rahim Kanji c552fdb111 * Added DNS cache monitoring for ProxySQL servers.
3 years ago
Rahim Kanji ee0059a65c Purge all backend connections when monitor is disabled
3 years ago
Rahim Kanji 357ce44bed Purge all backend connections when monitor is disabled
3 years ago
Rahim Kanji f9c5f8af92 Added Debug logs
3 years ago
Rahim Kanji dbfb99ce71 * Added hostname and ip information in mysql_connection
3 years ago
Rahim Kanji eef3ddfcd6 Heap allocated host pointer for async mysql_real_connect_start function
3 years ago
Rahim Kanji 85fe4e1fdc No need to do lookup if IP was provided
3 years ago
Rahim Kanji 2bbb6305b5 Added DNS Cache enable/disable flag handling.
3 years ago
Rahim Kanji 3161f0b94b Optimization: moving DNS_Record object instead of copying
3 years ago
Rahim Kanji 7805924779 Feature: ProxySQL local DNS Cache
3 years ago
Javier Jaramago Fernández 6e5678315d Fix crashes when number of servers is more than half the value of monitor 'ping|read_only' intervals
3 years ago
Levi Quinn 0ab0757907
fix(issue): ensure that most recent replica_host is treated as master for #3962
4 years ago
Javier Jaramago Fernández 63e8c57309 Fix invalid memory accesses in Aurora monitoring
4 years ago
René Cannaò 8730fcd350
Merge branch 'v2.x' into v2.x_generate_multi_rows
4 years ago
René Cannaò 542b207611 Added new function to create multirows statements for SQLite also for MySQL_Monitor and ProxySQL_Cluster
4 years ago
René Cannaò 7940d867da
Merge pull request #3867 from sysown/v2.x-multilag
4 years ago
René Cannaò 0a28d9a9f1
Merge pull request #3871 from sysown/v2.x-isolate_monitor_mysql_servers
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
René Cannaò 8c55b777ee Fixed various minor bugs detected with valgrind
4 years ago
Javier Jaramago Fernández 9e7afd4966 Access 'Monitor::mysql_servers_mutex' through 'GloMyMon' instead of 'this' #3797
4 years ago
Javier Jaramago Fernández ba505284a6 Add missing 'Monitor::mysql_servers_mutex' initialization #3797
4 years ago
Javier Jaramago Fernández c50a7053ad Fix monitoring not working for AWS Aurora auto-discovered instances #3797
4 years ago
Javier Jaramago Fernández 4f94fd3d0f
Merge pull request #3533 from sysown/v2.x-gr_replication_lag_action
5 years ago
René Cannaò 2a5121e52f
Merge pull request #3514 from egezonberisha/pt-heartbeat-query-delay
5 years ago
Hormoz K 7762dea993 add crl, crlpath, and capath options
5 years ago
René Cannaò 194243503a Adding LCOV_EXCL_START around assert(0)
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 53bf18b428 Changed setting readonly servers 'OFFLINE' due to replication lag behavior in favor of general server 'SHUNNING'
5 years ago
Javier Jaramago Fernández 12d91871b7 Fixed possible floating point exception in 'monitor_read_only'
5 years ago
René Cannaò b8c027ee0a Improve query to REPLICA_HOST_STATUS related to Aurora
5 years ago
René Cannaò de698cb156 Improving query to REPLICA_HOST_STATUS related to Aurora
5 years ago
René Cannaò 590c5cb75c Removed unused function monitor_AWS_Aurora_thread()
5 years ago
Egezon Berisha 8c62273687 Change the pt-heartbeat query from MIN to MAX due to a possible daisy-chain replication or multi-master setup
5 years ago
René Cannaò 09d42b5968 Fixed minor uninitialised value in MySQL_Monitor_State_Data()
5 years ago
René Cannaò eac6e75dad Adding a simulator for read_only test
5 years ago
peter 414d59070c
Check if mmsd is not NULL
5 years ago
peter 380a245867
Delay free mmsd
5 years ago
Rolf Martin-Hoster 8b4c7ae881 Fix floating point exception.
5 years ago
Javier Jaramago Fernández 41c5a82aae Closes #3406: Verify fetched rows in 'monitor_group_replication_thread' are not NULL before accessing them
5 years ago
Javier Jaramago Fernández 3111e8b603 Closes #3340: Added new 'repl_lag' error code '-3' in case 'replication_lag_check' timeout
5 years ago
Javier Jaramago Fernández 65870492be Removed hardcoded values for error codes in counters in 'monitor_connect_thread' and no longer required include
5 years ago
Javier Jaramago Fernández 7c1c829565 Compressed multiple 'p_update_mysql_error_counter' with ternary operator and replaced zero error codes with ER_PROXYSQL_OFFLINE_SRV
5 years ago
Javier Jaramago Fernández 9713abd3a0 Improved naming on new 'PROXYSQL_ERR' enums and explicit values
5 years ago
Javier Jaramago Fernández 851339b5f3 Closes #3310: Improve error reporting for 'MySQL_Monitor' and 'MySQL_Session' backend connections via counters
5 years ago
Javier Jaramago Fernández e61b82a439 Removed duplicated call to 'conn_unregister' in 'monitor_group_replication_thread' performed outside proper check
5 years ago
Javier Jaramago Fernández 57726c16fd Closes #3288: Added extra logging to 'monitor_replication_lag_thread' to reflect when 'Seconds_Behind_Master' is NULL
5 years ago
René Cannaò 420913f0a1 Revert PR 3237 on TEST_AURORA
5 years ago
René Cannaò da8979d1ec
Merge pull request #3227 from sysown/v2.1.0-2953
5 years ago
Will Jordan dbde7e2e92 Workaround for Aurora 2.09 bug
5 years ago
Javier Jaramago Fernández 3d4b80b5e4 Honor 'wsrep_sst_donor_rejects_queries' avoiding setting a DONOR node offline during a SST
5 years ago
Javier Jaramago Fernández f6e0e64f42 "Changed prometheus counter naming convention to include '_total' suffix"
5 years ago
Javier Jaramago Fernández 84f4c96afa Multiple changes to multiple metrics definitions
5 years ago
Javier Jaramago Fernández ebedd5e37b Several improvements to prometheus metrics definitions
5 years ago
René Cannaò 67ec92ceb6
Merge pull request #2975 from sysown/v2.1.0-galera_ci
6 years ago
René Cannaò 6428035695 Fixed a compiling issue
6 years ago
Rene Cannao 41b173a83c Fixing a lot of compiler warnings
6 years ago
René Cannaò 208df329ea Improvements to test Galera with SQLite3 Server
6 years ago
Juan Manuel Fernández García-Minguillán 847b6975ec Initialize interr variable in galera monitor
6 years ago
René Cannaò bc0963e3f4
Merge pull request #2833 from sysown/v2.1.0-2687
6 years ago
René Cannaò 55264de664 Fix invalid free
6 years ago
René Cannaò 2bbd84d2c9 Support for SQLite3 plugin
6 years ago
Javier Jaramago Fernández 7f8b07a0db Created new metric counters for registering 'mysql_errors'
6 years ago
Javier Jaramago Fernández dbbfc397a6 "Added helper function and uniformed 'hostgroup_manager' metrics update"
6 years ago
Javier Jaramago Fernández a4e4e57343 Moved all 'metrics_maps' to source files
6 years ago
Javier Jaramago Fernández 864535d3f9 Added support for GCC 4.8 and removed per-module metrics initialization functions
6 years ago
Javier Jaramago Fernández c897b25e9f Added metrics help and replaced metrics impl with new array based one for 'mysql_monitor' module
6 years ago
Javier Jaramago Fernández eab412546b Changed previous metrics definitions and added updating
6 years ago
Javier Jaramago Fernández c319db2c3d Added new prometheus metrics mimicking current ones
6 years ago
René Cannaò 2bdf044825 Implementation of OFFLINE_SOFT for pxc_maint_mode
6 years ago
René Cannaò 865b96d343 Code cleanup
6 years ago
val 12e61b89bb Fix galera query in maint_mode
6 years ago
René Cannaò 97c6589700 Merge pull request #2490 from val214/v2.0.9-maint-mode
6 years ago
René Cannaò 1c84ca66ea
Merge pull request #2509 from sysown/v2.0.9-log-expired-password
6 years ago
Valentin Rakush c94e3b4af2 Report expired password error into the monitors error log
6 years ago
Valentin Rakush 7949e0762b Monitor expired password and failed pings
6 years ago
Valentin Rakush 8b59af4ef2 Host goes offline if maint_mode is true
6 years ago
Valentin Rakush 3814c54f6e pxc_maint_mode implementation for galera
6 years ago
René Cannaò a6debf5126 Fix memory leak in monitor_AWS_Aurora_thread_HG()
6 years ago
René Cannaò e062f84c3e
Merge pull request #2399 from val214/v2.0.9-mem-leaks
6 years ago
René Cannaò 67ec4107b7 Fix issue with LOAD MYSQL TO RUNTIME and Aurora
6 years ago
Valentin Rakush 2aac7c3179 Fix mem leak in Monitor connections pool
6 years ago
Valentin Rakush c1ced69cb5 Aurora replication lag: fix for master replication lag
6 years ago
Valentin Rakush cff0a27b78 Aurora replication lag: add estimated_lag_ms column to mysql_server_aws_aurora_log
6 years ago
Valentin Rakush 80a18ed9e2 Aurora replication lag: fix issues, adjust window size
6 years ago
Valentin Rakush 9b8590da0d Aurora replication lag: lag_num_checks (window) implementation
6 years ago
Valentin Rakush cf26350138 Fix for min lag. Use std::max
6 years ago
Valentin Rakush 39a2d29865 Aurora replication lag: padding/min implementation
6 years ago
Valentin Rakush 67ae1ee3bd Fix memory leak of servers in monitor connection pool
6 years ago
Valentin Rakush 51ac79959c Fix memory leak of queue in monitor
6 years ago
Valentin Rakush 591f08fc47 Undo error reporting when group replication hosts result set is empty
6 years ago
Valentin Rakush 1ffd3616c9 Group replication monitoring: count transactions behind events
6 years ago
René Cannaò 4bca7a3d5c Use close_mysql() for failed Monitor connections
6 years ago
René Cannaò bbb9ea3986 Filter Aurora replica with lag > 10m #2336
6 years ago
René Cannaò c00d24d01e
Merge pull request #2336 from wjordan/aws_aurora_discovery_deleted_replicas
6 years ago
Valentin Rakush 440851ec6b Update all assertions to check SQLITE_OK
6 years ago
Will Jordan e65bce6f0b Filter deleted Aurora replicas from auto-discovery
6 years ago
René Cannaò 161697c1bb Alias to read_only all checks related to read_only
6 years ago
René Cannaò c9459ae4fd More mysql_replication_hostgroups.check_type #2186
6 years ago
Valentin Rakush 757684c6d9 [FR] Group Replication Timeout count
7 years ago
René Cannaò 9e81359651
Merge pull request #2185 from YYJiangLoveU/MS-branch
7 years ago
Yiyao Jiang 3b0e2abbc4 remove the flag
7 years ago
René Cannaò ee5b54d983 Create a wrapper around sqlite3_prepare_v2
7 years ago
Yiyao Jiang 63af8f3f52 Add azure_enabled
7 years ago
Yiyao Jiang 6fdac8c700 Add serverhost when connecting to MySQL Servers
7 years ago
René Cannaò 4c1f4a8d82 Enhancements on AWS Aurora module
7 years ago
Yiyao Jiang a132b34f23 add servername when connecting MySQL
7 years ago
René Cannaò 9fac131d6e Fixed typo in AWS Monitoring
7 years ago
René Cannaò 1ada6d8be9 Minor debug info on Monitor
7 years ago
René Cannaò 817e20c222 Improvement on Galera and HGM
7 years ago
René Cannaò 570d0283f5 Added variable monitor_galera_healthcheck_max_timeout_count
7 years ago
René Cannaò 407da6adfa Removing a debugging line
7 years ago
René Cannaò b12caa1d8c Adding support for automated testing of Galera
7 years ago
René Cannaò 7b6058e535 Missing unlock
7 years ago
René Cannaò 89713295c2 Fix compiling bug
7 years ago
René Cannaò 9ecf8487f9 Merge branch 'v2.0.4-1994-pool2' into v2.0.1-aurora-1994
7 years ago
René Cannaò acae70cd65 Debugging code in Monitor only on debug release
7 years ago
René Cannaò cfaefba2de Implementing purging in Monitor Connection Pool
7 years ago
René Cannaò 8e96c30181 More error handling for Monitor
7 years ago
René Cannaò 505772ac05 More error handling in Monitor
7 years ago
René Cannaò 6e03099b46 Further error handling in Monitor
7 years ago
René Cannaò 893a0fcc49 Merge branch 'v2.0.4-1994-pool2' into v2.0.1-aurora-1994
7 years ago
René Cannaò 006c042c0b Adding more protection in monitoring
7 years ago
René Cannaò 92d96815c6 Rewriting connection pool in Monitor
7 years ago
René Cannaò 483e7ae9da Adding mysql_thread_init() in Monitor
7 years ago
René Cannaò 0fc8694a05 Increased verbosity for bug #1994
7 years ago
René Cannaò d11ec38277 More error handling for Galera #1994
7 years ago
René Cannaò 48a3547575 Further error handling for Monitor
7 years ago
René Cannaò 01023d6856 Merge branch 'v2.0.4' into v2.0.1-aurora
7 years ago
René Cannaò 270f680b56 More error handling in Monitor #1994
7 years ago
René Cannaò 9025a8fbe6 Adding reference to bug #1994
7 years ago