Skip to content

Commit

Permalink
feat: 分离客户端检查与服务实例检查的机制,以免互相影响 (polarismesh#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshan authored and shichaoyuan committed Feb 27, 2023
1 parent 163b25e commit a436cd8
Show file tree
Hide file tree
Showing 17 changed files with 888 additions and 285 deletions.
2 changes: 1 addition & 1 deletion release/conf/polaris-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ naming:
clientRegister:
open: true
queueSize: 10240
waitTime: 32s
waitTime: 32ms
maxBatchCount: 1024
concurrency: 64
clientDeregister:
Expand Down
23 changes: 23 additions & 0 deletions release/upgrade/circuitbreaker_rule_transform/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## 熔断规则迁移工具

### 说明

本工具主要用于将存量的熔断规则迁移到1.14.x及以上版本的熔断规则。

### 使用方式

***step1: 编译***

将工具进行编译,再此目录下执行```go build```可完成迁移。

***step2: 升级数据库***

执行数据库升级脚本,将数据库升级到1.14.x及以上版本的数据库,确保数据库中存在circuitbreaker_rule_v2的数据库表。

***step3: 执行迁移***

执行迁移工具,并输入数据库的地址及用户名等信息,如下所示:

```shell
./circuitbreaker_rule_transform --db_addr=127.0.0.1:3306 --db_name=polaris_server --db_user=root --db_pwd=123456
```
14 changes: 14 additions & 0 deletions release/upgrade/circuitbreaker_rule_transform/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module github.com/polarismesh/polaris/release/upgrade/circuitbreaker_rule_transform

go 1.19

require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/polarismesh/specification v1.1.1
)

require (
github.com/go-sql-driver/mysql v1.7.0
github.com/google/uuid v1.3.0
google.golang.org/protobuf v1.28.1
)
17 changes: 17 additions & 0 deletions release/upgrade/circuitbreaker_rule_transform/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
github.com/go-sql-driver/mysql v1.7.0 h1:ueSltNNllEqE3qcWBTD0iQd3IpL/6U+mJxLkazJ7YPc=
github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/polarismesh/specification v1.1.1 h1:BxZ5p78g4kaoGZ6EPM1b+QT/QCI/nkR/1qlcAeKdtdA=
github.com/polarismesh/specification v1.1.1/go.mod h1:rDvMMtl5qebPmqiBLNa5Ps0XtwkP31ZLirbH4kXA0YU=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
Loading

0 comments on commit a436cd8

Please sign in to comment.