Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

BlackIkeEagle/proxysql-playground

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

ProxySQL playground

TL;DR starup

docker-compose up -d
./setup-proxysqlmonitor.sh

Setup

This is a simple approach to do some basic tests locally with ProxySQL.

Contents:

  • mysql 8.0.22-13 (percona server)
  • proxysql 2.0.17

mysql is reachable on mysql.sysbench.test on port 3306

proxsql is reachable on proxysql.sysbench.test on port 3306. the admin part of proxysql is proxysql.sysbench.test on port 6032

MySQL

MySQL has 2 regular users, root and bench, the proxysqlmonitor user is created with a separate shell script on first startup.

connect:

mysql -uroot -ptoor -hmysql.sysbench.test

For proxysql its the same but with another host

ProxySQL Admin

To connect to the ProxySQL admin you can use:

mysql -uradmin -pradmin -hproxysql.sysbench.test -P6032 --prompt='ProxyAdmin> '

Caveats

To make sure ProxySQL can connect to MySQL we had to "disable" the new and improved password hashing caching_sha2_password and use mysql_native_password.

There were also some issues with performance_schema_session_connect_attrs_size which default to 512 in the container. This caused some warnings because the connection attrs from ProxySQL just exceeded these.

mysql_1     | 2021-02-16T09:30:48.843787Z 24 [Warning] [MY-010288] [Server] Connection attributes of length 554 were truncated (60 bytes lost) for connection 24, user bench@172.22.0.3 (as bench), auth: yes
mysql_1     | 2021-02-16T09:30:48.844525Z 25 [Warning] [MY-010288] [Server] Connection attributes of length 554 were truncated (60 bytes lost) for connection 25, user bench@172.22.0.3 (as bench), auth: yes
mysql_1     | 2021-02-16T09:30:48.850774Z 31 [Warning] [MY-010288] [Server] Connection attributes of length 554 were truncated (60 bytes lost) for connection 31, user bench@172.22.0.3 (as bench), auth: yes

So therefore the increase to 4096 because we can.

Basic Performance Question

Read here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages