-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql_servers.hostgroup_id must be >= 0 #1244
Comments
I am not sure it really crashed. Probably you have multiple proxysql running. |
Really, there are two processes in the process list. |
Unfortunately I cannot know why your system has multiple proxysql running. |
I made a mistake. It was a child process. |
Another error log. proxysql: MySQL_HostGroups_Manager.cpp:960: void MySQL_HostGroups_Manager::generate_mysql_servers_table(int*): Assertion `rc==6' failed. |
Because it reports the port is already in use, I would use |
I just saw your new comment. |
Thanks. It helped to solve problem with crashes. As I understand, "-1" is used for configuration without division into readers and writers in percona documentation. So, I use "-1" intentionally. Now, I don't know how to configure ProxySQL to use |
Reopening this issue, because the crash needs to be avoided even in cases of misconfiguration. |
Is it possible to enforce ProxySQL to use only one node for read/write even if after crashing and recovering main node there are some connections to reserve node? |
@daido : the galera checker is a simple script, you can customize it for your specific needs. |
Backtrace from 1.4.4:
Crash happens in:
19 = SQLITE_CONSTRAINT hostgroup_id seems to go into integer overflow:
|
@daido I have created percona bug report to resolve doc issue: https://jira.percona.com/browse/PSQLADM-4. If you are installed proxysql from percona repository please use proxysql-admin tool to setup PXC nodes in proxysql. |
Fixed in #1270 |
proxysql-1.4.3-1.1.el7.x86_64
CentOS Linux release 7.4.1708 (Core)
After recovering the broken node, I get the following error
/var/lib/proxysql/proxysql_node_monitor.log
Thu Nov 16 14:37:44 +06 2017 Cluster node (0:10.200.5.132:3306) current status 'OFFLINE_SOFT' in ProxySQL database! Thu Nov 16 14:37:44 +06 2017 Cluster node (0:10.200.5.134:3306) current status 'ONLINE' in ProxySQL database! Thu Nov 16 14:37:44 +06 2017 Cluster node (-1:10.200.5.133:3306) current status 'ONLINE' in ProxySQL database! Thu Nov 16 14:37:44 +06 2017 ###### Loading mysql_servers config into runtime ######
/var/lib/proxysql/proxysql_galera_checker.log
Thu Nov 16 14:37:45 +06 2017 ###### proxysql_galera_checker.sh SUMMARY ######
Thu Nov 16 14:37:45 +06 2017 Hostgroup writers 0
Thu Nov 16 14:37:45 +06 2017 Hostgroup readers -1
Thu Nov 16 14:37:45 +06 2017 Number of writers 1
Thu Nov 16 14:37:45 +06 2017 Writers are readers 1
Thu Nov 16 14:37:45 +06 2017 log file /var/lib/proxysql/proxysql_galera_checker.log
/var/lib/proxysql/proxysql.log
2017-11-16 14:37:45 main.cpp:814:ProxySQL_daemonize_phase3(): [ERROR] ProxySQL crashed. Restarting! 2017-11-16 14:37:45 [INFO] Angel process started ProxySQL process 14677 Standard ProxySQL Cluster rev. 0.1.0702 -- ProxySQL_Cluster.cpp -- Wed Oct 4 11:24:19 2017 Standard ProxySQL Admin rev. 0.2.0902 -- ProxySQL_Admin.cpp -- Wed Oct 4 11:24:19 2017 Standard MySQL Threads Handler rev. 0.2.0902 -- MySQL_Thread.cpp -- Wed Oct 4 11:24:19 2017 Standard MySQL Authentication rev. 0.2.0902 -- MySQL_Authentication.cpp -- Wed Oct 4 11:24:19 2017 2017-11-16 14:37:45 [INFO] Dumping current MySQL Servers structures for hostgroup ALL 2017-11-16 14:37:45 [INFO] New mysql_replication_hostgroups table 2017-11-16 14:37:45 [INFO] New mysql_group_replication_hostgroups table 2017-11-16 14:37:45 [INFO] Dumping current MySQL Servers structures for hostgroup ALL HID: 0 , address: 10.200.5.132 , port: 3306 , weight: 1 , status: ONLINE , max_connections: 1000 , max_replication_lag: 0 , use_ssl: 0 , max_latency_ms: 0 , comment: NODE 1 HID: 0 , address: 10.200.5.133 , port: 3306 , weight: 100 , status: ONLINE , max_connections: 1000 , max_replication_lag: 0 , use_ssl: 0 , max_latency_ms: 0 , comment: NODE 2 HID: 0 , address: 10.200.5.134 , port: 3306 , weight: 10000 , status: ONLINE , max_connections: 1000 , max_replication_lag: 0 , use_ssl: 0 , max_latency_ms: 0 , comment: NODE 3 Standard Query Processor rev. 0.2.0902 -- Query_Processor.cpp -- Wed Oct 4 11:24:19 2017 In memory Standard Query Cache (SQC) rev. 1.2.0905 -- Query_Cache.cpp -- Wed Oct 4 11:24:19 2017 Standard MySQL Monitor (StdMyMon) rev. 1.2.0723 -- MySQL_Monitor.cpp -- Wed Oct 4 11:24:19 2017 2017-11-16 14:37:46 network.cpp:53:listen_on_port(): [ERROR] bind(): Address already in use
In process list:
14676 ? S 0:00 mysql --defaults-file=/dev/stdin --protocol=tcp -Nse SELECT variable_value FROM global_variables WHERE variable_name IN ('mysql-monitor_username','mysql-monitor_password') ORDER BY variable_name DESC
14704 ? S 0:00 mysql --defaults-file=/dev/stdin --protocol=tcp -Bse SELECT variable_value FROM global_variables WHERE variable_name='mysql-monitor_username'
more than 100 similar rows
15399 ? S 0:00 mysql --defaults-file=/dev/stdin --protocol=tcp -Bse SELECT variable_value FROM global_variables WHERE variable_name='mysql-monitor_username'
The text was updated successfully, but these errors were encountered: