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

How I can try to use v3? #812

Closed
melkayam92 opened this issue Jun 24, 2023 · 4 comments
Closed

How I can try to use v3? #812

melkayam92 opened this issue Jun 24, 2023 · 4 comments
Assignees
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. type: question Request for information or clarification. Not an issue.

Comments

@melkayam92
Copy link

Currently, I am using the bigtable_v2 async client, which generally works well. However, I have observed a spike in latency every hour. I suspect this may be due to the GRPC channel closing after 1 hour. Upon reviewing the v3 code, I discovered the presence of a grpc connection pool, which seems promising for resolving my issue.

I attempted to install the branch using pip, but it was unsuccessful. Do you have any suggestions on how I can test it?

@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/python-bigtable API. label Jun 24, 2023
@daniel-sanche
Copy link
Contributor

We're planning on cutting the first alpha release at the end of the week, so I'd recommend waiting for that. I believe it will be released as a developer pre-release on pypi, but you should also be able to install builds directly from the repo by cloning it and installing with pip install -e . If you're having issues with that let, me know (currently you also need to clone and install the python-api-core sub-module, but that won't be required after the alpha this week)

If you decide to try out the alpha and have any feedback, please reach out!

@daniel-sanche
Copy link
Contributor

As for the latency spike you're seeing, it could be due to the channels needing refresh, or it could also be due to oauth credentials expiring and needing refresh, which I believe also happens ~hourly. The channel pool in the alpha should address the first one, but auth token refresh is coming later.

@melkayam92
Copy link
Author

Thanks @daniel-sanche , I will wait for the alpha.

For now, I have implemented a workaround where I warm up a different client every 50 minutes. It seems to have resolved the issue with the spikes.

@kolea2 kolea2 added the type: question Request for information or clarification. Not an issue. label Sep 28, 2023
@triplequark
Copy link

Closing as v3 client will resolve - please re-open if needed for any reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

4 participants