Quantcast
Channel: MySQL Forums - Router & Proxy
Viewing all 344 articles
Browse latest View live

Slowness using MySQL Router (no replies)

$
0
0
Hello,
I'm a newbie with MySQL so sorry in advance for any inaccuracy.

I'm setting up a Wordpress website hosted on IIS10/Win2016 with PHP 7.1.11.
On the backend I have a cluster of three nodes running MySLQ 5.7 on Win2016 (one R/W, the other two R/O).

I installed MySQL Router on the IIS node to balance the requests to the cluster but I notice a slowdown of the page loading (about x3 times).

After the post is the mysqlrouter.conf.

Is it normal?
Does anyone noticed a similar behaviour?

Thank you,
Filippo

####################################
#
# mysqlrouter.conf
#
####################################

# File automatically generated during MySQL Router bootstrap
[DEFAULT]
logging_folder=C:/ProgramData/MySQL/MySQL Router/log
runtime_folder=C:/ProgramData/MySQL/MySQL Router/run
data_folder=C:/ProgramData/MySQL/MySQL Router/data
keyring_path=C:/ProgramData/MySQL/MySQL Router/data/keyring
master_key_path=C:/ProgramData/MySQL/MySQL Router/mysqlrouter.key

[logger]
level = INFO

[metadata_cache:MySQLCLU]
router_id=6
bootstrap_server_addresses=mysql://testdb01:3306,mysql://testdb02:3306,mysql://testdb03:3306
user=mysql_router6_egojz3hzu6t6
metadata_cluster=MySQLCLU
ttl=300

[routing:MySQLCLU_default_rw]
bind_address=0.0.0.0
bind_port=6446
destinations=metadata-cache://MySQLCLU/default?role=PRIMARY
mode=read-write
protocol=classic

[routing:MySQLCLU_default_ro]
bind_address=0.0.0.0
bind_port=6447
destinations=metadata-cache://MySQLCLU/default?role=SECONDARY
mode=read-only
protocol=classic

[routing:MySQLCLU_default_x_rw]
bind_address=0.0.0.0
bind_port=6448
destinations=metadata-cache://MySQLCLU/default?role=PRIMARY
mode=read-write
protocol=x

[routing:MySQLCLU_default_x_ro]
bind_address=0.0.0.0
bind_port=6449
destinations=metadata-cache://MySQLCLU/default?role=SECONDARY
mode=read-only
protocol=x

why mysql fabric disappeared (no replies)

$
0
0
I noticed that there was a pretty good feature called MySQL Fabric which used for managing MySQL Sharding architecture in previous version, but why does it disappear in current GA version?

Error using MySQL Routing 2.1.4 (no replies)

$
0
0
Using MySQL Routing 2.1.4 from PHP page i get the error:

From PHP error log:

php[6036] PHP Warning: mysqli_query(): Error reading result set's header in ....\wp-includes\wp-db.php on line 1942
php[6036] PHP Warning: mysqli_query(): MySQL server has gone away in ....\wp-includes\wp-db.php on line 1942
php[6036] PHP Warning: mysqli_query(): (00000/0): in ....\wp-includes\wp-db.php on line 1942
php[6036] PHP Warning: Empty row packet body in ....\wp-includes\wp-db.php on line 1942

In mysqlrouter.log there is:

DEBUG [f08] Write error: SystemError: A non-blocking socket operation could not be completed immediately.
DEBUG [954] Write error: SystemError: A non-blocking socket operation could not be completed immediately.
DEBUG [f08] [routing:MySQLCLU_default_rw] Routing stopped (up:376143b;down:385b) Copy server-client failed: SystemError: A non-blocking socket operation could not be completed immediately.
DEBUG [954] [routing:MySQLCLU_default_rw] Routing stopped (up:384175b;down:385b) Copy server-client failed: SystemError: A non-blocking socket operation could not be completed immediately.

and in MySQL Server.err the following:
Note] Aborted connection 2140 to db: 'xxxxxxxx' user: 'xxxxxxxx' host: 'xxxxxxxx' (Got an error writing communication packets)
Note] Aborted connection 2141 to db: 'xxxxxxxx' user: 'xxxxxxxx' host: 'xxxxxxxx' (Got an error writing communication packets)

There is a way to solve the problem ?

ProxySQL Query Cache: What It Is, How It Works (no replies)

MySQL Router Performance Metrics (no replies)

$
0
0
Hi,

Does anyone know how I can see a mysql node status from MySQL router (v2.1.5)? Like a table or something which lists the servers and their current state?

Thanks

