Opzioni di configurazione di HandlerSocket

Stai visualizzando una vecchia versione di questo article. Visualizza la versione più recente.

Il plugin HandlerSocket ha le seguenti opzioni.

Si aggiungano queste opzioni alla sezione [mysqld] del file my.cnf.


handlersocket_verbose

  • Spiegazione: Specify the logging verbosity.
  • Riga di comando: --handlersocket_verbose="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 0
    • Max: 10000
  • Valore Predefinito: 10

handlersocket_address

  • Spiegazione: Specify the IP address to bind to.
  • Riga di comando: --handlersocket_address="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: Indirizzo IP
  • Valore Predefinito: 0.0.0.0

handlersocket_port

  • Spiegazione: Specify the port to bind to for reads. An empty value disables the listener.
  • Riga di comando: --handlersocket_port="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valore Predefinito: 9998

handlersocket_port_wr

  • Spiegazione: Specify the port to bind to for writes. An empty value disables the listener.
  • Riga di comando: --handlersocket_port_wr="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valore Predefinito: 9999

handlersocket_epoll

  • Spiegazione: Specify whether to use epoll for I/O multiplexing.
  • Riga di comando: --handlersocket_epoll="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 0
    • Max: 1
  • Valore Predefinito: 1

handlersocket_threads

  • Spiegazione: Specify the number of worker threads for reads. Recommended value = ((# CPU cores) * 2).
  • Riga di comando: --handlersocket_threads="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 1
    • Max: 3000
  • Valore Predefinito: 16

handlersocket_threads_wr

  • Spiegazione: Specify the number of worker threads for writes. Recommended value = 1.
  • Riga di comando: --handlersocket_threads_wr="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 1
    • Max: 3000
  • Valore Predefinito: 1

handlersocket_timeout

  • Spiegazione: Specify the socket timeout in seconds.
  • Riga di comando: --handlersocket_timeout="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 30
    • Max: 3600
  • Valore Predefinito: 300

handlersocket_backlog

  • Spiegazione: Specify the listen backlog length.
  • Riga di comando: --handlersocket_backlog="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 5
    • Max: 1000000
  • Valore Predefinito: 32768

handlersocket_sndbuf

  • Spiegazione: Specify the maximum socket send buffer (in bytes). If '0' then the system default is used.
  • Riga di comando: --handlersocket_sndbuf="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 0
    • Max: 1677216
  • Valore Predefinito: 0

handlersocket_rcvbuf

  • Spiegazione: Specify the maximum socket receive buffer (in bytes). If '0' then the system default is used.
  • Riga di comando: --handlersocket_rcvbuf="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 0
    • Max: 1677216
  • Valore Predefinito: 0

handlersocket_readsize

  • Spiegazione: Specify the minimum length of the request buffer. Larger values consume available memory but can make handlersocket faster for large requests.
  • Riga di comando: --handlersocket_readsize="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 0
    • Max: 1677216
  • Valore Predefinito: 0 (se possibile 4096)

handlersocket_accept_balance

  • Spiegazione: When set to a value other than zero ('0'), handlersocket will try to balance accepted connections among threads. Default is 0 but if you use persistent connections (for example if you use client-side connection pooling) then a non-zero value is recommended.
  • Riga di comando: --handlersocket_accept_balance="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 0
    • Max: 10000
  • Valore Predefinito: 0

handlersocket_wrlock_timeout

  • Spiegazione: 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.
  • Riga di comando: --handlersocket_wrlock_timeout="valore"
  • Contesto: Globale
  • Dinamica: No
  • Tipo: numero
  • Valori Validi:
    • Min: 0
    • Max: 3600
  • Valore Predefinito: 12

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.