Spider Table Parameters

When a table uses the Spider storage engine, the following Spider table parameters can be set in the COMMENT clause of the CREATE TABLE statement. Many Spider table parameters have corresponding system variables, so they can be set for all Spider tables on the node. For additional information, see the Spider System Variables page.

From MariaDB 11.3, many table parameters can be set using dedicated Spider table options, see the Table Option Name fields below. From MariaDB 11.4, using the COMMENT clause is deprecated, as well as table parameters that do not have corresponding table options.

access_balances

  • Description: Connection load balancing integer weight.
  • Default Table Value: 0
  • DSN Parameter Name: abl
  • Deprecated: MariaDB 11.4.0
  • Description: Number of active remote servers, for use in load balancing read connections
  • Default Table Value: all backends
  • DSN Parameter Name: alc
  • Deprecated: MariaDB 11.4.0

auto_increment_mode

bgs_mode

bulk_size

bulk_update_size

casual_read

  • Description:
  • Default Table Value:
  • DSN Parameter Name:
  • Introduced: Spider 3.2
  • Deprecated: MariaDB 11.4.0

connect_timeout

database

  • Description: Database name for reference table that exists on remote backend server.
  • Default Table Value: local table database
  • DSN Parameter Name: database
  • Table Option Name: REMOTE_DATABASE
  • Table Option Introduced: MariaDB 10.8.0

default_file

  • Description: Configuration file used when connecting to remote servers. When the default_group table variable is set, this variable defaults to the values of the --defaults-extra-file or --defaults-file options. When the default_group table variable is not set, it defaults to none.
  • Default Table Value: none
  • DSN Parameter Name: dff
  • Table Option Name: DEFAULT_FILE
  • Table Option Introduced: MariaDB 11.3.0

default_group

  • Description: Group name in configuration file used when connecting to remote servers.
  • Default Table Value: none
  • DSN Parameter Name: dfg
  • Table Option Name: DEFAULT_GROUP
  • Table Option Introduced: MariaDB 11.3.0

delete_all_rows_type

force_bulk_delete

force_bulk_update

host

  • Description: Host name of remote server.
  • Default Table Value: localhost
  • DSN Parameter Name: host
  • Table Option Name: REMOTE_HOST
  • Table Option Introduced: MariaDB 11.3.0

idx000

  • Description: When using an index on Spider tables for searching, Spider uses this hint to search the remote table. The remote table index is related to the Spider table index by this hint. The number represented by 000 is the index ID, which is the number of the index shown by the SHOW CREATE TABLE statement. 000 is the Primary Key. For instance, idx000 "force index(PRIMARY)" (in abbreviated format idx000 "f PRIMARY").
    • f force index
    • u use index
    • ig ignore index
  • Default Table Value: none
  • Table Option Name: IDX
  • Table Option Introduced: MariaDB 11.3.0
  • Description: Change status of the remote backend server link.
    • 0 Doesn't change status.
    • 1 Changes status to OK.
    • 2 Changes status to RECOVERY.
    • 3 Changes status to no more in group communication.
  • Default Table Value: 0
  • DSN Parameter Name: lst
  • Deprecated: MariaDB 11.4.0

monitoring_bg_interval

  • Description: Interval of background monitoring in microseconds.
  • Default Table Value: 10000000
  • DSN Parameter Name: mbi
  • Deprecated: MariaDB 11.4.0

monitoring_bg_kind

  • Description: Kind of background monitoring to use.
    • 0 Disables background monitoring.
    • 1 Monitors connection state.
    • 2 Monitors state of table without WHERE clause.
    • 3 Monitors state of table with WHERE clause (currently unsupported).
  • Default Table Value: 0
  • DSN Parameter Name: mbk
  • Deprecated: MariaDB 11.4.0

monitoring_kind

  • Description: Kind of monitoring.
    • 0 Disables monitoring
    • 1 Monitors connection state.
    • 2 Monitors state of table without WHERE clause.
    • 3 Monitors state of table with WHERE clause (currently unsupported).
  • Default Table Value: 0
  • DSN Parameter Name: mkd
  • Deprecated: MariaDB 11.4.0

monitoring_limit

  • Description: Limits the number of records in the monitoring table. This is only effective when Spider monitors the state of a table, which occurs when the monitoring_kind table variable is set to a value greater than 1.
  • Default Table Value: 1
  • Range: 0 upwards
  • DSN Parameter Name: mlt
  • Deprecated: MariaDB 11.4.0

monitoring_server_id

  • Description: Preferred monitoring @@server_id for each backend failure. You can use this to geo-localize backend servers and set the first Spider monitoring node to contact for failover. In the event that this monitor fails, other monitoring nodes are contacted. For multiple copy backends, you can set a lazy configuration with a single MSI instead of one per backend.
  • Default Table Value: server_id
  • DSN Parameter Name: msi
  • Deprecated: MariaDB 11.4.0

multi_split_read

net_read_timeout

net_write_timeout