routing_strategy round-robin seems not working correctly (no replies)

$
0
0
I setup mysql-router 8 with a routing_strategy=round-robin
to route requests on port 7001 to two mysql nodes in a mysql cluster 7.5

[routing:round_robin]
bind_address = 0.0.0.0
bind_port = 7001
routing_strategy = round-robin
destinations = sqlnode1:3306, sqlnode2:3306



and each request to port 7001 always is routed to the same node
(it seems the first started up among them)

HA for MySQL Router (no replies)

how to connect AWS RDS MYSQL from MYSQL ODBC connector (no replies)

$
0
0
i can connect from MYSQL Work bench using Standard TCP/IP over SSH connection method. i did not see that type of method in Mysql ODBC connector. how to get that, how to connect to the AWS RDS MYSQL database from ODBC connector. Please help

MySQL Router version features (no replies)

$
0
0
Hi,

Reading the MySQL Router 8.0.4RC Release Notes, I see a particular new feature/bug fix that I'm particular interested in:

"The maximum number of concurrent client connections was increased from about 500 to over 5000, a limit now dependent on the operation system. To achieve this, select() based fd event calls were replaced by poll() (or WSAPoll() on Windows). (Bug #22661705, Bug #80260)"

The next GA releases are 8.0.11 and 8.0.12. However the Release Notes of those versions doesn't mention that particular feature.

Having version number 8.0.4 < 8.0.11 we can conclude that 8.0.4 will not be GA.

So:

Features from 8.0.4 release notes are already deployed in 8.0.11 or 8.0.12? Or will they be realesed in future versions?

Thanks in advance.

Kind regards,
Eduardo Krieg

Workbench Connection to Mysql using router (no replies)

$
0
0
Hi,
I have installed Mysql Inondb cluster version 8 as well as two router servers.
I prefeer to install the srouter on seperate servers and NOT at the application server.

My question is :
- How do i create coonection from my Laptop running Workbach through the ROUTER to the database running on the Innodb cluster ?

Thanks
Yoav

Log file isn't being written (no replies)

$
0
0
Hi, i installed mysqlrouter community 8.0.13 on an ubuntu 18.10 and it's working but i don't get anything writed to the log file.

I thought that it was related to apparmor, but even disabling it, it doesn't work.

Any help would be great.


This is my configuration file

---------


[DEFAULT]
logging_folder = /var/log/mysqlrouter/
runtime_folder = /var/run/mysqlrouter
config_folder = /etc/mysqlrouter

[logger]
level = DEBUG

[keepalive]
interval = 60


[routing:primary]
logging_folder = /var/log/mysqlrouter/
bind_address = localhost
bind_port = 7001
destinations = my-hostip:3306
routing_strategy = first-available

MySQL Router - Cannot write to R/O Servers (1 reply)

$
0
0
Hi,

I am having trouble with mysql router, its quite possibly me being stupid though!

I have configured MySQL 8 on three servers, and installed Mysql router too.

I need to be able to connect to each server and make writes, but when connecting through the port 6446 on the R/O boxes, using "mysql -h localhost -P 6446" i can connect fine, but get

"ERROR 1290 (HY000): The MySQL server is running with the --super-read-only option so it cannot execute this statement"

It seems like its not communication properly and redirecting the writes to the correct place. Sure enough if I fail the box over, the one that was R/O can now write if its been made the R/W.

Just to confuse the issue, I can connect using mysqlsh on any of the boxes and make changes and it knows which box is the write.

But this doesn't help me as I need three webservers running different front end applications all being able to write to the relevant user@localhost

Can anyone help me please?

Thanks very much

MySQL Router 8.0.16: What’s new (no replies)

VIP is not moving automatically. (1 reply)

$
0
0
Dear All,

I have configured MySQL router HA with pacemaker using below article.

https://lefred.be/content/mysql-router-ha-with-pacemaker/

I have tested and found that VIP is moving to one node to another without any issue but when I am switching primary node from node1 to node2/node3 then VIP is not moving automatically.

Thanks,
Imran Khan.

