-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:tikv/client-java into remove-shad…
…owing-of-grpc-and-netty Signed-off-by: iosmanthus <[email protected]>
- Loading branch information
Showing
43 changed files
with
1,566 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# TiKV Configuration. | ||
|
||
[raftstore] | ||
pd-heartbeat-tick-interval = "2s" | ||
pd-store-heartbeat-tick-interval = "5s" | ||
split-region-check-tick-interval = "1s" | ||
|
||
[rocksdb] | ||
max-open-files = 10000 | ||
|
||
[raftdb] | ||
max-open-files = 10000 | ||
|
||
[storage] | ||
reserve-space = "0MB" | ||
api-version = 2 | ||
enable-ttl = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: CI (APIv2) | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
integration-test: | ||
name: Integration Test - ${{ matrix.tikv_version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
tikv_version: [v6.5.3, v7.1.1, nightly] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8.0' | ||
distribution: 'adopt' | ||
- name: Install TiUP | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh | ||
/home/runner/.tiup/bin/tiup install playground pd:${{ matrix.tikv_version }} tikv:${{ matrix.tikv_version }} | ||
- name: Start TiUP Playground | ||
run: | | ||
# Start TiKV in APIV2 | ||
touch tiup.log | ||
/home/runner/.tiup/bin/tiup playground ${{ matrix.tikv_version }} --tag kv --mode tikv-slim --kv 1 --without-monitor --kv.config /home/runner/work/client-java/client-java/.github/config/tikv_v2.toml --pd.config /home/runner/work/client-java/client-java/.github/config/pd.toml --pd.port 2379 2>&1 >> tiup.log & | ||
timeout 300 grep -q "PD Endpoints:" <(tail -f tiup.log) | ||
cat tiup.log | ||
# Get PD address | ||
echo "RAWKV_PD_ADDRESSES=127.0.0.1:2379" >> $GITHUB_ENV | ||
echo "TXNKV_PD_ADDRESSES=127.0.0.1:2379" >> $GITHUB_ENV | ||
- name: Run Integration Test | ||
run: mvn clean test | ||
- name: Print TiKV logs | ||
if: failure() | ||
run: | | ||
echo "TiKV logs" | ||
cat /home/runner/.tiup/data/kv/tikv-0/tikv.log | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: ${{ github.workspace }}/target/site/jacoco/jacoco.xml | ||
fail_ci_if_error: true | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Production Readiness | ||
|
||
In general, the latest [release](https://github.com/tikv/client-java/releases) of TiKV Java Client is ready for production use. But it is not battle-tested as full featured client for TiKV in all use cases. This page will give you more details. | ||
|
||
## RawKV | ||
All RawKV APIs are covered by [CI](https://github.com/tikv/client-java/actions/workflows/ci.yml). | ||
|
||
At this time, RawKV has been used in the production environment of some commercial customers in latency sensitive systems. But they only use part of the RawKV APIs (mainly including `raw_put`, `raw_get`, `raw_compare_and_swap`, and `raw_batch_put`). | ||
|
||
## TxnKV | ||
All TxnKV APIs are covered by [CI](https://github.com/tikv/client-java/actions/workflows/ci.yml). | ||
|
||
In addition, TxnKV has been used in the [TiSpark](https://docs.pingcap.com/tidb/stable/tispark-overview) and [TiBigData](https://github.com/tidb-incubator/TiBigData) project to integrate data from TiDB to Big Data ecosystem. TiSpark and TiBigData are used in the production system of some commercial customers and internet companies. | ||
|
||
Similar to RawKV, only part of APIs are used in this scenario (mainly including `prewrite/commit` and `coprocessor`). And this use case doesn't care about latency but throughput and reliability. | ||
|
||
## TiDB Cloud | ||
Directly using TiKV is not possible on TiDB Cloud due to the fact that client has to access the whole cluster, which has security issues. And TiKV managed service is not coming soon as it's not contained in [roadmap](https://docs.pingcap.com/tidbcloud/tidb-cloud-roadmap) yet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.