Skip to content

Feature/active active autoscaling #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

Merged
merged 3 commits into from
Apr 24, 2025

Conversation

slorello89
Copy link
Contributor

Making some adaptions to allow autoscaling to work with Active-Active databases

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 15 out of 22 changed files in this pull request and generated 1 comment.

Files not reviewed (7)
  • active-active-terraform/.terraform.lock.hcl: Language not supported
  • active-active-terraform/terraform.tfvars.example: Language not supported
  • active-active-terraform/variables.tf: Language not supported
  • redeploy-active-active.sh: Language not supported
  • standalone-terraform/.terraform.lock.hcl: Language not supported
  • standalone-terraform/terraform.tfvars.example: Language not supported
  • standalone-terraform/variables.tf: Language not supported
Comments suppressed due to low confidence (2)

autoscaler/redis-cloud-autoscaler/src/main/java/com/redis/autoscaler/poller/PrometheusExtrasPoller.java:55

  • [nitpick] Consider checking not only if db.getCrdbDatabases() is null but also if the returned array is empty to avoid potential IndexOutOfBounds exceptions when accessing its first element.
if(db.getCrdbDatabases() == null){

autoscaler/redis-cloud-autoscaler/src/main/java/com/redis/autoscaler/metrics/PrometheusMetrics.java:28

  • [nitpick] Since 'configuredThroughput.put(dbId, new AtomicLong(throughput));' is called before this null check, consider moving the null check before updating the map to prevent potential NullPointerExceptions.
if(dbId == null || instance == null){

@slorello89 slorello89 requested a review from a team April 23, 2025 12:38
@slorello89 slorello89 merged commit 38dce2a into main Apr 24, 2025
1 check passed
@slorello89
Copy link
Contributor Author

🎉 This issue has been resolved in v0.0.5 (Release Notes)

@slorello89 slorello89 added the released Issue has been released label Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Issue has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant