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

Cu 86bygzkm5 images placement for interoperability proxy identity #289

Conversation

brett-onions
Copy link
Contributor

@brett-onions brett-onions commented Apr 26, 2024

Summary by CodeRabbit

  • New Features

    • Introduced environment variables for more dynamic configuration of OpenHIM services.
    • Added new environment variables for images, placements, instances, and replicas for various components.
  • Enhancements

    • Updated image references for OpenHIM Console and MongoDB.
    • Adjusted CPU and memory limits for better performance.
    • Improved Kafka configuration.
  • Removals

    • Removed outdated environment variable related to OpenHIM Console version.

…ta-file-for-interoperability-layer-openhim' into CU-86bygzkm5_Images-Placement-for-Interoperability-proxy-identity
…ta-file-for-identity-access-manager-keycloak' into CU-86bygzkm5_Images-Placement-for-Interoperability-proxy-identity
…ta-file-for-openhim-mapping-mediator' into CU-86bygzkm5_Images-Placement-for-Interoperability-proxy-identity
…ta-file-for-job-scheduler-ofelia' into CU-86bygzkm5_Images-Placement-for-Interoperability-proxy-identity
@rcrichton
Copy link
Member

Copy link
Collaborator

@drizzentic drizzentic left a comment

Choose a reason for hiding this comment

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

LGTM! Resolve the merge conflicts

Copy link
Collaborator

@BMartinos BMartinos left a comment

Choose a reason for hiding this comment

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

@brett-onions overall looks fine to me, just two comments around the existing console env for the image/version to use

@drizzentic drizzentic marked this pull request as ready for review May 8, 2024 11:36
@bradsawadye bradsawadye marked this pull request as draft May 9, 2024 13:08
@bradsawadye bradsawadye marked this pull request as ready for review May 9, 2024 13:08
Copy link
Contributor

coderabbitai bot commented May 14, 2024

Walkthrough

The recent changes across the configuration files bring enhanced flexibility and configurability to the OpenHIM services. By transitioning from static values to environment variables, the deployment process gains dynamism. Moreover, with updated image references and refined service replica settings, resource management and scalability are significantly improved.

Changes

File Path Change Summary
interoperability-layer-openhim/docker-compose.yml Replaced static values with environment variables for max_replicas_per_node, updated image references, and adjusted service replicas.
interoperability-layer-openhim/package-metadata.json Introduced new environment variables for images, placements, instances, and replicas; modified CPU/memory limits; updated Kafka configuration; removed an outdated environment variable.

In the code where changes flow,
Environment variables now in tow,
Images updated, replicas set,
Dynamic setups, the best bet.
🐇✨


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits Files that changed from the base of the PR and between 2b2aab1 and e422039.
Files selected for processing (13)
  • identity-access-manager-keycloak/docker-compose.yml (2 hunks)
  • identity-access-manager-keycloak/package-metadata.json (1 hunks)
  • interoperability-layer-openhim/docker-compose-mongo.cluster.yml (2 hunks)
  • interoperability-layer-openhim/docker-compose-mongo.yml (1 hunks)
  • interoperability-layer-openhim/docker-compose.await-helper-mongo.yml (1 hunks)
  • interoperability-layer-openhim/docker-compose.await-helper.yml (1 hunks)
  • interoperability-layer-openhim/docker-compose.yml (3 hunks)
  • interoperability-layer-openhim/package-metadata.json (2 hunks)
  • job-scheduler-ofelia/docker-compose.yml (2 hunks)
  • job-scheduler-ofelia/package-metadata.json (1 hunks)
  • openhim-mapping-mediator/docker-compose.yml (1 hunks)
  • openhim-mapping-mediator/package-metadata.json (1 hunks)
  • test/cucumber/features/single-mode/recipe.feature (1 hunks)
Files skipped from review due to trivial changes (7)
  • interoperability-layer-openhim/docker-compose-mongo.yml
  • interoperability-layer-openhim/docker-compose.await-helper-mongo.yml
  • interoperability-layer-openhim/docker-compose.await-helper.yml
  • job-scheduler-ofelia/docker-compose.yml
  • job-scheduler-ofelia/package-metadata.json
  • openhim-mapping-mediator/docker-compose.yml
  • test/cucumber/features/single-mode/recipe.feature
Additional comments not posted (10)
openhim-mapping-mediator/package-metadata.json (1)

9-9: Environment variable addition looks good.

interoperability-layer-openhim/docker-compose-mongo.cluster.yml (3)

5-9: Environment variable usage for placement constraints looks good.


12-20: Environment variable usage for image and placement constraints looks good.


35-43: Environment variable usage for image and placement constraints looks good.

interoperability-layer-openhim/package-metadata.json (1)

10-20: Environment variable additions and modifications look good.

identity-access-manager-keycloak/package-metadata.json (1)

9-16: Environment variable additions look good.

identity-access-manager-keycloak/docker-compose.yml (2)

5-11: Environment variable usage for image and command arguments looks good.


47-47: Environment variable usage for placement constraints looks good.

interoperability-layer-openhim/docker-compose.yml (2)

28-28: Environment variable usage for placement constraints looks good.


Line range hint 42-59: Environment variable usage for image and placement constraints looks good.

…y-identity' of github.com:jembi/platform into CU-86bygzkm5_Images-Placement-for-Interoperability-proxy-identity
@bradsawadye bradsawadye marked this pull request as draft May 15, 2024 11:41
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Out of diff range and nitpick comments (3)
.env.cluster (3)

91-91: Ensure consistency in naming conventions.

Consider using a consistent naming convention for instance variables. For example, JEMPI_WEB_INSTANCES could be renamed to JEMPI_WEB_INSTANCE_COUNT to match the pattern used in other variables.


95-95: Ensure consistency in naming conventions.

Consider using a consistent naming convention for instance variables. For example, JEMPI_REPMGR_PARTNER_NODES could be renamed to JEMPI_REPMGR_PARTNER_NODE_LIST to match the pattern used in other variables.


102-102: Ensure consistency in naming conventions.

Consider using a consistent naming convention for instance variables. For example, JEMPI_API_INSTANCES could be renamed to JEMPI_API_INSTANCE_COUNT to match the pattern used in other variables.

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between e422039 and cf9f7a7.
Files selected for processing (2)
  • .env.cluster (1 hunks)
  • client-registry-jempi/swarm.sh (1 hunks)
Files skipped from review due to trivial changes (1)
  • client-registry-jempi/swarm.sh

@bradsawadye bradsawadye marked this pull request as ready for review May 15, 2024 11:42
@bradsawadye bradsawadye marked this pull request as draft May 15, 2024 11:46
@bradsawadye bradsawadye marked this pull request as ready for review May 15, 2024 11:47
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits Files that changed from the base of the PR and between cf9f7a7 and 2c16701.
Files selected for processing (2)
  • interoperability-layer-openhim/docker-compose.yml (3 hunks)
  • interoperability-layer-openhim/package-metadata.json (2 hunks)
Files skipped from review as they are similar to previous changes (2)
  • interoperability-layer-openhim/docker-compose.yml
  • interoperability-layer-openhim/package-metadata.json

…y-identity' of github.com:jembi/platform into CU-86bygzkm5_Images-Placement-for-Interoperability-proxy-identity
@bradsawadye bradsawadye marked this pull request as draft May 15, 2024 11:53
@bradsawadye bradsawadye marked this pull request as ready for review May 15, 2024 11:53
@bradsawadye bradsawadye marked this pull request as draft May 15, 2024 12:40
@bradsawadye bradsawadye marked this pull request as ready for review May 15, 2024 12:40
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 2c16701 and c6539fb.
Files selected for processing (1)
  • test/cucumber/features/cluster-mode/jempi.cluster.feature (3 hunks)
Additional comments not posted (1)
test/cucumber/features/cluster-mode/jempi.cluster.feature (1)

42-42: Ensure consistency in replica counts.

Please verify that the replica counts for all services are correct and consistent with the intended configuration. For example, openhim-core and openhim-console are set to 3 replicas, while others are set to 1. Ensure this matches the desired setup.

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@bradsawadye bradsawadye marked this pull request as draft May 15, 2024 14:15
@bradsawadye bradsawadye marked this pull request as ready for review May 15, 2024 14:15
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits Files that changed from the base of the PR and between c6539fb and 98d6e13.
Files selected for processing (1)
  • test/cucumber/features/cluster-mode/jempi.cluster.feature (3 hunks)
Files skipped from review as they are similar to previous changes (1)
  • test/cucumber/features/cluster-mode/jempi.cluster.feature

@bradsawadye bradsawadye merged commit 67e1a49 into main May 15, 2024
8 checks passed
@bradsawadye bradsawadye deleted the CU-86bygzkm5_Images-Placement-for-Interoperability-proxy-identity branch May 15, 2024 15:28
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.

5 participants