Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Datastream from Multiple MySQL Instances to BigQuery Beyond the Stream Limit

Hello everyone,

I'm currently working on creating a datastream from MySQL to BigQuery. Our company has more than 100 MySQL instances that we would like to ingest into BigQuery. However, we have encountered a limitation where the maximum number of streams per project per region is 50. I'm looking for suggestions or workarounds to handle this situation.

One idea I have is to use multiple regions or multiple projects. However, I anticipate that this might become cumbersome when it comes to data transformation or merging.

Thank you in advance for your help!

3 1 376
1 REPLY 1

Your situation is indeed challenging, but there are several potential solutions to consider:

  1. Multiple Projects: As you've mentioned, one way to bypass this limitation is to create multiple Google Cloud projects. Each project would have its own quota, allowing you to create more streams. However, managing multiple projects can be complex and may require additional overhead for permissions and billing management.

  2. Multiple Regions: Similarly, you could distribute your streams across multiple regions. This would also increase the total number of streams you can create. However, this could lead to increased complexity when it comes to data transformation and merging, as you've noted. Additionally, you may incur additional costs for cross-region data transfer.

  3. Consolidate MySQL Instances: If possible, consider consolidating your MySQL instances. If some of your databases are small or infrequently updated, you might be able to combine them into a single instance, reducing the number of streams you need.

  4. Batch Processing: If real-time data is not a requirement, you could use batch processing to transfer data from MySQL to BigQuery. This could be done using tools like Apache Beam, Cloud Dataflow, or even Cloud Functions.

  5. Request an Increase in Quota: Google Cloud sometimes allows you to request an increase in your quota. You can try reaching out to Google Cloud Support to explain your situation and see if they can accommodate your needs.

  6. Use a Data Integration Platform: There are several third-party data integration platforms that can help you move data from MySQL to BigQuery. These platforms can handle large numbers of data sources and may have higher limits than Google Cloud's native tools.