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

Memory update #3

Merged
merged 4 commits into from
Feb 4, 2025
Merged

Memory update #3

merged 4 commits into from
Feb 4, 2025

Conversation

John-Wiens
Copy link
Contributor

No description provided.

Copy link
Contributor

@Michael7371 Michael7371 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments/questions

Dockerfile Outdated
"-XX:MaxMetaspaceFreeRatio=80", \
"-XX:+ExplicitGCInvokesConcurrent", \
"-XX:InitialRAMPercentage=5.0", \
# "-XX:MaxRAMPercentage=50.0", \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the # "-XX:MaxRAMPercentage=50.0", \ still be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter has been removed. in favor of using the allocated memory limits instead of percentage based limits.

@@ -25,6 +28,12 @@ services:
ENABLE_ODE_RAW_ENCODED_TIM_DEDUPLICATION: ${ENABLE_ODE_RAW_ENCODED_TIM_DEDUPLICATION}
ENABLE_PROCESSED_SPAT_DEDUPLICATION: ${ENABLE_PROCESSED_SPAT_DEDUPLICATION}
ENABLE_ODE_BSM_DEDUPLICATION: ${ENABLE_ODE_BSM_DEDUPLICATION}
DEDUPLICATOR_ROCKSDB_TOTAL_OFF_HEAP_MEMORY: ${DEDUPLICATOR_ROCKSDB_TOTAL_OFF_HEAP_MEMORY:?error}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to error out if it isn't set? Seems like defaults are provided in the source code.

"-Dlogback.configurationFile=/home/logback.xml", \
"-Xmx1024M", \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this make it, so this image's JVM won't be able to use more than 1Gb of memory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This sets the containers memory limit to 1 GB. Currently 1 deduplicator is able to handle about 27 intersections for CDOT. Any more intersections and we should probably move to scaling horizontally instead of vertically.

@John-Wiens John-Wiens merged commit e23aae8 into develop Feb 4, 2025
2 checks passed
@John-Wiens John-Wiens deleted the memory-update branch February 4, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants