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

Branch2 #577

Merged
merged 236 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
236 commits
Select commit Hold shift + click to select a range
6f6eb57
feat: demo
newborn22 Oct 17, 2024
1a158fe
fix: fix s3 cmd
newborn22 Oct 17, 2024
59c005d
fix: fix bucket var name
newborn22 Oct 17, 2024
8254898
fix: fix s3 uri
newborn22 Oct 17, 2024
da808d2
fix: update api; uncomment s3 rb cmd
newborn22 Oct 17, 2024
a6bdd4a
fix: add inputs for wescale image tag
newborn22 Oct 17, 2024
a242179
fix: modify var ref
newborn22 Oct 17, 2024
98dae49
fix: generate yaml file
newborn22 Oct 17, 2024
7111b63
fix: fix var name error
newborn22 Oct 17, 2024
e487273
fix: fix file path
newborn22 Oct 17, 2024
a231d37
fix: fix sed cmd
newborn22 Oct 17, 2024
692e799
fix: fix var name
newborn22 Oct 17, 2024
e44c5b4
fix: create cluster
newborn22 Oct 17, 2024
4dea849
fix: fix configmap cmd
newborn22 Oct 17, 2024
b29dd20
fix: add debug log print
newborn22 Oct 17, 2024
56879b2
fix: add debug log
newborn22 Oct 17, 2024
2bda6ed
fix: add debug log
newborn22 Oct 17, 2024
47cfb9a
fix: add log
newborn22 Oct 17, 2024
4d81c80
fix: change pvc size
newborn22 Oct 17, 2024
828c981
fix: add log
newborn22 Oct 17, 2024
d919d93
fix: add lg
newborn22 Oct 17, 2024
43152b9
fix: pvc size
newborn22 Oct 17, 2024
1c9cf49
fix: add log
newborn22 Oct 17, 2024
ce3ffb8
fix: add lpg
newborn22 Oct 17, 2024
fae491f
fix: reduce cpu resource
newborn22 Oct 17, 2024
27073d2
fix: fix log
newborn22 Oct 17, 2024
f28a595
fix: add log
newborn22 Oct 17, 2024
547422f
fix: log
newborn22 Oct 17, 2024
98de448
fix:log
newborn22 Oct 17, 2024
eaadd90
fix: log
newborn22 Oct 17, 2024
ecadec2
fix: add log
newborn22 Oct 17, 2024
3c7e39b
fix: log
newborn22 Oct 17, 2024
23d149c
fix: log
newborn22 Oct 17, 2024
0063201
fix: minikube
newborn22 Oct 18, 2024
c64f02d
fix: add ngrok ssh
newborn22 Oct 18, 2024
81953e4
fix: replace ngrok with tmate
newborn22 Oct 18, 2024
7d78390
fix: wait for ssh login
newborn22 Oct 18, 2024
253a119
fix: fix synx error
newborn22 Oct 18, 2024
ab5398d
fix: change region to us
newborn22 Oct 18, 2024
b0e504d
fix: debug image
newborn22 Oct 18, 2024
bf4a4e7
fix: add env
newborn22 Oct 18, 2024
a516ceb
fix: change os
newborn22 Oct 21, 2024
910bf28
fix: apt to brew
newborn22 Oct 21, 2024
abbdf36
fix: brew install kind
newborn22 Oct 21, 2024
6c8d5c2
fix: kind create cluster
newborn22 Oct 21, 2024
7a1c49a
fix: brew install docker, kubectl
newborn22 Oct 21, 2024
cc521f6
fix: docker run wesql
newborn22 Oct 21, 2024
d5a2f16
fix: format
newborn22 Oct 21, 2024
f557883
fix: change region
newborn22 Oct 21, 2024
4ac8129
fix: single
newborn22 Oct 21, 2024
1057992
fix: format
newborn22 Oct 21, 2024
0af8204
fix: fix bug
newborn22 Oct 21, 2024
4bb959a
fix:fix
newborn22 Oct 21, 2024
7cb24d1
fix: format
newborn22 Oct 22, 2024
0775982
fix: fix
newborn22 Oct 22, 2024
197478f
fix: fix
newborn22 Oct 22, 2024
4c444da
feat: add wescale_wesql_performance_test2.yml
earayu Nov 2, 2024
0374f7f
feat: add wescale_wesql_performance_test2.yml
earayu Nov 2, 2024
f159a76
feat: test minikube
earayu Nov 5, 2024
7773d6b
feat: test minikube
earayu Nov 5, 2024
09b4e01
feat: test minikube
earayu Nov 5, 2024
14839ef
feat: test minikube
earayu Nov 5, 2024
e5e658e
feat: test minikube
earayu Nov 5, 2024
d7138c8
feat: test minikube
earayu Nov 5, 2024
be98169
feat: init k8s
earayu Nov 5, 2024
1053509
feat: init k8s
earayu Nov 5, 2024
46894a8
feat: init k8s
earayu Nov 5, 2024
553ffad
feat: init k8s
earayu Nov 5, 2024
bc62e6e
feat: init k8s
earayu Nov 5, 2024
35bfe19
feat: init k8s
earayu Nov 5, 2024
8599a7a
feat: init k8s
earayu Nov 5, 2024
5d1c097
feat: init k8s
earayu Nov 5, 2024
2019046
feat: init k8s
earayu Nov 5, 2024
b230f80
feat: init k8s
earayu Nov 5, 2024
85eac3a
feat: init k8s
earayu Nov 5, 2024
152f744
feat: init k8s
earayu Nov 5, 2024
dfe4783
feat: init k8s
earayu Nov 5, 2024
a6ec344
feat: init k8s
earayu Nov 5, 2024
143f19b
feat: init k8s
earayu Nov 5, 2024
e203165
feat: init k8s
earayu Nov 5, 2024
8b73e4c
feat: init k8s
earayu Nov 5, 2024
b0e6b4d
feat: init k8s
earayu Nov 5, 2024
02d4bfa
feat: init k8s
earayu Nov 5, 2024
14b8863
feat: init k8s
earayu Nov 5, 2024
2b29a1b
feat: init k8s
earayu Nov 5, 2024
b6afab1
feat: init k8s
earayu Nov 5, 2024
1b0c2d0
feat: init k8s
earayu Nov 5, 2024
71a614d
feat: init k8s
earayu Nov 5, 2024
6fe34e4
feat: init k8s
earayu Nov 5, 2024
d078457
feat: init k8s
earayu Nov 5, 2024
dcfbe14
feat: init k8s
earayu Nov 5, 2024
5b3959c
feat: init k8s
earayu Nov 5, 2024
be50790
feat: init k8s
earayu Nov 5, 2024
7514493
feat: update github actions
earayu Nov 6, 2024
d9b52ea
feat: add docker cluster
earayu Nov 6, 2024
d32f594
feat: add docker cluster
earayu Nov 6, 2024
20dac18
feat: add docker cluster
earayu Nov 6, 2024
9df3c76
fix: build img
newborn22 Nov 6, 2024
27ed2ba
feat: add docker cluster
earayu Nov 6, 2024
1bf03e9
fix: img
newborn22 Nov 6, 2024
aeaa62a
feat: add docker cluster
earayu Nov 6, 2024
b32cedd
feat: add docker cluster
earayu Nov 6, 2024
a360849
feat: add docker cluster
earayu Nov 6, 2024
1996fb8
feat: add docker cluster
earayu Nov 6, 2024
4ebb740
fix: img
newborn22 Nov 6, 2024
0f1bc83
fix: ssh
newborn22 Nov 6, 2024
6296f48
feat: add docker cluster
earayu Nov 6, 2024
2657090
feat: add docker cluster
earayu Nov 6, 2024
fc25000
feat: add docker cluster
earayu Nov 6, 2024
3870021
feat: add docker cluster
earayu Nov 6, 2024
e165383
feat: add docker cluster
earayu Nov 6, 2024
e1ebad7
feat: add docker cluster
earayu Nov 6, 2024
d4f7816
feat: add docker cluster
earayu Nov 6, 2024
6addb1c
feat: add docker cluster
earayu Nov 6, 2024
c5a0292
feat: add docker cluster
earayu Nov 6, 2024
4c0f9e2
feat: add docker cluster
earayu Nov 6, 2024
9d291b5
feat: add docker cluster
earayu Nov 6, 2024
7572046
feat: add docker cluster
earayu Nov 6, 2024
a1b0368
feat: add docker cluster
earayu Nov 6, 2024
3705140
feat: add docker cluster
earayu Nov 6, 2024
fedb29f
feat: add docker cluster
earayu Nov 6, 2024
d023dad
feat: add docker cluster
earayu Nov 6, 2024
821421f
feat: add docker cluster
earayu Nov 6, 2024
45d0cb6
feat: add docker cluster
earayu Nov 6, 2024
98a2e28
feat: add docker cluster
earayu Nov 6, 2024
b55cac6
feat: add docker cluster
earayu Nov 6, 2024
0f55989
feat: add docker cluster
earayu Nov 6, 2024
31726ba
feat: add docker cluster
earayu Nov 6, 2024
b74d15c
feat: add docker cluster
earayu Nov 6, 2024
2453d28
feat: add docker cluster
earayu Nov 6, 2024
0129b43
feat: add docker cluster
earayu Nov 6, 2024
3dd7442
feat: add docker cluster
earayu Nov 6, 2024
296ce62
feat: add docker cluster
earayu Nov 6, 2024
3cfd21a
feat: add docker cluster
earayu Nov 6, 2024
62bedb6
feat: add docker cluster
earayu Nov 6, 2024
bfd468f
fix: build img
newborn22 Nov 7, 2024
3a8e6e7
feat: update
earayu Nov 7, 2024
8ef37b1
feat: update wescale_wesql_performance_docker.yml
earayu Nov 7, 2024
0868d00
feat: update wescale_wesql_performance_docker.yml
earayu Nov 7, 2024
8fe0f8d
feat: update wescale_wesql_performance_docker.yml
earayu Nov 7, 2024
915162e
feat: update wescale_wesql_performance_docker.yml
earayu Nov 7, 2024
f04b048
feat: update wescale_wesql_performance_docker.yml
earayu Nov 7, 2024
842b393
feat: update wescale_wesql_performance_docker.yml
earayu Nov 7, 2024
6fb5f2d
feat: update wescale_wesql_performance_docker.yml
earayu Nov 7, 2024
5b65d6f
feat: update wescale_wesql_performance_docker.yml
earayu Nov 7, 2024
b13a8c5
feat: update wescale_wesql_performance_kind.yml
earayu Nov 7, 2024
1226138
feat: update wescale_wesql_performance_kind.yml
earayu Nov 7, 2024
8b8a43b
chore: disable github actions
earayu Nov 11, 2024
ff6eb83
feat: update branch2
earayu Nov 12, 2024
dc6be51
feat: update branch2
earayu Nov 12, 2024
55e3ff0
chore: delete ci
earayu Nov 12, 2024
d56a3b4
doc: add pseudo
newborn22 Nov 12, 2024
d126e26
fix: merge main
newborn22 Nov 12, 2024
8fcea1f
feat: dev
newborn22 Nov 14, 2024
322ec87
fix: spi
newborn22 Nov 14, 2024
62f2232
feat: branch create
newborn22 Nov 18, 2024
b806082
feat: add MysqlService
earayu Nov 18, 2024
35b73a0
feat: add MysqlService
earayu Nov 18, 2024
0f4dd85
feat: refactor branch code
earayu Nov 18, 2024
c27ce7d
feat: refactor branch
earayu Nov 18, 2024
2353ff8
chore: merge main
earayu Nov 18, 2024
ee1da5c
fix: move table to sidecar db
newborn22 Nov 20, 2024
cf6986d
fix: remove useless code
newborn22 Nov 20, 2024
bec18e8
fix: add branch schema type
newborn22 Nov 20, 2024
d70970d
fix: fix and refactor
newborn22 Nov 20, 2024
7343690
fix: mock util
newborn22 Nov 20, 2024
bcfb956
fix: fix testcase
newborn22 Nov 21, 2024
39a54f8
fix: fix
newborn22 Nov 21, 2024
c43de0f
feat: get branch diff tool func
newborn22 Nov 22, 2024
e0b9f1f
fix: refactor buildTableInfosQuerySQL
newborn22 Nov 22, 2024
34a4191
fix: fix getTableInfos and its testcase
newborn22 Nov 22, 2024
58cc61e
fix: fix GetBranchSchema and test case
newborn22 Nov 22, 2024
cc3b4dc
fix: branch create design done; sub func need complete
newborn22 Nov 24, 2024
b343362
fix: branch create done
newborn22 Nov 24, 2024
142a0f2
fix: rename table; add type filed
newborn22 Nov 25, 2024
15bd2d1
fix: BranchDiff
newborn22 Nov 25, 2024
2d209ca
fix: comment code
newborn22 Nov 25, 2024
0c47e5d
fix: modify table definiton
newborn22 Nov 25, 2024
6995cde
fix: BranchPrepareMergeBack design
newborn22 Nov 25, 2024
0f4bd63
fix: rename merge to merge back
newborn22 Nov 25, 2024
a688557
fix: modify table definition; design branch prepare merge back
newborn22 Nov 25, 2024
e4d8a6c
fix: prepapre merge back almost done
newborn22 Nov 25, 2024
ec21b28
fix: code almost done
newborn22 Nov 25, 2024
5522b9e
fix: fix branch table
newborn22 Nov 25, 2024
1406634
fix: CR; table struct modified
newborn22 Nov 27, 2024
f76d0e2
fix: SelectOrInsertBranchMeta
newborn22 Nov 27, 2024
d2951e9
fix: Simplified the function parameters
newborn22 Nov 27, 2024
a528f30
fix: Simplified the function parameters
newborn22 Nov 27, 2024
748f3b9
fix: option type
newborn22 Nov 28, 2024
ceb029e
fix: exec with db name; create table one by one
newborn22 Nov 28, 2024
87a5577
fix: common mysql service
newborn22 Nov 28, 2024
41e3d09
fix: add ut
newborn22 Nov 29, 2024
3ba796f
chore:Merge branch 'main' into branch2
newborn22 Nov 29, 2024
7e62b16
feat: add e2e test for branch
earayu Nov 29, 2024
d08180e
feat: add new_endtoend_test_for_branch.yml
earayu Nov 29, 2024
aa270f6
feat: add new_endtoend_test_for_branch.yml
earayu Nov 29, 2024
1ac3a65
chore: remove useless go module
earayu Nov 29, 2024
cbfdebd
fix: fix sql synx error
newborn22 Dec 1, 2024
16d3000
fix: testcase todo
newborn22 Dec 1, 2024
f311b2c
feat: add sql synx
newborn22 Dec 2, 2024
64231d8
fix: branch primitive framework
newborn22 Dec 2, 2024
4c15003
fix: branch params set and validate
newborn22 Dec 2, 2024
380351b
fix: create branch; validate branch meta
newborn22 Dec 2, 2024
277396b
fix: branch diff
newborn22 Dec 2, 2024
f7a8ecd
fix: prepare mergeback; merge back
newborn22 Dec 2, 2024
898b967
fix: reduce redundant code
newborn22 Dec 2, 2024
40004ec
fix: clean up cmd
newborn22 Dec 2, 2024
7e2e58a
fix: branch output
newborn22 Dec 3, 2024
53192ae
fix: validate ip
newborn22 Dec 3, 2024
f6cda92
fix: comment
newborn22 Dec 3, 2024
aebee18
fix: add token to non_reserved_keyword
newborn22 Dec 3, 2024
aee5e01
fix: ban diff merge option
newborn22 Dec 3, 2024
3e91354
fix: remove ip check; remove wrong testcase
newborn22 Dec 3, 2024
c49a1ff
fix: fix ut
newborn22 Dec 3, 2024
cca04d6
fix: fix testcase
newborn22 Dec 3, 2024
919b9c7
fix: wait cluster start up
newborn22 Dec 4, 2024
46207c8
fix: add log
newborn22 Dec 4, 2024
1919aea
fix: debug tmate
newborn22 Dec 4, 2024
015bed8
fix: vtgate mysql port 15307
newborn22 Dec 4, 2024
8cd13a0
fix: vtgate mysql port 15307
newborn22 Dec 4, 2024
08d6fee
fix: new branch e2e, remove tmate debug
newborn22 Dec 4, 2024
4e9cd06
chore: add .run
earayu Dec 4, 2024
1473900
fix: fix vtgate/vttablet debug xml
newborn22 Dec 4, 2024
c3501b8
fix: build primitive
newborn22 Dec 4, 2024
bfe4fa6
fix: create and clean up pass
newborn22 Dec 4, 2024
8034584
fix: check table exists
newborn22 Dec 4, 2024
460f46f
fix: basic branch e2e done
newborn22 Dec 5, 2024
91f36e9
test: failpoint test done
newborn22 Dec 5, 2024
b8319fb
fix: config cluster info in github ci by config file
newborn22 Dec 5, 2024
bf5aeb5
fix: fix go test cmd
newborn22 Dec 5, 2024
c8e1fb7
fix: fix source host and port in github ci
newborn22 Dec 5, 2024
32713ea
fix: allow native passwd auth
newborn22 Dec 5, 2024
dbbcae6
fix: add flag source_host_to_target
newborn22 Dec 5, 2024
1dd2dc0
fix: source_host_to_target
newborn22 Dec 5, 2024
0ea4c95
fix: enable failpoint when building image
newborn22 Dec 5, 2024
9289a8f
chore: Merge branch 'main' into branch2
newborn22 Dec 6, 2024
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
9 changes: 9 additions & 0 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ on:
required: false
type: string
default: 'image.tar'
enable_failpoint:
required: false
type: boolean
default: false


jobs:
Expand All @@ -57,6 +61,11 @@ jobs:
with:
ref: ${{ inputs.branch }}

- name: Enable FailPoint
if: inputs.enable_failpoint
run: |
make failpoint-enable

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/new_endtoend_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,33 @@ jobs:
$WESCALE_CI_IMAGE \
/vt/examples/wesql-server/init_single_node_cluster.sh

- name: Wait for MySQL ports
run: |
timeout=300 # 5 minutes timeout
ports=(3306 15306)

for port in "${ports[@]}"; do
echo "Waiting for MySQL port $port..."
start_time=$(date +%s)
while ! nc -z localhost $port; do
current_time=$(date +%s)
elapsed=$((current_time - start_time))

if [ $elapsed -ge $timeout ]; then
echo "Timeout waiting for MySQL port $port"
exit 1
fi

echo "Port $port not ready. Retrying in 5 seconds..."
sleep 5
done
echo "MySQL port $port is ready!"
done

- name: Run EndToEnd test
run: |
cd endtoend
go test ./... -v
go test ./wasm -v

- name: Print Wescale logs
run: |
Expand Down
170 changes: 170 additions & 0 deletions .github/workflows/new_endtoend_test_for_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
name: "New EndToEnd Test For Branch"

on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
- 'release-*'
tags:
- '*'
workflow_dispatch:

