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

set memory limit/request for blob storage connectors #10861

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

lmossman
Copy link
Contributor

@lmossman lmossman commented Mar 4, 2022

What

Resolves https://github.com/airbytehq/airbyte-cloud/issues/1082

Set the connector-definition level memory limit/request resource requirement for all blob storage connectors to 1Gi, as recommended by the connectors team. See issue for details.

How

Uses the sync jobSpecific resource requirement configuration in the destination definition seed yaml to set the memory limit/request to 1Gi for all blob storage connectors.

This PR also removes some resource requirement configuration from the snowflake connector, as noted in the comments below

Recommended reading order

  1. x.java
  2. y.python

@lmossman lmossman temporarily deployed to more-secrets March 4, 2022 18:04 Inactive
Comment on lines -192 to -198
# this is our first example of setting these requirements. they are guesses, not data driven.
# setting default cpu higher, because we have found that check and discover can be cpu constrained for dbs.
default:
cpu_limit: "1.0"
cpu_request: "1.0"
memory_limit: "300Mi"
memory_request: "300Mi"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing this because these resource requirements are not currently applied to anything besides sync jobs, so having this here is a bit misleading. I created an issue to add support for this here: https://github.com/airbytehq/airbyte/issues/10862

Comment on lines -203 to -204
cpu_limit: "0.5"
cpu_request: "0.5"
Copy link
Contributor Author

@lmossman lmossman Mar 4, 2022

Choose a reason for hiding this comment

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

I removed the cpu_limit and cpu_request requirements because we are going to set the default CPU requirements for all jobs to 0.5, and if we decide to change that default in the future then having this requirement here will prevent that change from affecting snowflake connectors.

@lmossman lmossman merged commit fb7e259 into master Mar 4, 2022
@lmossman lmossman deleted the lmossman/set-connector-resource-requirements branch March 4, 2022 19:19
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.

3 participants