Commit Graph

433 Commits (55fbef61fa8d2ced4e7e5d3a773e857c2cf3c3a9)

Author SHA1 Message Date
Javier Jaramago Fernández 2ab420b9ab Check if 'GTID_Server_Data' is available before trying to access 'active' member
6 years ago
René Cannaò 0a78949d98
Merge branch 'v2.1.0' into v2.0.11-prometheus
6 years ago
val eb638a1b16 fix for galera set writer
6 years ago
val 72fd040681 Fix shunning reader when node goes to MAINTENANCE
6 years ago
val 522fc7164a Fix pxc_maint_mode failback when writer_is_also_reader=2
6 years ago
Javier Jaramago Fernández 7f8b07a0db Created new metric counters for registering 'mysql_errors'
6 years ago
Javier Jaramago Fernández a53988cc90 Removed deprecated double counters metric updates in favor of callback approach
6 years ago
Javier Jaramago Fernández dbbfc397a6 "Added helper function and uniformed 'hostgroup_manager' metrics update"
6 years ago
Javier Jaramago Fernández f3c4fb648e Added missing already defined metric to map and added new one
6 years ago
Javier Jaramago Fernández 75875fbaab Metrics identifier is now consistent with display order
6 years ago
Javier Jaramago Fernández 5feea37abb Moved third-party prometheus included headers before project includes
6 years ago
Javier Jaramago Fernández cdde6dc2fb Removed 'uniform initialization syntax' due to GCC 4.8 limitations
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
René Cannaò 8cc88ce58e Migration of threads status variables as array
6 years ago
René Cannaò 30aac6465e Improved MySQL_HostGroups_Manager::p_update_connection_pool_update_counter()
6 years ago
Javier Jaramago Fernández 1566ce44a4 Added generic prometheus arrays initialization functions to avoid code duplication
6 years ago
Javier Jaramago Fernández a9226f2636 Added missing required 'wrlock' call before accessing shared resource
6 years ago
Javier Jaramago Fernández f0588c72e1 Fixed typo in several prometheus metric names and identifiers
6 years ago
Javier Jaramago Fernández 33a213e514 Fixed logic conditionally getting info from 'gtid_si' pointer
6 years ago
Javier Jaramago Fernández c48b109019 Replaced 'hostgroups_manager' prometheus metrics with new array based impl
6 years ago
Javier Jaramago Fernández 073337c716 Added new metric 'proxysql_gtid_executed'
6 years ago
Javier Jaramago Fernández 4f60c3356c Added new metrics and fixed ones which weren't initialized
6 years ago
Javier Jaramago Fernández e1e89c6754 Changed previous metrics definitions and added new 'connection_pool' metrics
6 years ago
Javier Jaramago Fernández c319db2c3d Added new prometheus metrics mimicking current ones
6 years ago
Valentin Rakush 0e79eb39f7 Implementation of the session variables array
6 years ago
René Cannaò 7dd76aed94
Merge pull request #2637 from sysown/v2.0.11-warmup
6 years ago
val cdbf70817a Revert "Implementation of the session variables array"
6 years ago
René Cannaò 95e62b0b4b Minor opimization on previous commit
6 years ago
René Cannaò 29142e6e4f Global connection warming support
6 years ago
Valentin Rakush 1fb5c9cf06 Implementation of the session variables array
6 years ago
val befca50203 memory corruption
6 years ago
val a1d9c5ac63 memory alloc/free
6 years ago
René Cannaò 2bdf044825 Implementation of OFFLINE_SOFT for pxc_maint_mode
6 years ago
René Cannaò 0ae253a6ac Code cleanup
6 years ago
René Cannaò e062f84c3e
Merge pull request #2399 from val214/v2.0.9-mem-leaks
6 years ago
René Cannaò 6c551eab57 Allows the same nodes to be part of multiple Aurora clusters
6 years ago
Valentin Rakush f1eb04ce51 Fix flag Active for grop replication hostgroups
6 years ago
Valentin Rakush 539abc680e Fix flag Active is not correctly working
6 years ago
René Cannaò e9dc7a9b60 Implementation of SQLI fingerprints whitelist
6 years ago
René Cannaò 384b411732
Merge pull request #2437 from sysown/v2.0.9-aurora_offline
6 years ago
René Cannaò 67ec4107b7 Fix issue with LOAD MYSQL TO RUNTIME and Aurora
6 years ago
Valentin Rakush 19e7c3f1e2 Fix memory leak in MySQL_HostGroups_Manager (gtid)
6 years ago
Valentin Rakush 0227afaee7 Fix HGM gtid_ev_async leak
6 years ago
Valentin Rakush 41459e4c70 Fix memory leak in MySQL_HostGroups_Manager
6 years ago
Valentin Rakush 6a2bb97964 Fix generation of the group replication hostgroups table
6 years ago
Adrián del Campo 18b20bf8fd Fixed issues generating some queries for galera support
6 years ago
René Cannaò 57e0b2eb2f
Merge pull request #2403 from sysown/v2.0.9-whitelist
6 years ago
Valentin Rakush 17745111ca Aurora replication lag: online upgrade of the mysql_aws_aurora_hostgroups table
6 years ago
Valentin Rakush 80a18ed9e2 Aurora replication lag: fix issues, adjust window size
6 years ago
René Cannaò ce4a4a2464 Code cleanup and speeding compile time
6 years ago
René Cannaò 80e92b144d [WIP] Second commit for mysql firewall whitelist
6 years ago
Valentin Rakush 39a2d29865 Aurora replication lag: padding/min implementation
6 years ago
Valentin Rakush 00acc3f7ae Aurora replication lag configuration
6 years ago
René Cannaò bdc75c7063
Merge pull request #2384 from sysown/v2.0.9-kill
6 years ago
René Cannaò 364ba71002 Fix race condition on KILL CONNECTION
6 years ago
René Cannaò feccb76427 Revert "Fix race condition on KILL CONNECTION"
6 years ago
René Cannaò b959f29306 Fix race condition on KILL CONNECTION
6 years ago
Valentin Rakush 23752ac703 Fix memory leak in HGM mysql_servers generation
6 years ago
Valentin Rakush 4cdbd2af61 Fix mem leak in HGMCU thread
6 years ago
Valentin Rakush 9a315ddbdf Fix memory leak of the HGM threads objects
6 years ago
Valentin Rakush 1ffd3616c9 Group replication monitoring: count transactions behind events
6 years ago
René Cannaò 2cefe2810c Fixing a race condition during graceful shutdown
6 years ago
René Cannaò 1ac092490d Variable aurora_max_lag_ms_only_read_from_replicas was not evaluated
6 years ago
René Cannaò f3d15f4897
Merge pull request #2290 from acampoh/v2.0.7-fix-galera-support
6 years ago
René Cannaò 50876113f7 Renaming variable aurora_only_read_from_replicas into aurora_max_lag_ms_only_read_from_replicas
6 years ago
René Cannaò 35705f769a Adding variable aurora_only_read_from_replicas
6 years ago
Valentin Rakush 440851ec6b Update all assertions to check SQLITE_OK
6 years ago
Adrián del Campo f9e19ba03e Ported back the galera support fix to v2.0.7
7 years ago
René Cannaò 85f425af86 Do not disable backend for some errors codes #2261
7 years ago
René Cannaò 99b4dd4bbd
Merge pull request #2243 from sysown/v2.0.7.2
7 years ago
René Cannaò aaf83eec78 Finalizing the support for more session variables
7 years ago
René Cannaò d02c854e9b Implement auto discovery for Aurora writer too
7 years ago
René Cannaò 48ab04f5dc Merge branch 'v2.0.6-aurora_discovery' into v2.0.7.4
7 years ago
René Cannaò 5336e72f1c For Aurora, do not use the writer if there are good readers candidates
7 years ago
René Cannaò b2975490c5 Implementation and simulation of AWS Aurora auto-discovery
7 years ago
René Cannaò 495278c76b MySQL_HostGroups_Manager::commit() reports for how long it locked
7 years ago
René Cannaò 2d3aaf79e5 Replace endpoint_address with domain_name
7 years ago
René Cannaò ee5b54d983 Create a wrapper around sqlite3_prepare_v2
7 years ago
René Cannaò 590a24c8c6 Tracking `CLIENT_MULTI_RESULTS`
7 years ago
René Cannaò 30b4b34c81 Use 32 bits for capabilities flags
7 years ago
René Cannaò 6691a867fa Fix issues/FR #2120 , #2121 and #2125
7 years ago
René Cannaò 9ed7094cfe Implemeting of more locking in SELECT statements
7 years ago
René Cannaò 9604e9fbfb Adding age of sessions and connections #2055
7 years ago
René Cannaò a6897eaa0d Adding more internal info in JSON format #2055
7 years ago
René Cannaò 88c2c6e3d4
Merge pull request #2044 from sysown/v2.0.1-aurora
7 years ago
René Cannaò 817e20c222 Improvement on Galera and HGM
7 years ago
René Cannaò 059579f5a2 Fix some compiler warnings
7 years ago
René Cannaò 2df11ec320 If max_replication_lag is changed to 0, immediately unshun the server shunned because of replication lag
7 years ago
René Cannaò 58ff4ff892 Merge branch 'v2.0.4' into v2.0.1-aurora
7 years ago
René Cannaò 495c933624 Adding table stats.stats_mysql_free_connections
7 years ago
René Cannaò 006c042c0b Adding more protection in monitoring
7 years ago
René Cannaò 01023d6856 Merge branch 'v2.0.4' into v2.0.1-aurora
7 years ago
René Cannaò 8469801e74 Implemented first prototype of latency awareness
7 years ago
René Cannaò 16913fdd78 Optimizing get_random_MySrvC()
7 years ago
René Cannaò b74181eeea Added aws_aurora_replicas_skipped_during_query
7 years ago
René Cannaò af0a7100e2 Adding support for max_lag_ms in query
7 years ago
René Cannaò b36f5d785a Second commit to support Aurora
7 years ago
René Cannaò abd2b4c70c Fix bug #1927
7 years ago
René Cannaò 2e20854684 Second commit (not complete) to support Aurora
7 years ago
René Cannaò a35917c346 First commit (not complete) to support Aurora
7 years ago
René Cannaò 11924ca129 Optimize connection pool to find matching username
7 years ago
René Cannaò ef49b2570e Removing some complaints from Valgrind
7 years ago
René Cannaò 0a60cfda11 Merge branch 'v2.0.0-tb' into v2.0.0-merge-tb
7 years ago
René Cannaò 49a4dd5fc5
Merge branch 'v2.0.0' into v2.0.0_merge_ldap
7 years ago
René Cannaò e2874e4d2a Merge branch 'v2.0.0' of https://github.com/sysown/proxysql into v2.0.0
7 years ago
René Cannaò 6cec5078ec Tune shun time if ping interval is too low #1883
7 years ago
René Cannaò 10f38d4e2f Various code cleanup
7 years ago
Adrián del Campo f762929c94 Fixed query to get available galera nodes in a hostgroup
7 years ago
René Cannaò 883d66a71f Inlining some functions related to connection pool
7 years ago
Adrián del Campo 83310e33a6 Fixed shun recovery time calculation
7 years ago
René Cannaò 52b0c7784f Added 3 new global status variables
7 years ago
René Cannaò 5a7c4b00e2 Fixing various compiler warnings
7 years ago
René Cannaò 6a9655082b Specify HG when shunning or resuming nodes due to replication lag
7 years ago
René Cannaò 0f56d576d1 Completed implementation of stats_mysql_errors
7 years ago
René Cannaò bbe9dd7ace Adding class HGM_query_errors_stats()
7 years ago
René Cannaò 0aeb622793
Merge pull request #1765 from sysown/v2.0.0-wr2
7 years ago
René Cannaò 2bd4961b06 Abort if pthread_create fails #1768
7 years ago
René Cannaò 37f316e940 Add support for writer_is_also_reader=2
7 years ago
René Cannaò f5a82235d9 Added more status variables to improve troubleshooting
8 years ago
René Cannaò 44d810fbd2 Reduce lo verbosity for Galera checks
8 years ago
René Cannaò 7f6205bb5d Increase upper limit of mysql-hostgroup_manager_verbose from 1 to 2
8 years ago
René Cannaò f51aa84f46 Reduce verbosity for Galera checks that won't result in any change
8 years ago
René Cannaò d694d2942e Fxied a crashing bug caused by a buffer overflow
8 years ago
René Cannaò 0573c5118e Add global variable mysql-kill_backend_connection_when_disconnect
8 years ago
René Cannaò 8876e5e784 Kill backend connections using KILL when a client disconnects
8 years ago
René Cannaò 0fdd52b46d Minor memory leak fix
8 years ago
René Cannaò 3e4583cdcc DELETE FROM mysql_servers_incoming during LOAD TO RUNTIME
8 years ago
René Cannaò 9c62cc749e Several memory sanitizer
8 years ago
René Cannaò 8756d37bfc Galera: try to bring a node online if there are no writers
8 years ago
René Cannaò f795b16445 Galera: removed wrong check that prevents converge
8 years ago
René Cannaò 11caed7d7a Galera: do not convert when updating writers if leads to no changes
8 years ago
René Cannaò a03604d555 Prevent a loop in GTID reader
8 years ago
René Cannaò 291becdb20 Galera: force converge if max_writers is exceeded
8 years ago
René Cannaò 26065f30ba Fixing bugs from previous commit
8 years ago
René Cannaò e5cfc25701 Prevent loading new Galera configuration if leading to a no-op
8 years ago
René Cannaò b1eef9950b Wrong number of arguments in converge_galera_config()
8 years ago
René Cannaò 7db8f24b8b For Galera cluster, try to find the most appropriate node if none seems healthy
8 years ago
René Cannaò 45a136a88b Fix bug #1536
8 years ago
René Cannaò 9038e6a7c9 Fix bug #1473
8 years ago
René Cannaò 1bd36b8d8f Do not dump on error log runtime mysql servers tables when running queries against runtime_mysql_servers
8 years ago
René Cannaò efb716b048 Disable monitoring of servers not responding to ping
8 years ago
René Cannaò 2461b837e7 Missing argument in previous commit
8 years ago
René Cannaò be3d1600fa Evaluate writer_is_also_reader from within converge_galera_config() in case if only one node exists
8 years ago
René Cannaò 353d2a49a5 Try to use the last node in a Galera Cluster
8 years ago
René Cannaò 18ac68dbb0 Fixed typo s/Group Replication/Galera/
8 years ago
René Cannaò 6908f491a7 Fixed typo
8 years ago
René Cannaò 083319ed7e First commit to track MySQL errors
8 years ago
René Cannaò 1c8c08fe9e Fixing typo Group Replication => Galera
8 years ago
René Cannaò 62d8407cdb Merge branch 'v2.0-Galera' into v2.0.0
8 years ago