env:
IMAGE_NAME: wescale_ci_image
REGISTRY: ghcr.io
IMAGE_TAG: test-${{ github.sha }}
MYSQL_VERSION: 8.0.32

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-endtoend
cancel-in-progress: true

jobs:
build-image:
permissions:
contents: read
packages: write
uses: ./.github/workflows/build_image.yml
with:
branch: ${{ github.ref }}
image_name: ${{ github.repository_owner }}/wescale_ci_image
tags: test-${{ github.sha }}
platforms: linux/amd64
want_push: false
want_load: true
want_artifact: true
artifact_name: 'image.tar'
enable_failpoint: true

setup:
name: "New EndToEnd Test For Branch"
needs: build-image
runs-on: ubuntu-latest

steps:
- name: Check if workflow needs to be skipped
id: skip-workflow
run: |
skip='false'
if [[ "${{github.event.pull_request}}" == "" ]] && [[ "${{github.ref}}" != "refs/heads/main" ]] && [[ ! "${{github.ref}}" =~ ^refs/heads/release-[0-9]+\.[0-9]$ ]] && [[ ! "${{github.ref}}" =~ "refs/tags/.*" ]]; then
skip='true'
fi
echo Skip ${skip}
echo "skip-workflow=${skip}" >> $GITHUB_OUTPUT

- name: Checkout code
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: actions/checkout@v3

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Download Docker image
uses: actions/download-artifact@v3
with:
name: image.tar
path: /tmp

- name: Load Docker image
run: |
docker load < /tmp/image.tar
echo "Verifying image loaded:"
docker images

- name: Set up cluster
run: |
MYSQL_IMG="mysql/mysql-server:${{ env.MYSQL_VERSION }}"
WESCALE_CI_IMAGE="${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}"

docker network create wescale-network

# target cluster
docker run -itd --network wescale-network --name mysql-server \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=passwd \
-e MYSQL_ROOT_HOST=% \
-e MYSQL_LOG_CONSOLE=true \
$MYSQL_IMG \
--bind-address=0.0.0.0 \
--port=3306 \
--log-bin=binlog \
--gtid_mode=ON \
--enforce_gtid_consistency=ON \
--log_replica_updates=ON \
--binlog_format=ROW

docker run -itd --network wescale-network --name wescale \
-p 15306:15306 \
-w /vt/examples/wesql-server \
-e MYSQL_ROOT_USER=root \
-e MYSQL_ROOT_PASSWORD=passwd \
-e MYSQL_PORT=3306 \
-e MYSQL_HOST=mysql-server \
-e CONFIG_PATH=/vt/config/wescale/default \
$WESCALE_CI_IMAGE \
/vt/examples/wesql-server/init_single_node_cluster.sh

