store_mysqlopt

package module
v0.0.1-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 3 Imported by: 0

README

polaris-store-mysql-opt

如何使用

构建

执行构建脚本 Makefile 即可

# ${store_mysql_opt_plugin_version}: store-mysqlopt 插件版本,默认为 main 的最新 commit
# ${polaris_server_tag}: 北极星服务端版本信息,默认为 main 分支
make build STORE_MYSQL_OPT_PLUGIN_VERSION=latest POLARIS_SERVER_VERSION=${polaris_server_tag}
配置文件调整

修改 conf/polaris-server.yaml 文件,参考下列配置调整 store 的配置信息

# Storage configuration
store:
  ## Database storage plugin mysqlOptStore
  name: mysqlOptStore
  option:
    master:
      dbType: mysql
      dbName: polaris_server
      dbUser: ##DB_USER##
      dbPwd: ##DB_PWD##
      dbAddr: ##DB_ADDR##
      maxOpenConns: 300
      maxIdleConns: 50
      connMaxLifetime: 300 # Unit second
      txIsolationLevel: 2 #LevelReadCommitted

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
store

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL