Skip to content

Commit

Permalink
Doc: update samples document (#56)
Browse files Browse the repository at this point in the history
* Doc: update samples document
  • Loading branch information
dk-lockdown committed May 14, 2022
1 parent a05235f commit 041a9e1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions samples/go/README.md
Expand Up @@ -16,7 +16,7 @@ cd dbpack

### Step3: run dbpack
```bash
make build
make build-local

vim ./samples/go/config1.yaml
# update distributed_transaction.etcd_config.endpoints
Expand All @@ -29,11 +29,11 @@ vim ./samples/go/config3.yaml
# update data_source_cluster.dsn
# update distributed_transaction.etcd_config.endpoints

./dist/dbpack start -config ../samples/go/config1.yml
./dist/dbpack start --config ./samples/go/config1.yml

./dist/dbpack start -config ../samples/go/config2.yml
./dist/dbpack start --config ./samples/go/config2.yml

./dist/dbpack start -config ../samples/go/config3.yml
./dist/dbpack start --config ./samples/go/config3.yml
```

### Step4: setup aggregation_svc client
Expand Down
2 changes: 1 addition & 1 deletion samples/go/config2.yaml
Expand Up @@ -23,7 +23,7 @@ filters:
lock_retry_times: 15

data_source_cluster:
- name: seata_product
- name: product
capacity: 30
max_capacity: 100
idle_timeout: 60s
Expand Down
2 changes: 1 addition & 1 deletion samples/go/config3.yaml
Expand Up @@ -23,7 +23,7 @@ filters:
lock_retry_times: 15

data_source_cluster:
- name: seata_order
- name: order
capacity: 30
max_capacity: 100
idle_timeout: 60s
Expand Down
8 changes: 4 additions & 4 deletions samples/java/README.md
Expand Up @@ -16,7 +16,7 @@ cd dbpack

### Step3: run dbpack
```bash
make build
make build-local

vim ./samples/java/config1.yaml
# update distributed_transaction.etcd_config.endpoints
Expand All @@ -29,11 +29,11 @@ vim ./samples/java/config3.yaml
# update data_source_cluster.dsn
# update distributed_transaction.etcd_config.endpoints

./dist/dbpack start -config ../samples/java/config1.yml
./dist/dbpack start --config ./samples/java/config1.yml

./dist/dbpack start -config ../samples/java/config2.yml
./dist/dbpack start --config ./samples/java/config2.yml

./dist/dbpack start -config ../samples/java/config3.yml
./dist/dbpack start --config ./samples/java/config3.yml
```

### Step4: setup aggregation_svc client
Expand Down
2 changes: 1 addition & 1 deletion samples/java/config2.yaml
Expand Up @@ -23,7 +23,7 @@ filters:
lock_retry_times: 15

data_source_cluster:
- name: seata_product
- name: product
capacity: 30
max_capacity: 100
idle_timeout: 60s
Expand Down
2 changes: 1 addition & 1 deletion samples/java/config3.yaml
Expand Up @@ -23,7 +23,7 @@ filters:
lock_retry_times: 15

data_source_cluster:
- name: seata_order
- name: order
capacity: 30
max_capacity: 100
idle_timeout: 60s
Expand Down

0 comments on commit 041a9e1

Please sign in to comment.