Git Product home page Git Product logo

Comments (5)

wbtlb avatar wbtlb commented on May 27, 2024 1

Please provide your configuration and the command of starting. @dongzl

from pisanix.

dongzl avatar dongzl commented on May 27, 2024 1

when start pisa-proxy, the config path is error, so start success, but client connect refused.

from pisanix.

dongzl avatar dongzl commented on May 27, 2024
# api 配置块,对应命令行参数和环境变量
[admin]
# api 端口
port = "8081"
# 日志级别
log_level = "INFO"

# pisa-proxy 代理配置块
[proxy]
# config a proxy
[[proxy.config]]
# proxy 代理地址
listen_addr = "0.0.0.0:9088"
# proxy 认证用户名
user = "root"
# proxy 认证密码
password = "12345678"
# proxy schema
db = "test"
# 配置后端数据源类型
backend_type = "mysql"
# proxy 与后端数据库建连连接池大小,值范围:1 ~ 255, 默认值:64
pool_size = 3

# 后端负载均衡配置
[proxy.config.simple_loadbalance]
# 负载均衡算法:[random/roundrobin], 默认值: random 算法
balance_type = "random"
# 选择挂载后端节点
nodes = ["ds001"]

[[proxy.config.plugin.concurrency_control]]
regex = "aaa"
max_concurrency = 5
duration = 333

[[proxy.config.plugin.concurrency_control]]
regex = "bbb"
max_concurrency = 5
duration = 333

[[proxy.config.plugin.circuit_break]]
regex = "111"

[[proxy.config.plugin.circuit_break]]
regex = "222"

# 后端数据源配置
[mysql]
[[mysql.node]]
# 数据源 name
name = "ds001"
# database name
db = "employees"
# 数据库 user
user = "root"
# 数据库 password
password = "123456"
# 数据库地址
host = "127.0.0.1"
# 数据库端口
port = 3307
# 负载均衡节点权重
weight = 1

from pisanix.

dongzl avatar dongzl commented on May 27, 2024

Start proxy server command:

LOCAL_CONFIG=true target/debug/proxy -c examples/example-config.toml

from pisanix.

wbtlb avatar wbtlb commented on May 27, 2024

We will optimize in the future.Thanks for your report. @dongzl

from pisanix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.