Comments (5)
Please provide your configuration and the command of starting. @dongzl
from pisanix.
when start pisa-proxy, the config path is error, so start success, but client connect refused.
from pisanix.
# 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.
Start proxy server command:
LOCAL_CONFIG=true target/debug/proxy -c examples/example-config.toml
from pisanix.
We will optimize in the future.Thanks for your report. @dongzl
from pisanix.
Related Issues (20)
- dbep matching method is wrong HOT 1
- unit test build error for mac HOT 3
- Define an authentication mechanism based on HashiCorp Vault
- feat(strategy): Pisanix supports horizontal sharding strategy HOT 2
- pisa support database sharding strategy and distributed transactions HOT 2
- feat(strategy): Pisanix sharding configuration HOT 1
- feat(strategy): Pisanix supports query planner HOT 1
- Compliance with latest MySQL version in MHA monitoring HOT 1
- 谁在使用 Pisanix ? HOT 4
- PisaProxy will crash even it has env variables about ADMIN
- [Pisa-Daemon]: Integrate tracing
- [PisaDaemon]: Integrate tracing HOT 1
- Add support binding table type to sharding rewrite sql.
- Add support limit to sharding merge stream
- Count function merge failed HOT 1
- great
- Use axum instead of rocket for http server HOT 1
- 这个项目还维护吗 HOT 1
- 根据官方文档进行demotest测试失败的问题---pisa-proxy容器未启动
- 这个项目不在开发了吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pisanix.