-
Notifications
You must be signed in to change notification settings - Fork 18
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
Cu 86bz3yh3v linker cluster mode #268
Conversation
Task linked: CU-86bz3yh3v Linker Cluster Mode |
Warning Review failedThe pull request is closed. WalkthroughThis update mainly focuses on enhancing configuration flexibility and logging across various components of the JeMPI applications. Key improvements include utilizing Soundex for Kafka partition keys, adding environment variables for scaling, modifying the number of Kafka partitions, updating Docker stack configurations, and enhancing logging for better traceability. Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (20)
- JeMPI_Apps/JeMPI_AsyncReceiver/src/main/java/org/jembi/jempi/async_receiver/Main.java (3 hunks)
- JeMPI_Apps/JeMPI_Bootstrapper/src/main/resources/data/kafka/kafkaBootStrapConfig.json (1 hunks)
- JeMPI_Apps/JeMPI_Linker/src/main/java/org/jembi/jempi/linker/SPInteractions.java (1 hunks)
- JeMPI_Apps/JeMPI_Linker/src/main/java/org/jembi/jempi/linker/SPMU.java (3 hunks)
- devops/linux/docker/conf/env/create-env-linux-high-1.sh (1 hunks)
- devops/linux/docker/conf/env/create-env-linux-low-1.sh (1 hunks)
- devops/linux/docker/conf/env/create-env-wsl-low-1.sh (1 hunks)
- devops/linux/docker/conf/stack/docker-stack-high-1.yml (1 hunks)
- devops/linux/docker/conf/stack/docker-stack-low-1.yml (1 hunks)
- devops/linux/docker/data-config/config-reference-link-dp-minimal.json (1 hunks)
- devops/linux/docker/data-config/config.json (1 hunks)
- devops/linux/docker/helper/topics/topics-config.sh (1 hunks)
- devops/windows/base-docker-linux/conf/env/conf-env-high-1-pc.template (1 hunks)
- devops/windows/base-docker-linux/conf/env/conf-env-low-1-pc.template (1 hunks)
- devops/windows/base-docker-linux/conf/env/create-env-linux-high-1.sh (1 hunks)
- devops/windows/base-docker-linux/conf/env/create-env-linux-low-1.sh (1 hunks)
- devops/windows/base-docker-wsl/conf/env/conf-env-high-1-pc.template (1 hunks)
- devops/windows/base-docker-wsl/conf/env/conf-env-low-1-pc.template (1 hunks)
- devops/windows/base-docker-wsl/conf/env/create-env-linux-high-1.sh (1 hunks)
- devops/windows/base-docker-wsl/conf/env/create-env-linux-low-1.sh (1 hunks)
Files skipped from review due to trivial changes (13)
- JeMPI_Apps/JeMPI_Bootstrapper/src/main/resources/data/kafka/kafkaBootStrapConfig.json
- devops/linux/docker/conf/env/create-env-linux-high-1.sh
- devops/linux/docker/conf/env/create-env-linux-low-1.sh
- devops/linux/docker/conf/env/create-env-wsl-low-1.sh
- devops/linux/docker/data-config/config.json
- devops/windows/base-docker-linux/conf/env/conf-env-high-1-pc.template
- devops/windows/base-docker-linux/conf/env/conf-env-low-1-pc.template
- devops/windows/base-docker-linux/conf/env/create-env-linux-high-1.sh
- devops/windows/base-docker-linux/conf/env/create-env-linux-low-1.sh
- devops/windows/base-docker-wsl/conf/env/conf-env-high-1-pc.template
- devops/windows/base-docker-wsl/conf/env/conf-env-low-1-pc.template
- devops/windows/base-docker-wsl/conf/env/create-env-linux-high-1.sh
- devops/windows/base-docker-wsl/conf/env/create-env-linux-low-1.sh
Additional comments not posted (13)
devops/linux/docker/helper/topics/topics-config.sh (1)
31-31
: LGTM!The dynamic assignment of partitions using the
SCALE_LINKER
environment variable is a good practice for configurability.JeMPI_Apps/JeMPI_Linker/src/main/java/org/jembi/jempi/linker/SPMU.java (3)
61-64
: LGTM!The added debug messages and error handling improve the maintainability and robustness of the function.
68-68
: LGTM!The added error handling ensures that the function gracefully handles exceptions.
98-98
: LGTM!Appending a UUID to the
APPLICATION_ID_CONFIG
ensures that each instance of the application has a unique ID, which is important for distributed systems.JeMPI_Apps/JeMPI_Linker/src/main/java/org/jembi/jempi/linker/SPInteractions.java (1)
81-82
: Verify the necessity of commenting outthis.closeInteractionStream();
.Commenting out
this.closeInteractionStream();
might cause resource leaks. Ensure that it's necessary to keep it commented out.devops/linux/docker/data-config/config-reference-link-dp-minimal.json (4)
2-29
: LGTM!The auxiliary interaction fields are well-defined with their respective types and sources.
31-56
: LGTM!The auxiliary golden record fields are well-defined with their respective types and sources.
58-76
: LGTM!The additional nodes are well-defined with their respective fields and sources.
79-222
: LGTM!The demographic fields and linking rules are well-defined with their respective types, sources, and metadata.
JeMPI_Apps/JeMPI_AsyncReceiver/src/main/java/org/jembi/jempi/async_receiver/Main.java (2)
17-17
: Import statement is correct.The
Soundex
import fromorg.apache.commons.codec.language
is correctly added to support the new functionality.
Line range hint
158-192
: Usage ofSoundex
for partition keys is appropriate.The
Soundex
class is used correctly to generate partition keys based on given and family names. The logic and logging statements are sound.devops/linux/docker/conf/stack/docker-stack-low-1.yml (1)
415-415
: Enhanced configurability for linker replicas.The change to use
${SCALE_LINKER}
for thereplicas
value of thelinker
service enhances configurability.devops/linux/docker/conf/stack/docker-stack-high-1.yml (1)
607-607
: Enhanced configurability for linker replicas.The change to use
${SCALE_LINKER}
for thereplicas
value of thelinker
service enhances configurability.
Summary by CodeRabbit
New Features
Improvements
SCALE_LINKER
variable.Bug Fixes