Logo
Properties

Properties #

Introduction #

DBPlusEngine provides the way of property configuration to configure system level configuration.

Configuration Item Explanation #

NameData TypeDescriptionDefault ValueDynamic Update
sql-show (?)booleanWhether show SQL or not in log.
Print SQL details can help developers debug easier. The log details include: logic SQL, actual SQL and SQL parse result.
Enable this property will log into log topic ShardingSphere-SQL, log level is INFO.
falsetrue
sql-simple (?)booleanWhether show SQL details in simple style.falsetrue
kernel-executor-size (?)intThe max thread size of worker group to execute SQL. One ShardingSphereDataSource will use a independent thread pool, it does not share thread pool even different data source in same JVM.infinitefalse
max-connections-size-per-query (?)intMax opened connection size for each query.1true
check-table-metadata-enabled (?)booleanWhether validate table meta data consistency when application startup or updated.falsefalse
proxy-frontend-flush-threshold (?)intFlush threshold for every records from databases for ShardingSphere-Proxy.128true
proxy-hint-enabled (?)booleanWhether enable hint for ShardingSphere-Proxy. Using Hint will switch proxy thread mode from IO multiplexing to per connection per thread, which will reduce system throughput.falsetrue
proxy-backend-query-fetch-size (?)intProxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy. The default value is -1, which means set the minimum value for different JDBC drivers.-1false
proxy-frontend-executor-size (?)intProxy frontend Netty executor size. The default value is 0, which means let Netty decide.0false
proxy-backend-executor-suitable (?)StringAvailable options of proxy backend executor suitable: OLAP(default), OLTP. The OLTP option may reduce time cost of writing packets to client, but it may increase the latency of SQL execution and block other clients if client connections are more than proxy-frontend-executor-size, especially executing slow SQL.OLAPfalse
proxy-frontend-max-connections (?)intThe maximum permitted number of client connections to Proxy. The default value is 0 and less than or equal to 0 means no limitation.0true
sql-federation-type (?)StringSQL federation executor type, including: NONE, ORIGINAL, ADVANCED.NONEFalse
proxy-mysql-default-version (?)StringProxy specifies the MySQL version through configuration files, and the default verison is 5.7.22.5.7.22False
proxy-default-port (?)StringProxy specifies the default window through configuration files.3307False
proxy-netty-backlog (?)intProxy specifies the default netty back_log parameter through configuration files.1024False
proxy-frontend-database-protocol-typeStringProxy front-end protocol type, supports MySQL, PostgreSQL, openGaussNONEFalse
proxy-instance-typeStringProxy instance types, options:Proxy, SphereEx:Proxy, Proxy indicates the deployment type on the cloud, SphereEx:Proxy indicates the local deployment type.Proxyfalse

Properties can be updated by DistSQL#RAL. Dynamic update can take effect immediately, static update can take effect after restarted.