diff --git a/conf/tikv.yml b/conf/tikv.yml index 2f811b0f3..1934ac0fc 100644 --- a/conf/tikv.yml +++ b/conf/tikv.yml @@ -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 diff --git a/roles/tikv/templates/tikv.toml.j2 b/roles/tikv/templates/tikv.toml.j2 index 0dfc6393b..610b842db 100644 --- a/roles/tikv/templates/tikv.toml.j2 +++ b/roles/tikv/templates/tikv.toml.j2 @@ -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 %} diff --git a/roles/tikv/vars/default.yml b/roles/tikv/vars/default.yml index 1fc02fac6..d42a9e065 100644 --- a/roles/tikv/vars/default.yml +++ b/roles/tikv/vars/default.yml @@ -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