-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: run fuzz tests with kafka remote wal (#4105)
* chore: add fuzz tests with kafka * chore(ci): use minio * chore: add empty line * chore(ci): refactor * chore: add empty line * fix: update config * fix: add default value for `MetaClientOptions` * fix: remove redundant `debug_assert` * chore: run fuzz tests with disk cache * chore: remove redundant minio setup * chore: cache targets * Revert "chore: run fuzz tests with disk cache" This reverts commit d817831. * chore: fix typo * chore: apply suggestions from CR * Revert "fix: remove redundant `debug_assert`" This reverts commit 09b899e.
- Loading branch information
Showing
8 changed files
with
178 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ frontend: | |
[runtime] | ||
read_rt_size = 8 | ||
write_rt_size = 8 | ||
bg_rt_size = 8 | ||
bg_rt_size = 8 |
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,34 @@ | ||
meta: | ||
config: |- | ||
[runtime] | ||
read_rt_size = 8 | ||
write_rt_size = 8 | ||
bg_rt_size = 8 | ||
[datanode] | ||
[datanode.client] | ||
timeout = "60s" | ||
datanode: | ||
config: |- | ||
[runtime] | ||
read_rt_size = 8 | ||
write_rt_size = 8 | ||
bg_rt_size = 8 | ||
frontend: | ||
config: |- | ||
[runtime] | ||
read_rt_size = 8 | ||
write_rt_size = 8 | ||
bg_rt_size = 8 | ||
[meta_client] | ||
ddl_timeout = "60s" | ||
objectStorage: | ||
s3: | ||
bucket: default | ||
region: us-west-2 | ||
root: test-root | ||
endpoint: http://minio.minio.svc.cluster.local | ||
credentials: | ||
accessKeyId: rootuser | ||
secretAccessKey: rootpass123 |
45 changes: 45 additions & 0 deletions
45
.github/actions/setup-greptimedb-cluster/with-remote-wal.yaml
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,45 @@ | ||
meta: | ||
config: |- | ||
[runtime] | ||
read_rt_size = 8 | ||
write_rt_size = 8 | ||
bg_rt_size = 8 | ||
[wal] | ||
provider = "kafka" | ||
broker_endpoints = ["kafka.kafka-cluster.svc.cluster.local:9092"] | ||
num_topics = 3 | ||
[datanode] | ||
[datanode.client] | ||
timeout = "60s" | ||
datanode: | ||
config: |- | ||
[runtime] | ||
read_rt_size = 8 | ||
write_rt_size = 8 | ||
bg_rt_size = 8 | ||
[wal] | ||
provider = "kafka" | ||
broker_endpoints = ["kafka.kafka-cluster.svc.cluster.local:9092"] | ||
linger = "2ms" | ||
frontend: | ||
config: |- | ||
[runtime] | ||
read_rt_size = 8 | ||
write_rt_size = 8 | ||
bg_rt_size = 8 | ||
[meta_client] | ||
ddl_timeout = "60s" | ||
objectStorage: | ||
s3: | ||
bucket: default | ||
region: us-west-2 | ||
root: test-root | ||
endpoint: http://minio.minio.svc.cluster.local | ||
credentials: | ||
accessKeyId: rootuser | ||
secretAccessKey: rootpass123 |
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,24 @@ | ||
name: Setup Kafka cluster | ||
description: Deploy Kafka cluster on Kubernetes | ||
inputs: | ||
controller-replicas: | ||
default: 3 | ||
description: "Kafka controller replicas" | ||
namespace: | ||
default: "kafka-cluster" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install Kafka cluster | ||
shell: bash | ||
run: | | ||
helm upgrade \ | ||
--install kafka oci://registry-1.docker.io/bitnamicharts/kafka \ | ||
--set controller.replicaCount=${{ inputs.controller-replicas }} \ | ||
--set controller.resources.requests.cpu=50m \ | ||
--set controller.resources.requests.memory=128Mi \ | ||
--set listeners.controller.protocol=PLAINTEXT \ | ||
--set listeners.client.protocol=PLAINTEXT \ | ||
--create-namespace \ | ||
-n ${{ inputs.namespace }} |
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,24 @@ | ||
name: Setup Minio cluster | ||
description: Deploy Minio cluster on Kubernetes | ||
inputs: | ||
replicas: | ||
default: 1 | ||
description: "replicas" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install Etcd cluster | ||
shell: bash | ||
run: | | ||
helm repo add minio https://charts.min.io/ | ||
helm upgrade --install minio \ | ||
--set resources.requests.memory=128Mi \ | ||
--set replicas=${{ inputs.replicas }} \ | ||
--set mode=standalone \ | ||
--set rootUser=rootuser,rootPassword=rootpass123 \ | ||
--set buckets[0].name=default \ | ||
--set service.port=80,service.targetPort=9000 \ | ||
minio/minio \ | ||
--create-namespace \ | ||
-n minio |
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