HandlerSocket Configuration Options
The HandlerSocket plugin has the following options.
See also the Full list of MariaDB options, system and status variables.
Add the options to the [mysqld] section of your my.cnf file.
handlersocket_accept_balance
handlersocket_accept_balanceDescription: When set to a value other than zero ('
0'),handlersocketwill try to balance accepted connections among threads. Default is0, but if you use persistent connections (for example if you use client-side connection pooling), a non-zero value is recommended.Command line:
--handlersocket-accept-balance="value"Scope: Global
Dynamic: No
Type: number
Range:
0to10000Default Value:
0
handlersocket_address
handlersocket_addressDescription: Specify the IP address to bind to.
Command line:
--handlersocket-address="value"Scope: Global
Dynamic: No
Type: IP Address
Default Value: Empty, previously
0.0.0.0
handlersocket_backlog
handlersocket_backlogDescription: Specify the listen backlog length.
Command line:
--handlersocket-backlog="value"Scope: Global
Dynamic: No
Type: number
Range:
5to1000000Default Value:
32768
handlersocket_epoll
handlersocket_epollDescription: Specify whether to use epoll for I/O multiplexing.
Command line:
--handlersocket-epoll="value"Scope: Global
Dynamic: No
Type: number
Valid values:
Min:
0Max:
1
Default Value:
1
handlersocket_plain_secret
handlersocket_plain_secretDescription: When set, enables plain-text authentication for the listener for read requests, with the value of the option specifying the secret authentication key.
Command line:
--handlersocket-plain-secret="value"Dynamic: No
Type: string
Default Value: Empty
handlersocket_plain_secret_wr
handlersocket_plain_secret_wrDescription: When set, enables plain-text authentication for the listener for write requests, with the value of the option specifying the secret authentication key.
Command line:
--handlersocket-plain-secret-wr="value"Dynamic: No
Type: string
Default Value: Empty
handlersocket_port
handlersocket_portDescription: Specify the port to bind to for reads. An empty value disables the listener.
Command line:
--handlersocket-port="value"Scope: Global
Dynamic: No
Type: number
Default Value: Empty, previously
9998
handlersocket_port_wr
handlersocket_port_wrDescription: Specify the port to bind to for writes. An empty value disables the listener.
Command line:
--handlersocket-port-wr="value"Scope: Global
Dynamic: No
Type: number
Default Value: Empty, previously
9999
handlersocket_rcvbuf
handlersocket_rcvbufDescription: Specify the maximum socket receive buffer (in bytes). If '0' then the system default is used.
Command line:
--handlersocket-rcvbuf="value"Scope: Global
Dynamic: No
Type: number
Range:
0to1677216Default Value:
0
handlersocket_readsize
handlersocket_readsizeDescription: Specify the minimum length of the request buffer. Larger values consume available memory but can make handlersocket faster for large requests.
Command line:
--handlersocket-readsize="value"Scope: Global
Dynamic: No
Type: number
Range:
0to1677216Default Value:
0(possibly4096)
handlersocket_sndbuf
handlersocket_sndbufDescription: Specify the maximum socket send buffer (in bytes). If '0' then the system default is used.
Command line:
--handlersocket-sndbuf="value"Scope: Global
Dynamic: No
Type: number
Range:
0to1677216Default Value:
0
handlersocket_threads
handlersocket_threadsDescription: Specify the number of worker threads for reads. Recommended value = number of CPU cores * 2.
Command line:
--handlersocket-threads="value"Scope: Global
Dynamic: No
Type: number
Range:
1to3000Default Value:
16
handlersocket_threads_wr
handlersocket_threads_wrDescription: Specify the number of worker threads for writes. Recommended value = 1.
Command line:
--handlersocket-threads-wr="value"Scope: Global
Dynamic: No
Type: number
Range:
1to3000Default Value:
1
handlersocket_timeout
handlersocket_timeoutDescription: Specify the socket timeout in seconds.
Command line:
--handlersocket-timeout="value"Scope: Global
Dynamic: No
Type: number
Range:
30to3600Default Value:
300
handlersocket_verbose
handlersocket_verboseDescription: Specify the logging verbosity.
Command line:
--handlersocket-verbose="value"Scope: Global
Dynamic: No
Type: number
Valid values:
Min:
0Max:
10000
Default Value:
10
handlersocket_wrlock_timeout
handlersocket_wrlock_timeoutDescription: The write lock timeout in seconds. When acting on write requests, handlersocket locks an advisory lock named 'handlersocket_wr' and this option sets the timeout for it.
Command line:
--handlersocket-wrlock-timeout="value"Scope: Global
Dynamic: No
Type: number
Range:
0to3600
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