# source cluster
docker run -itd --network wescale-network --name mysql-server3307 \
-p 3307:3307 \
-e MYSQL_ROOT_PASSWORD=passwd \
-e MYSQL_ROOT_HOST=% \
-e MYSQL_LOG_CONSOLE=true \
$MYSQL_IMG \
--bind-address=0.0.0.0 \
--port=3307 \
--log-bin=binlog \
--gtid_mode=ON \
--enforce_gtid_consistency=ON \
--log_replica_updates=ON \
--binlog_format=ROW

docker run -itd --network wescale-network --name wescale15307 \
-p 15307:15307 \
-w /vt/examples/wesql-server \
-e MYSQL_ROOT_USER=root \
-e MYSQL_ROOT_PASSWORD=passwd \
-e MYSQL_PORT=3307 \
-e MYSQL_HOST=mysql-server3307 \
-e VTGATE_MYSQL_PORT=15307 \
-e CONFIG_PATH=/vt/config/wescale/default \
$WESCALE_CI_IMAGE \
/vt/examples/wesql-server/init_single_node_cluster.sh

- name: Wait for MySQL ports
run: |
timeout=300 # 5 minutes timeout
ports=(3306 3307 15306 15307)

for port in "${ports[@]}"; do
echo "Waiting for MySQL port $port..."
start_time=$(date +%s)
while ! nc -z localhost $port; do
current_time=$(date +%s)
elapsed=$((current_time - start_time))

