-
Notifications
You must be signed in to change notification settings - Fork 4k
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
OCI cloud provider : Optional Feature - Skip time-consuming findInstanceByDetails API call by adding non_pool_member annotation to the node #4860
Conversation
|
Welcome @aarontams! |
… by adding non_pool_member annotation to the node. This feature can be turned on by setting environment variable OCI_USE_NON_MEMBER_ANNOTATION to true. For example, if a node is not belong to any instance pool, during the very first GetInstancePoolForInstance call, the node will be annotated with oci.oraclecloud.com/instancepool-id: non_pool_member After new annotation is added to the node, all future GetInstancePoolForInstance calls related to the non-pool-member node will skip the time-consuming findInstanceByDetails API call. Minor refactoring - when retrieving pool size from instancePoolCache object, use the pool size defined inside the poolCache map instead.
4a8076d
to
ae3284e
Compare
Thanks for the pull request. Your changes look good to me. |
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.
Looks good to me.
/assign @aleksandra-malinowska |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aarontams, jlamillan, mwielgus The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This feature can be turned on by setting environment variable OCI_USE_NON_MEMBER_ANNOTATION to true.
For example, if a node is not belong to any instance pool, during the very first GetInstancePoolForInstance call, the node will be annotated with oci.oraclecloud.com/instancepool-id: non_pool_member.
After new annotation is added to the node, all future GetInstancePoolForInstance calls related to the non-pool-member node will skip the time-consuming findInstanceByDetails API call.