feat: Add annotation to tweak providedThroughput control for tables - #157
feat: Add annotation to tweak providedThroughput control for tables#157pbarsotti-glovo wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pbarsotti-glovo The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @pbarsotti-glovo. Thanks for your PR. I'm waiting for a aws-controllers-k8s member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
|
hey @a-hilaly the codgen diff in the version could be due to my |
|
For DynamoDB Tables we have multiple fields where provisioned throughput values are defined and can be managed externally. For example, |
I thought that could be better to handle each one independently, although following the same approach. That's why I put |
knottnt
left a comment
There was a problem hiding this comment.
@pbarsotti-glovo Thanks for the PR! The implementation for ignoring ProvisionedThroughput in the delta looks good. However, there may still be a risk of the ACK controller mutating ProvisionedThroughput if a delta is detected in another spec field. Looking at the EKS NodeGroup implementation we have also added logic to omit the fields from API payloads to avoid that. Can we do something similar here?
|
@pbarsotti-glovo: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Issue 2032.
Description of changes:
Following the line of what was implemented for NodeGroups in this PR, the idea is to allow users to indicate via an annotation if the provisioned throughput of a table is managed by ACK's controller or if an external autoscaler is adapting the capacity dynamically.
In case of external autoscaler, the provisioned throughput defined in the spec is ignored during the delta creation phase to avoid updating these values, which could result in a sudden loss of capacity.