if [ $elapsed -ge $timeout ]; then
echo "Timeout waiting for MySQL port $port"
exit 1
fi

echo "Port $port not ready. Retrying in 5 seconds..."
sleep 5
done
echo "MySQL port $port is ready!"
done

- name: Run EndToEnd test
run: |
cd endtoend
go test ./branch -v --source_host_to_target=wescale15307

- name: Print Wescale logs
run: |
docker logs wescale
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ examples/mysql/vtdataroot
/bin/
/vtdataroot/
venv
.run/

users.json
.scannerwork
Expand Down
12 changes: 12 additions & 0 deletions .run/vtgate.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="vtgate" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="wescale" />
<working_directory value="$PROJECT_DIR$/examples/wesql-server" />
<parameters value="--topo_implementation etcd2 --topo_global_server_address 127.0.0.1:2379 --topo_global_root /vitess/global --alsologtostderr --log_dir $PROJECT_DIR$/examples/wesql-server/vtdataroot/vtgate --log_queries_to_file $PROJECT_DIR$/examples/wesql-server/vtdataroot/vtgate/vtgate_querylog.txt --port 15001 --grpc_port 15991 --mysql_server_port 15306 --mysql_server_socket_path /tmp/mysql.sock --cell zone1 --cells_to_watch zone1 --service_map grpc-vtgateservice --pid_file $PROJECT_DIR$/examples/wesql-server/vtdataroot/vtgate/vtgate.pid --config_path $PROJECT_DIR$/config/wescale/default" />
<kind value="PACKAGE" />
<package value="vitess.io/vitess/go/cmd/vtgate" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions .run/vttablet.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="vttablet" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="wescale" />
<working_directory value="$PROJECT_DIR$/examples/wesql-server" />
<parameters value="--topo_implementation etcd2 --topo_global_server_address 127.0.0.1:2379 --topo_global_root /vitess/global --alsologtostderr --log_dir $PROJECT_DIR$/examples/wesql-server/vtdataroot/vttablet --log_queries_to_file $PROJECT_DIR$/examples/wesql-server/vtdataroot/vttablet/vttablet_0000000000_querylog.txt --tablet-path zone1-0000000000 --tablet_hostname 127.0.0.1 --init_tablet_type replica --enable_replication_reporter --backup_storage_implementation file --file_backup_storage_root $PROJECT_DIR$/examples/wesql-server/vtdataroot/vttablet/backups --port 15100 --db_port 3306 --db_host 127.0.0.1 --db_allprivs_user root --db_allprivs_password passwd --db_dba_user root --db_dba_password passwd --db_app_user root --db_app_password passwd --db_filtered_user root --db_filtered_password passwd --grpc_port 16100 --service_map grpc-queryservice,grpc-tabletmanager,grpc-updatestream --pid_file $PROJECT_DIR$/examples/wesql-server/vtdataroot/vttablet/vttablet.pid --vtctld_addr http://127.0.0.1:15000/ --disable_active_reparents --config_path $PROJECT_DIR$/config/wescale/default" />
<kind value="PACKAGE" />
<package value="vitess.io/vitess/go/cmd/vttablet" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<method v="2" />
</configuration>
</component>
Loading
Loading