password

  • Description: Remote server password.
  • Default Table Value: none
  • DSN Parameter Name: password
  • Table Option Name: REMOTE_PASSWORD
  • Table Option Introduced: MariaDB 11.3.0

port

  • Description: Remote server port.
  • Default Table Value: 3306
  • DSN Parameter Name: port
  • Table Option Name: REMOTE_PORT
  • Table Option Introduced: MariaDB 11.3.0

priority

  • Description: Priority. Used to define the order of execution. For instance, Spider uses priority when deciding the order in which to lock tables on a remote server.
  • Default Table Value: 1000000
  • DSN Parameter Name: prt
  • Table Option Name: PRIORITY
  • Table Option Introduced: MariaDB 11.3.0

query_cache

  • Description: Uses the option for the Query Cache when issuing SELECT statements to the remote server.
  • Default Table Value: 0
  • DSN Parameter Name: qch
  • Table Option Name: QUERY_CACHE
  • Table Option Introduced: MariaDB 11.3.0

query_cache_sync

  • Description: A two-bit bitmap. Whether to pass the option for the Query Cache (if any) when issuing SELECT statements to the remote server.
    • 0 No option passed.
    • 1 Passes the SQL_CACHE option, if specified in the query to the spider table.
    • 2 Passes the SQL_NO_CACHE option, if specified in the query to the spider table.
    • 3 Passes both the SQL_CACHE option and the SQL_NO_CACHE option, if specified in the query to the spider table.
  • Default Table Value: 3
  • Table Option Name: QUERY_CACHE_SYNC
  • Table Option Introduced: MariaDB 11.3.0

read_rate

  • Description: Rate used to calculate the amount of time Spider requires when executing index scans.
  • Default Table Value: 0.0002
  • DSN Parameter Name: rrt
  • Deprecated: MariaDB 11.4.0

scan_rate

  • Description: Rate used to calculate the amount of time Spider requires when scanning tables.
  • Default Table Value: 0.0001
  • DSN Parameter Name: srt
  • Deprecated: MariaDB 11.4.0

server

  • Description: Server name. Used when generating connection information with CREATE SERVER statements.
  • Default Table Value: none
  • DSN Parameter Name: srv
  • Table Option Name: REMOTE_SERVER
  • Table Option Introduced: MariaDB 10.8.0

socket

  • Description: Remote server socket.
  • Default Table Value: none
  • DSN Parameter Name: socket
  • Table Option Name: REMOTE_SOCKET
  • Table Option Introduced: MariaDB 11.3.0

ssl_ca

  • Description: Path to the Certificate Authority file.
  • Default Table Value: none
  • DSN Parameter Name: sca
  • Table Option Name: SSL_CA
  • Table Option Introduced: MariaDB 11.3.0

ssl_capath

  • Description: Path to directory containing trusted TLS CA certificates in PEM format.
  • Default Table Value: none
  • DSN Parameter Name: scp
  • Table Option Name: SSL_CAPATH
  • Table Option Introduced: MariaDB 11.3.0

ssl_cert

  • Description: Path to the certificate file.
  • Default Table Value: none
  • DSN Parameter Name: scr
  • Table Option Name: SSL_CERT
  • Table Option Introduced: MariaDB 11.3.0

ssl_cipher

  • Description: List of allowed ciphers to use with TLS encryption.
  • Default Table Value: none
  • DSN Parameter Name: sch
  • Table Option Name: SSL_CIPHER
  • Table Option Introduced: MariaDB 11.3.0

ssl_key

  • Description: Path to the key file.
  • Default Table Value: none
  • DSN Parameter Name: sky
  • Table Option Name: SSL_KEY
  • Table Option Introduced: MariaDB 11.3.0

ssl_verify_server_cert

  • Description: Enables verification of the server's Common Name value in the certificate against the host name used when connecting to the server.
    • 0 Disables verification.
    • 1 Enables verification.
  • Default Table Value: 0
  • DSN Parameter Name: svc
  • Table Option Name: SSL_VSC
  • Table Option Introduced: MariaDB 11.3.0

table

  • Description: Destination table name.
  • Default Table Value: Same table name
  • DSN Parameter Name: tbl
  • Table Option Name: REMOTE_TABLE
  • Table Option Introduced: MariaDB 10.8.0

table_count_mode

  • Description: for setting table flags HA_STATS_RECORDS_IS_EXACT and HA_HAS_RECORDS.
  • Default Table Value: 0
  • Table Option Name: TABLE_COUNT_MODE
  • Table Option Introduced: MariaDB 11.3.0

username

  • Description: user name for the data node.
  • Default Table Value: Same user name
  • Table Option Name: REMOTE_USERNAME
  • Table Option Introduced: MariaDB 11.3.0

use_pushdown_udf

wrapper

  • Description: wrapper for the data node.
  • Table Option Name: WRAPPER
  • Table Option Introduced: MariaDB 11.3.0

Comments

Comments loading...
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.