-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(development): Better developer experience with Goland and Mak…
…efile 1. Create `Debug` target for `Docker`, which allows remote debugging 2. Allow running `gemini` as a `Docker` container from `Makefile`. This replicates the production environment inside SCT 3. Added IDEA run configurations for `gemini` and `gemini-tests` to run inside `Docker` container Signed-off-by: Dusan Malusev <[email protected]>
- Loading branch information
1 parent
3f163b9
commit 5e71bed
Showing
10 changed files
with
232 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Cassandra Oracle" type="docker-deploy" factoryName="docker-compose.yml" server-name="Docker"> | ||
<deployment type="docker-compose.yml"> | ||
<settings> | ||
<option name="envFilePath" value="" /> | ||
<option name="removeVolumesOnComposeDown" value="true" /> | ||
<option name="sourceFilePath" value="docker/docker-compose-cassandra.yml" /> | ||
<option name="upTimeout" value="60" /> | ||
</settings> | ||
</deployment> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,32 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Debug Gemini Docker" type="docker-deploy" factoryName="dockerfile" server-name="Docker"> | ||
<deployment type="dockerfile"> | ||
<settings> | ||
<option name="imageTag" value="scylladb/gemini:dev" /> | ||
<option name="attachToContainerNeeded" value="true" /> | ||
<option name="buildCliOptions" value="--compress --target debug --platform linux/amd64/v3" /> | ||
<option name="command" value="--fail-fast --level=info --non-interactive --consistency=LOCAL_QUORUM --test-host-selection-policy=token-aware --oracle-host-selection-policy=token-aware --mode=mixed --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'}" --concurrency=16 --dataset-size=large --seed=93 --schema-seed=93 --cql-features=normal --duration=15m --warmup=1m --profiling-port=6060 --drop-schema=true --test-cluster=gemini-test --oracle-cluster=gemini-oracle --outfile=stdout --verbose=true --test-statement-log-file=/test.log --oracle-statement-log-file=/oracle.log" /> | ||
<option name="containerName" value="gemini" /> | ||
<option name="portBindings"> | ||
<list> | ||
<DockerPortBindingImpl> | ||
<option name="containerPort" value="6060" /> | ||
<option name="hostPort" value="6060" /> | ||
</DockerPortBindingImpl> | ||
<DockerPortBindingImpl> | ||
<option name="containerPort" value="2112" /> | ||
<option name="hostPort" value="2112" /> | ||
</DockerPortBindingImpl> | ||
<DockerPortBindingImpl> | ||
<option name="containerPort" value="2345" /> | ||
<option name="hostPort" value="2345" /> | ||
</DockerPortBindingImpl> | ||
</list> | ||
</option> | ||
<option name="commandLineOptions" value="-m 4G -w / --network gemini" /> | ||
<option name="sourceFilePath" value="Dockerfile" /> | ||
</settings> | ||
</deployment> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,28 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Run Gemini Docker" type="docker-deploy" factoryName="dockerfile" server-name="Docker"> | ||
<deployment type="dockerfile"> | ||
<settings> | ||
<option name="imageTag" value="scylladb/gemini:dev" /> | ||
<option name="attachToContainerNeeded" value="true" /> | ||
<option name="buildCliOptions" value="--compress --target production --platform linux/amd64/v3" /> | ||
<option name="command" value="--fail-fast --level=info --non-interactive --consistency=LOCAL_QUORUM --test-host-selection-policy=token-aware --oracle-host-selection-policy=token-aware --mode=mixed --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'}" --concurrency=16 --dataset-size=large --seed=93 --schema-seed=93 --cql-features=normal --duration=15m --warmup=1m --profiling-port=6060 --drop-schema=true --test-cluster=gemini-test --oracle-cluster=gemini-oracle --outfile=stdout --verbose=true --test-statement-log-file=/test.log --oracle-statement-log-file=/oracle.log" /> | ||
<option name="containerName" value="gemini" /> | ||
<option name="portBindings"> | ||
<list> | ||
<DockerPortBindingImpl> | ||
<option name="containerPort" value="6060" /> | ||
<option name="hostPort" value="6060" /> | ||
</DockerPortBindingImpl> | ||
<DockerPortBindingImpl> | ||
<option name="containerPort" value="2112" /> | ||
<option name="hostPort" value="2112" /> | ||
</DockerPortBindingImpl> | ||
</list> | ||
</option> | ||
<option name="commandLineOptions" value="-m 4G -w / --network gemini" /> | ||
<option name="sourceFilePath" value="Dockerfile" /> | ||
</settings> | ||
</deployment> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Run Gemini Mixed" type="GoApplicationRunConfiguration" factoryName="Go Application"> | ||
<module name="gemini" /> | ||
<working_directory value="$PROJECT_DIR$" /> | ||
<go_parameters value="-gcflags "all=-N -l"" /> | ||
<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 "{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" --oracle-replication-strategy "{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" --max-mutation-retries 5 --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$" /> | ||
<filePath value="$PROJECT_DIR$/cmd/gemini/main.go" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Run Gemini Read" type="GoApplicationRunConfiguration" factoryName="Go Application"> | ||
<module name="gemini" /> | ||
<working_directory value="$PROJECT_DIR$" /> | ||
<go_parameters value="-gcflags "all=-N -l"" /> | ||
<parameters value="--mode read --seed=100 --schema-seed=100 --dataset-size=small --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 "{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" --oracle-replication-strategy "{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" --max-mutation-retries 5 --max-mutation-retries-backoff 1000ms --concurrency 1 --profiling-port 6060" /> | ||
<kind value="PACKAGE" /> | ||
<package value="github.com/scylladb/gemini/cmd/gemini" /> | ||
<directory value="$PROJECT_DIR$" /> | ||
<filePath value="$PROJECT_DIR$/cmd/gemini/main.go" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Run Gemini Write" type="GoApplicationRunConfiguration" factoryName="Go Application"> | ||
<module name="gemini" /> | ||
<working_directory value="$PROJECT_DIR$" /> | ||
<go_parameters value="-gcflags "all=-N -l"" /> | ||
<parameters value="--mode write --seed=100 --schema-seed=100 --dataset-size=small --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 "{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" --oracle-replication-strategy "{'class': 'NetworkTopologyStrategy', 'replication_factor': '1'}" --max-mutation-retries 5 --max-mutation-retries-backoff 1000ms --concurrency 1 --profiling-port 6060" /> | ||
<kind value="PACKAGE" /> | ||
<package value="github.com/scylladb/gemini/cmd/gemini" /> | ||
<directory value="$PROJECT_DIR$" /> | ||
<filePath value="$PROJECT_DIR$/cmd/gemini/main.go" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Scylla Oracle" type="docker-deploy" factoryName="docker-compose.yml" server-name="Docker"> | ||
<deployment type="docker-compose.yml"> | ||
<settings> | ||
<option name="envFilePath" value="" /> | ||
<option name="removeVolumesOnComposeDown" value="true" /> | ||
<option name="sourceFilePath" value="docker/docker-compose-scylla.yml" /> | ||
<option name="upTimeout" value="60" /> | ||
</settings> | ||
</deployment> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,14 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Tests" type="GoTestRunConfiguration" factoryName="Go Test"> | ||
<module name="gemini" /> | ||
<working_directory value="$PROJECT_DIR$" /> | ||
<go_parameters value="-timeout 5m -race" /> | ||
<kind value="DIRECTORY" /> | ||
<package value="github.com/scylladb/gemini" /> | ||
<directory value="$PROJECT_DIR$" /> | ||
<filePath value="$PROJECT_DIR$" /> | ||
<framework value="gotest" /> | ||
<pattern value="./..." /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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.