-
Notifications
You must be signed in to change notification settings - Fork 58
CASSSIDECAR-423 Fix circle CI pipelines OOM #334
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -119,16 +119,16 @@ jobs: | |
| docker: | ||
| - image: cimg/openjdk:11.0 | ||
| environment: | ||
| INTEGRATION_MAX_PARALLEL_FORKS: 3 | ||
| INTEGRATION_MAX_HEAP_SIZE: "2500M" | ||
| INTEGRATION_MAX_PARALLEL_FORKS: 2 | ||
| INTEGRATION_MAX_HEAP_SIZE: "2000M" | ||
| resource_class: large | ||
| steps: | ||
| - install_common | ||
| - checkout | ||
| - attach_workspace: | ||
| at: dtest-jars | ||
| - run: ./scripts/install-shaded-dtest-jar-local.sh | ||
| - run: ./gradlew --no-daemon -PdtestVersion=4.0.16 -Dcassandra.sidecar.versions_to_test="4.0" checkstyleIntegrationTest integrationTestLightWeight --stacktrace | ||
| - run: ./gradlew --no-daemon --max-workers=2 -PdtestVersion=4.0.16 -Dcassandra.sidecar.versions_to_test="4.0" checkstyleIntegrationTest integrationTestLightWeight --stacktrace | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @skoppu22 for the fix, could you also add a comment, why this setting is important, will be good for referring back. |
||
|
|
||
| - store_artifacts: | ||
| path: build/reports | ||
|
|
@@ -174,16 +174,16 @@ jobs: | |
| docker: | ||
| - image: cimg/openjdk:11.0 | ||
| environment: | ||
| INTEGRATION_MAX_PARALLEL_FORKS: 3 | ||
| INTEGRATION_MAX_HEAP_SIZE: "2500M" | ||
| INTEGRATION_MAX_PARALLEL_FORKS: 2 | ||
| INTEGRATION_MAX_HEAP_SIZE: "2000M" | ||
| resource_class: large | ||
| steps: | ||
| - install_common | ||
| - checkout | ||
| - attach_workspace: | ||
| at: dtest-jars | ||
| - run: ./scripts/install-shaded-dtest-jar-local.sh | ||
| - run: ./gradlew --no-daemon -PdtestVersion=5.0.3 -Dcassandra.sidecar.versions_to_test="5.0" checkstyleIntegrationTest integrationTestLightWeight --stacktrace | ||
| - run: ./gradlew --no-daemon --max-workers=2 -PdtestVersion=5.0.3 -Dcassandra.sidecar.versions_to_test="5.0" checkstyleIntegrationTest integrationTestLightWeight --stacktrace | ||
|
|
||
| - store_artifacts: | ||
| path: build/reports | ||
|
|
@@ -229,16 +229,16 @@ jobs: | |
| docker: | ||
| - image: cimg/openjdk:11.0 | ||
| environment: | ||
| INTEGRATION_MAX_PARALLEL_FORKS: 3 | ||
| INTEGRATION_MAX_HEAP_SIZE: "2500M" | ||
| INTEGRATION_MAX_PARALLEL_FORKS: 2 | ||
| INTEGRATION_MAX_HEAP_SIZE: "2000M" | ||
| resource_class: large | ||
| steps: | ||
| - install_common | ||
| - checkout | ||
| - attach_workspace: | ||
| at: dtest-jars | ||
| - run: ./scripts/install-shaded-dtest-jar-local.sh | ||
| - run: ./gradlew --no-daemon -PdtestVersion=5.1 -Dcassandra.sidecar.versions_to_test="5.1" checkstyleIntegrationTest integrationTestLightWeight --stacktrace | ||
| - run: ./gradlew --no-daemon --max-workers=2 -PdtestVersion=5.1 -Dcassandra.sidecar.versions_to_test="5.1" checkstyleIntegrationTest integrationTestLightWeight --stacktrace | ||
|
|
||
| - store_artifacts: | ||
| path: build/reports | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,7 @@ | |
|
|
||
| import com.google.common.util.concurrent.Uninterruptibles; | ||
| import org.junit.jupiter.api.Assertions; | ||
| import org.junit.jupiter.api.Tag; | ||
|
|
||
| import com.datastax.driver.core.DriverUtils; | ||
| import com.datastax.driver.core.Host; | ||
|
|
@@ -42,6 +43,7 @@ | |
| /** | ||
| * A test for the SidecarLoadBalancingPolicy | ||
| */ | ||
| @Tag("heavy") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How did you find out that only these tests have to be marked as heavy to resolve CI issues
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When INTEGRATION_MAX_PARALLEL_FORKS=2, multiple 5-10 node tests could run |
||
| public class SidecarLoadBalancingPolicyTest extends IntegrationTestBase | ||
| { | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious how is reducing INTEGRATION_MAX_HEAP_SIZE from "2500M" to "2000M" fixes the CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Light weight tests don't need 2500M heap, they can run just fine with lower heap as well. The main fix is --max-workers and reducing the parallelism. Reduced max heap value to ensure we don't go beyond calculations and hit OOM again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, setting
INTEGRATION_MAX_PARALLEL_FORKS: 2makes sense since we are setting--max-workers=2