feat: Denylist small worker sizes in reverse replication#3044
feat: Denylist small worker sizes in reverse replication#3044manitgupta merged 6 commits intoGoogleCloudPlatform:mainfrom
Conversation
Summary of ChangesHello @manitgupta, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a crucial validation step for Dataflow worker machine types within the reverse replication process. By integrating a new utility, the system now proactively checks and disallows the use of worker machines with fewer than 4 vCPUs. This change aims to improve the stability and reliability of the Dataflow pipelines by preventing deployments with insufficient resources, which have historically led to operational issues. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3044 +/- ##
============================================
- Coverage 50.42% 50.40% -0.03%
+ Complexity 5022 5018 -4
============================================
Files 969 970 +1
Lines 59548 59578 +30
Branches 6493 6499 +6
============================================
+ Hits 30030 30033 +3
- Misses 27397 27420 +23
- Partials 2121 2125 +4
🚀 New features to boost your workflow:
|
...om/google/cloud/teleport/v2/spanner/migrations/utils/DataflowWorkerMachineTypeValidator.java
Outdated
Show resolved
Hide resolved
10bd28b to
86718c3
Compare
...om/google/cloud/teleport/v2/spanner/migrations/utils/DataflowWorkerMachineTypeValidator.java
Show resolved
Hide resolved
0ebd047 to
10181e9
Compare
Trying a rerun with increased Quota. |
* Add check for small machines * Remove log * Apply spotless * Use Preconditions * Update IT and LT base classes with workerMachineType * Add to params instead of env
…Platform#3044) * Add check for small machines * Remove log * Apply spotless * Use Preconditions * Update IT and LT base classes with workerMachineType * Add to params instead of env
…Platform#3044) * Add check for small machines * Remove log * Apply spotless * Use Preconditions * Update IT and LT base classes with workerMachineType * Add to params instead of env
…Platform#3044) * Add check for small machines * Remove log * Apply spotless * Use Preconditions * Update IT and LT base classes with workerMachineType * Add to params instead of env
This change checks the
workerMachineTypeused to run the reverse replication dataflow template and disallows small worker types. Small worker types are known to cause stability issues with the pipeline and this is a way to fast fail in cases of small worker usage.The definition of small for reverse replication is a machine which has less than 4 vCPUs.