-
Notifications
You must be signed in to change notification settings - Fork 997
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
V1.3.0 exp2 #738
Merged
Merged
V1.3.0 exp2 #738
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This mysql thread will be used only to hold long idle connections
Incorrectly, Sessions were always set to be processed
Optimizations in MySQL_Thread::run() and MySQL_Thread::process_all_sessions()
Idle sessions (as defined by session_idle_ms) are not showed in processlist by default. If session_idle_show_processlist==true, they will show
This affects the epoll_threads. Will be way faster to determine if the connection is idle
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merging the experimental v1.3.0-exp2 into v1.3.0.
ProxySQL in this branch can easily accept one million connections.
It is also able to handle workloads with hundreds thousands client connections, but only few connections are active.
For example, 100k total connections, but only 100 active connections.
This merge includes:
SO_REUSEPORT
, that can be only enabled on the command line with-r
or--reuseport
mysql-threads x 2
mysql-session_idle_ms
(default1000
) : when a session is idle for that long, it is moved to a thread responsible to handle idle connectionsmysql-session_idle_show_processlist
(defaultfalse
) : specifies if idle connections are displayed onSHOW PROCESSLIST
or on any query againststats_mysql_processlist
Client_Connections_non_idle
: returns the number of client connections that are not idle, therefore handled by the main MySQL_Threads and not moved to the second set of MySQL_Threads responsible to only handle idle connections