Buy real registered passports((www.supportdocuments24hrs.com (no replies)

$
0
0
real registered passports (www.supportdocuments24hrs.com) driver's license, identity card

We only offer original passport, driver's license, identity cards, visas, stamps and other documents for the following countries: Australia, Belgium,

buy Brazil, Finland, France, Great Britain, Ireland, Italy, Netherlands, Norway, Austria, Sweden, Switzerland, Spain, Great Britain, USA and some others.
We offer you one of the best services in the world. Most customers have experienced our true service.

Buy online passport
buy identity card online
Buy online driving license
Buy the residence permit online
Buy / Get Citizenship Online
Buy Online Documents

Our website ..http //: www.supportdocuments24hrs.com
http //: www.supportdocuments24hrs.com

http //: www.supportdocuments24hrs.com

http //: www.supportdocuments24hrs.com

http //: www.supportdocuments24hrs.com

Contact emails ......... documents24hrs@gmail.com

WHATSAPP ......... 1 (201) 701-0871
Skype ........ berning121


Fake passport
buy fake ID card
Buy a license
buy fake

Our website ..http //: www.supportdocuments24hrs.com
http //: www.supportdocuments24hrs.com

http //: www.supportdocuments24hrs.com

http //: www.supportdocuments24hrs.com

http //: www.supportdocuments24hrs.com


WHATSAPP ......... 1 (201) 701-0871

Skype ........ berning121


buy real and fake passport
buy real and wrong driver's license
Buy a real and false identity card
buy real and false citizenship
buy real and false citizenship
Buy real and fake papers

Our website ....... http //: www.supportdocuments24hrs.com

Contact emails ......... documents24hrs@gmail.com

WHATSAPP ......... 1 (201) 701-0871

Skype ........ berning121

Proxy, cluster or something else? (no replies)

$
0
0
I have a question regarding mysql servers setup. Hope some of you can give me some insight. Thank you so much in advance! Here is my question:

I have two MySQL servers: A & B (A and B can be two groups of servers, for simplicity, let's just say "A" and "B" are single servers).

At any time, only A or B is accessible by clients. For instance, A is running and accessible by clients through a proxy/cluster. Then at a prescheduled time during the day, B will be updating itself from a 3rd party data provider. Once B completes the updating, it will plug itself back into the proxy/cluster and accessible by clients and A will unplug itself from the proxy/cluster. Then next day, A and B will be doing the exact same thing again, meaning A will update itself, plug itself back into the proxy/cluster once the updating is done and B will unplug itself.

What is the best way to achieve what I want to do above? I look through the Proxy documentation, I can't see anyway that I can dynamically plug and unplug MySQL servers. Cluster doesn't allow it either. I can write a script to achieve it, but I would like to see if I can use any existing MySQl features/tools that can fulfill my need.

Thanks a lot!

Best Regards,
Vince

Mysql Router not listening port defined in config (no replies)

$
0
0
Hello.

I installed the program as described here https://dev.mysql.com/doc/mysql-router/8.0/en/mysql-router-deploying-bootstrapping.html.

After installation, the service "mysqlrouter" was launched in the system. But this service does not listen any of the ports specified in the configuration file "/etc/mysqlrouter/mysqlrouter.conf".

Command "lsof -i -P -n | grep LISTEN" shows:
systemd-r 780 systemd-resolve 13u IPv4 17461 0t0 TCP 127.0.0.53:53 (LISTEN)
sshd 1140 root 3u IPv4 20873 0t0 TCP *:22 (LISTEN)
sshd 1140 root 4u IPv6 20890 0t0 TCP *:22 (LISTEN)

As you can see, only port 22 is listening.

To make the mysqlrouter listen to the port, I have to start it as a new process, using command "mysqlrouter -c /etc/mysqlrouter/mysqlrouter.conf &".

After that, mysqlrouter listening the port.

What's wrong with this software?
Why it install new service (daemon), but this service does nothing?

I can stop service by "sudo service mysqlrouter stop" and it will no affect anything, because separated process working, which I have run with command "mysqlrouter -c /etc/mysqlrouter/mysqlrouter.conf &".

This is looks like that the service does not load the configuration file "/etc/mysqlrouter/mysqlrouter.conf" during startup, and uses default (empty) configuration, which not listening anything.

My configuration file contains as following:
[DEFAULT]
name=system
user=root
keyring_path=/var/lib/mysqlrouter/keyring
master_key_path=/etc/mysqlrouter/mysqlrouter.key
connect_timeout=15
read_timeout=30
dynamic_state=/var/lib/mysqlrouter/state.json

[logger]
level = INFO

[metadata_cache:personal]
router_id=7
user=mysql_router7_kj7msssz96w6
metadata_cluster=personal
ttl=0.5

[routing:default]
bind_address=0.0.0.0
bind_port=3306
destinations=metadata-cache://personal/default?role=PRIMARY
routing_strategy=first-available
protocol=classic

MySQL-Proxy 0.8.5 in not working with MySQL8.0 (no replies)

$
0
0
Hello,

I am having difficulty using MySQL proxy 0.8.5 with MySQL8.0.
Recently I have upgraded a MySQL setup which was using MySQL 5.6 Master-Slave replication with MySQL Proxy 0.8.5. The proxy would split the read-write requests (SQL statements) between the Master and Slave using LUA scripts. However, after upgrading the MySQL version to 8.0, the java client is not able to execute the following SELECT statement. The client is using mysql-connector-java-8.0.15.jar to connect to the proxy at port 4040. In Wireshark, I see that the proxy is sending the SELECT command to the slave DB which in turn responds with the results, but the proxy does not forward the results back to the client. Also, the read_query_result( inj ) function the in the read-write split Lua does not gets executed.
The SQL command from the client/ connector
/* mysql-connector-java-8.0.15 (Revision: 79a4336f140499bd22dd07f02b708e163844e3d5) */
SELECT @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_connection, @@character_set_results AS character_set_results, @@character_set_server AS character_set_server, @@collation_server AS collation_server, @@collation_connection AS collation_connection, @@init_connect AS init_connect, @@interactive_timeout AS interactive_timeout, @@license AS license, @@lower_case_table_names AS lower_case_table_names, @@max_allowed_packet AS max_allowed_packet, @@net_write_timeout AS net_write_timeout, @@sql_mode AS sql_mode, @@system_time_zone AS system_time_zone, @@time_zone AS time_zone, @@transaction_isolation AS transaction_isolation, @@wait_timeout AS wait_timeout

Please suggest.

Thank You,
Deb Dutta

Mysql InnoDB Cluster - Router - Pre-auth socket failure x.x.x.x:x: client auth timed out (no replies)

$
0
0
Hello,

We had a problem with our MySQL Router:

INFO [7f0e8b2f9700] [routing:moncluster_default_rw] fd=19 Pre-auth socket failure x.x.x.x:x: client auth timed out
INFO [7f0e8b2f9700] [routing:moncluster_default_rw] 97 connection errors for x.x.x.x:x(max 100)

When the counter get to 100, the router gets stuck for security reasons.
We have to restart it to make the service.

There are no error in the log of data nodes.

We not understand, why we have this error. The client send this password correctly, but this problem still happens at the same hours...

Other informations:

mysql> select @@version;
+-----------+
| @@version |
+-----------+
| 8.0.13 |
+-----------+

user@router:~$ mysqlrouter --version
MySQL Router v8.0.13 on Linux (64-bit) (MySQL Community Server - GPL)

Architecture :

3 data nodes
2 routers

mysql> show global variables like '%time%out%';
+------------------------------------------------+----------+
| Variable_name | Value |
+------------------------------------------------+----------+
| connect_timeout | 10 |
| delayed_insert_timeout | 300 |
| group_replication_components_stop_timeout | 31536000 |
| group_replication_member_expel_timeout | 0 |
| group_replication_unreachable_majority_timeout | 0 |
| have_statement_timeout | YES |
| innodb_flush_log_at_timeout | 1 |
| innodb_lock_wait_timeout | 50 |
| innodb_rollback_on_timeout | OFF |
| interactive_timeout | 28800 |
| lock_wait_timeout | 31536000 |
| mysqlx_connect_timeout | 30 |
| mysqlx_idle_worker_thread_timeout | 60 |
| mysqlx_interactive_timeout | 28800 |
| mysqlx_port_open_timeout | 0 |
| mysqlx_read_timeout | 30 |
| mysqlx_wait_timeout | 28800 |
| mysqlx_write_timeout | 60 |
| net_read_timeout | 30 |
| net_write_timeout | 60 |
| rpl_stop_slave_timeout | 31536000 |
| slave_net_timeout | 60 |
| wait_timeout | 28800 |
+------------------------------------------------+----------+

mysql> show full processlist;
+-----------+----------------------------+----------------------+--------------------+---------+----------+--------------------------------------------------------+-----------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-----------+----------------------------+----------------------+--------------------+---------+----------+--------------------------------------------------------+-----------------------+
| 226670600 | unauthenticated user | x:y | NULL | Connect | 9 | login | NULL |
| 226670717 | unauthenticated user | x:z | NULL | Connect | 3 | login | NULL |
| 226670764 | unauthenticated user | x:a | NULL | Connect | 2 | login | NULL |
| 226670791 | unauthenticated user | x:e | NULL | Connect | 1 | Receiving from client | NULL |
+-----------+----------------------------+----------------------+--------------------+---------+----------+--------------------------------------------------------+-----------------------+

MySQL Router: REST API (no replies)

Viewing all 344 articles
Browse latest View live