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

refactor(store): refactor creation of CQL store (ScyllaDB Driver) #446

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .run/Run Gemini Mixed.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<module name="gemini" />
<working_directory value="$PROJECT_DIR$" />
<go_parameters value="-gcflags &quot;all=-N -l&quot;" />
<parameters value="--mode mixed --seed=150 --schema-seed=150 --dataset-size=large --cql-features normal --warmup 0 --duration 2m --drop-schema true --fail-fast --level info --test-host-selection-policy token-aware --oracle-host-selection-policy token-aware --test-cluster=192.168.100.2 --oracle-cluster=192.168.100.3 --non-interactive --request-timeout 180s --connect-timeout 120s --use-server-timestamps false --async-objects-stabilization-attempts 10 --async-objects-stabilization-backoff 100ms --replication-strategy &quot;{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}&quot; --oracle-replication-strategy &quot;{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}&quot; --max-mutation-retries 5 --max-mutation-retries-backoff 1000ms --concurrency 16 --profiling-port 6060" />
<parameters value="--mode mixed --seed=150 --schema-seed=150 --dataset-size=large --cql-features normal --warmup 0 --duration 2m --drop-schema true --fail-fast --level info --test-host-selection-policy token-aware --oracle-host-selection-policy token-aware --test-cluster=192.168.100.2 --oracle-cluster=192.168.100.3 --request-timeout 180s --connect-timeout 120s --use-server-timestamps=true --async-objects-stabilization-attempts 10 --async-objects-stabilization-backoff 100ms --replication-strategy &quot;{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}&quot; --oracle-replication-strategy &quot;{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}&quot; --test-max-mutation-retries 5 --test-max-mutation-retries-backoff 1000ms --oracle-max-mutation-retries 5 --oracle-max-mutation-retries-backoff 1000ms --concurrency 16 --profiling-port 6060" />
<kind value="PACKAGE" />
<package value="github.com/scylladb/gemini/cmd/gemini" />
<directory value="$PROJECT_DIR$" />
Expand Down
45 changes: 27 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,39 @@ GEMINI_TEST_CLUSTER ?= $(shell docker inspect --format='{{ .NetworkSettings.Netw
GEMINI_ORACLE_CLUSTER ?= $(shell docker inspect --format='{{ .NetworkSettings.Networks.gemini.IPAddress }}' gemini-oracle)
GEMINI_DOCKER_NETWORK ?= gemini
GEMINI_FLAGS ?= --fail-fast \
--level=info \
--non-interactive \
--consistency=LOCAL_QUORUM \
--test-host-selection-policy=token-aware \
--oracle-host-selection-policy=token-aware \
--mode=$(MODE) \
--non-interactive \
--request-timeout=5s \
--connect-timeout=15s \
--use-server-timestamps=false \
--async-objects-stabilization-attempts=10 \
--max-mutation-retries=10 \
--replication-strategy="{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" \
--oracle-replication-strategy="{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" \
--async-objects-stabilization-backoff=1s \
--concurrency=$(CONCURRENCY) \
--dataset-size=$(DATASET_SIZE) \
--cql-features=$(CQL_FEATURES) \
--dataset-size=$(DATASET_SIZE) \
--mode=$(MODE) \
--duration=$(DURATION) \
--seed=$(SEED) \
--schema-seed=$(SEED) \
--cql-features=$(CQL_FEATURES) \
--duration=$(DURATION) \
--warmup=$(WARMUP) \
--drop-schema=true \
--level=info \
--materialized-views=false \
--async-objects-stabilization-attempts=10 \
--profiling-port=6060 \
--drop-schema=true

--token-range-slices=10000 \
--partition-key-buffer-reuse-size=100 \
--oracle-connect-timeout=15s \
--oracle-request-timeout=5s \
--oracle-consistency=LOCAL_QUORUM \
--oracle-max-mutation-retries=10 \
--oracle-max-mutation-retries-backoff=1s \
--oracle-use-server-timestamps=false \
--oracle-replication-strategy="{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" \
--oracle-host-selection-policy=token-aware \
--test-consistency=LOCAL_QUORUM \
--test-request-timeout=5s \
--test-connect-timeout=15s \
--test-use-server-timestamps=false \
--test-host-selection-policy=token-aware \
--test-replication-strategy="{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" \
--test-max-mutation-retries=10 \
--test-dc=datacenter1

ifndef GOBIN
export GOBIN := $(MAKEFILE_PATH)/bin
Expand Down
2 changes: 2 additions & 0 deletions cmd/gemini/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
"fmt"
"os"
"runtime/debug"

_ "github.com/scylladb/gemini/pkg/metrics"
)

//go:generate sh -c "git describe --tags --abbrev=0 | tr -d '\n' > ./Version"
Expand Down
Loading
Loading