Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

fix pessimistic-txn config of tikv (#910) #911

Merged
merged 1 commit into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions conf/tikv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -711,17 +711,14 @@ import:
## Stream channel window size, stream will be blocked on channel full.
# stream-channel-window: 128

pessimistic-txn:
pessimistic_txn:
## Enable pessimistic transaction
# enabled: true

## Time to wait in milliseconds before responding to TiDB when pessimistic
## transactions # encounter locks
## transactions encounter locks
# wait-for-lock-timeout: 3000

## Time to delay in milliseconds before responding to TiDB when other transactions
## release locks that pessimistic transactions are waiting for(0 to disable).
# wake-up-delay-duration: 1

## Interval in milliseconds to check the membership change of deadlock detector.
# monitor-membership-interval: 3000
5 changes: 5 additions & 0 deletions roles/tikv/templates/tikv.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,8 @@
{% for item, value in tikv_conf.import | dictsort -%}
{{ item }} = {{ value | to_json }}
{% endfor %}

[pessimistic-txn]
{% for item, value in tikv_conf.pessimistic_txn | dictsort -%}
{{ item }} = {{ value | to_json }}
{% endfor %}
7 changes: 2 additions & 5 deletions roles/tikv/vars/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -711,17 +711,14 @@ import:
## Stream channel window size, stream will be blocked on channel full.
# stream-channel-window: 128

pessimistic-txn:
pessimistic_txn:
## Enable pessimistic transaction
# enabled: true

## Time to wait in milliseconds before responding to TiDB when pessimistic
## transactions # encounter locks
## transactions encounter locks
# wait-for-lock-timeout: 3000

## Time to delay in milliseconds before responding to TiDB when other transactions
## release locks that pessimistic transactions are waiting for(0 to disable).
# wake-up-delay-duration: 1

## Interval in milliseconds to check the membership change of deadlock detector.
# monitor-membership-interval: 3000