Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[close #610] [to #590] add docs for api v2 and tls reload #611

Merged
merged 6 commits into from
Jun 15, 2022

Conversation

iosmanthus
Copy link
Member

Signed-off-by: iosmanthus [email protected]

What problem does this PR solve?

Issue Number: close #610, to #590

Related changes

  • Need to cherry-pick the release branch

@iosmanthus iosmanthus requested a review from sunxiaoguang June 14, 2022 08:30
@codecov
Copy link

codecov bot commented Jun 14, 2022

Codecov Report

Merging #611 (787402b) into master (75f0586) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #611      +/-   ##
============================================
- Coverage     34.67%   34.65%   -0.03%     
+ Complexity     1419     1417       -2     
============================================
  Files           278      278              
  Lines         17352    17352              
  Branches       1971     1971              
============================================
- Hits           6017     6013       -4     
- Misses        10718    10728      +10     
+ Partials        617      611       -6     
Impacted Files Coverage Δ
...ty/handler/codec/http2/Http2ConnectionHandler.java 49.14% <0.00%> (-2.45%) ⬇️
src/main/java/io/grpc/internal/ClientCallImpl.java 57.07% <0.00%> (ø)
...rc/main/java/io/grpc/netty/NettyClientHandler.java 57.75% <0.00%> (+0.64%) ⬆️
...va/org/tikv/common/region/StoreHealthyChecker.java 73.41% <0.00%> (+3.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 75f0586...787402b. Read the comment docs.

@iosmanthus iosmanthus requested a review from zhangyangyu June 14, 2022 09:35
@@ -88,6 +88,14 @@ The following includes ThreadPool related parameters, which can be passed in thr
- a PKCS#8 private key file in PEM format. e.g. /home/tidb/client-key.pem.
- default: null

#### tikv.tls.reload_interval
- The interval in seconds to poll the change of SSL context, if a change detected, the SSL context will be rebuilded.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is always watching the change of cert file rather than SSL context.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SSL context includes certificate files and private key files.


## API V2
With TiKV version >= 6.1.0, we release a new feature that allows the coexistence of transcation data and raw data. This feature could allow the [TiCDC](https://github.com/tikv/migration/tree/main/cdc) to capture the change of the data, and these events could be consumed by the downstream infrastructure like Kafka or another TiKV cluster for backup.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CDC feature is not released in v6.1.0, and we will not implement cdc with TiCDC. Suggest just to refer to v6.1.0 release notes as:

Suggested change
With TiKV version >= 6.1.0, we release a new feature that allows the coexistence of transcation data and raw data. This feature could allow the [TiCDC](https://github.com/tikv/migration/tree/main/cdc) to capture the change of the data, and these events could be consumed by the downstream infrastructure like Kafka or another TiKV cluster for backup.
With TiKV version >= 6.1.0, we release a new feature called "TiKV API V2", which provides a new Raw Key Value storage format and access interface. Please refer to [v6.10 release notes](https://docs.pingcap.com/tidb/stable/release-6.1.0#ease-of-use) for detail.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a new Raw Key-Value storage format is a too general description of this feature, how about keeping the statement of the coexistence of transaction data and raw data.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a new Raw Key-Value storage format is a too general description of this feature, how about keeping the statement of the coexistence of transaction data and raw data.

LGTM.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean:

Suggested change
With TiKV version >= 6.1.0, we release a new feature that allows the coexistence of transcation data and raw data. This feature could allow the [TiCDC](https://github.com/tikv/migration/tree/main/cdc) to capture the change of the data, and these events could be consumed by the downstream infrastructure like Kafka or another TiKV cluster for backup.
With TiKV version >= 6.1.0, we release a new feature called "TiKV API V2" which provides a new raw key-value storage format allowing the coexistence of transaction data and raw data. Please refer to [v6.10 release notes](https://docs.pingcap.com/tidb/stable/release-6.1.0#ease-of-use) for detail.

docs/src/examples/rawkv.md Outdated Show resolved Hide resolved
docs/src/examples/rawkv.md Outdated Show resolved Hide resolved
@iosmanthus iosmanthus force-pushed the add-docs-for-api-v2-and-tls-reload branch from f8258de to 2691bca Compare June 15, 2022 06:29
pingyu
pingyu previously approved these changes Jun 15, 2022
Copy link
Contributor

@pingyu pingyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

zhangyangyu
zhangyangyu previously approved these changes Jun 15, 2022
@ti-srebot
Copy link
Collaborator

@zhangyangyu, Thanks for your review. The bot only counts LGTMs from Reviewers and higher roles, but you're still welcome to leave your comments. You are not a reviewer or committer or co-leader or leader.

@@ -88,6 +88,14 @@ The following includes ThreadPool related parameters, which can be passed in thr
- a PKCS#8 private key file in PEM format. e.g. /home/tidb/client-key.pem.
- default: null

#### tikv.tls.reload_interval
- The interval in seconds to poll the change of TLS context, if a change detected, the SSL context will be rebuilded.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if a change detected -> if a change is detected

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

- default: `"10s"`, `"0s"` means disable TLS context reload.

#### tikv.conn.recycle_time
- After `tikv.conn.recycle_time` (in seconds) with a TLS context reloading, the old connections will be forced to shutdown preventing channel leak.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be forced to shutdown after recycle time to prevent channel leak.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


## API V2
With TiKV version >= 6.1.0, we release a new feature called "TiKV API V2" which provides a new raw key-value storage format allowing the coexistence of transaction data and raw data. Please refer to [v6.10 release notes](https://docs.pingcap.com/tidb/stable/release-6.1.0#ease-of-use) for detail.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transaction data and raw data -> TxnKV and RawKV

I personally think the latter is more familiar to TiKV developers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@iosmanthus iosmanthus dismissed stale reviews from zhangyangyu and pingyu via 787402b June 15, 2022 07:16
@iosmanthus iosmanthus merged commit 7e6af29 into tikv:master Jun 15, 2022
@iosmanthus iosmanthus deleted the add-docs-for-api-v2-and-tls-reload branch June 15, 2022 07:31
ti-srebot pushed a commit to ti-srebot/client-java that referenced this pull request Jun 15, 2022
@ti-srebot
Copy link
Collaborator

cherry pick to release-3.3 in PR #614

iosmanthus added a commit that referenced this pull request Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add docs for API V2
6 participants