Commit Graph

456 Commits (fcfbc17407d9dbd786b4078879f2ed340f166bbf)

Author SHA1 Message Date
Javier Jaramago Fernández ebedd5e37b Several improvements to prometheus metrics definitions
5 years ago
René Cannaò aaddb4e568 Port of #3001 to 2.1.0 , related to #3000
6 years ago
René Cannaò 6d785dc103 Changed min max_connections for Aurora autodiscovery
6 years ago
René Cannaò 507a68db29 Variable mysql-monitor_replication_lag_count
6 years ago
Javier Jaramago Fernández a2727739e4 Added new variable 'mysql-monitor_replication_lag_retries'
6 years ago
Jim Riggs 601809e6fd Log emergency check of shunned servers when no servers are available
6 years ago
Javier Jaramago Fernández fa991397bd Reverted buffer allocation and removed unnecessary newline character
6 years ago
Javier Jaramago Fernández 5d5b810b3e Zero initialize the 'uuid_server' array to avoid non-initialized warnings by Valgrind
6 years ago
Javier Jaramago Fernández b105ec2d62 Null terminate GTID string to be processed
6 years ago
Rene Cannao 41b173a83c Fixing a lot of compiler warnings
6 years ago
René Cannaò 9f02f4800c Never reset a connection with client error code
6 years ago
René Cannaò d722bbe62a
Merge pull request #2944 from sysown/v2.1.0-2711
6 years ago
René Cannaò 33d8db02a6 Change the mapping logic for SESSION_TRACK_GTIDS
6 years ago
René Cannaò 16ef9472f8 Re-enable PXC node after pxc_maint_mode is DISABLED #2711
6 years ago
Javier Jaramago Fernández adaca60c1f Fixes segfault related to accesses to 'GloMyLogger' and 'GloMTH' when are already deinitialized
6 years ago
René Cannaò bc0963e3f4
Merge pull request #2833 from sysown/v2.1.0-2687
6 years ago
Javier Jaramago Fernández 98a677d4af Added extra per-table log for mysql_servers checksum generation
6 years ago
René Cannaò 1c0bd25658 Fixing some indentation
6 years ago
René Cannaò d76b79c7fb Removed define USE_MYSRVC_ARRAY
6 years ago
René Cannaò ffc4895720
Merge pull request #2821 from sysown/v2.1.0-sqlite3
6 years ago
René Cannaò 2bbd84d2c9 Support for SQLite3 plugin
6 years ago
René Cannaò e2ea108aa6
Merge pull request #2803 from sysown/v2.1.0-2802
6 years ago
Javier Jaramago Fernández fd204637a5 Fixes #2801: Updated prometheus map to contain missing entry 'p_hg_dyn_counter::proxysql_mysql_error'
6 years ago
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
7 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