-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
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.
Just a few comments/questions
Dockerfile
Outdated
"-XX:MaxMetaspaceFreeRatio=80", \ | ||
"-XX:+ExplicitGCInvokesConcurrent", \ | ||
"-XX:InitialRAMPercentage=5.0", \ | ||
# "-XX:MaxRAMPercentage=50.0", \ |
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.
should the # "-XX:MaxRAMPercentage=50.0", \
still be here?
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.
This parameter has been removed. in favor of using the allocated memory limits instead of percentage based limits.
docker-compose.yml
Outdated
@@ -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} |
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.
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", \ |
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.
Will this make it, so this image's JVM won't be able to use more than 1Gb of memory?
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.
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.
No description provided.