Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

StreamBeforeRequestCompletes Option in On Premise Data Gateway not working

Hello,

 

we've set up the standard On-Premises data gateway (version 3000.222.5, May 2024) in an Azure VM (Standard B8als v2 (8 vcpus, 16 GiB memory)) to connect Power BI with Azure MySQL for flexible Server.

We've noticed that the disk write operations are quite intense and to improve gateway performance we tried enabling the `StreamBeforeRequestCompletes` option in the XML config and restarted the service. But no matter how often we restarted the VM or gateway in the meantime, the Gateway is still writing files in the `Spooler` directory of the application and disk operations haven't changed. Other settings like `MashupDefaultPoolContainerMaxCount` had effects after changing.

Is the `StreamBeforeRequestCompletes` option limited to specific data sources, or are we missing something else?

 

Happy to provide more information and thankful for any hint!

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

StreamBeforeRequestCompletes  is only applicable when you are actually streaming (ie without transforms  or with query folding). All other queries still require disk activity for mashups etc.

 

What you should do is change the directory for spooler and logs to a different disk, so that it doesn't thrash your system disk.

View solution in original post

Your ideas is so great  @lbendlin 
Hi,  @Anonymous 
I'm wondering if you have resolved your issue by now. If so, it would be great if you could mark the helpful replies as Answered. This way, other members who have similar questions can find the solutions more easily.
In addition, you can also adjust the performance of the gateway with the CPU of the server. We recommend that you read the following documents to understand the performance logs of your gateway and optimize the performance of your gateway based on them:
Adjust gateway performance based on server CPU | Microsoft Learn
vjianpengmsft_0-1716874882970.png

Configure gateway disk space | Microsoft Learn
vjianpengmsft_1-1716874918761.png

Monitor and optimize on-premises data gateway performance | Microsoft Learn

 vjianpengmsft_2-1716874981345.png

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

StreamBeforeRequestCompletes  is only applicable when you are actually streaming (ie without transforms  or with query folding). All other queries still require disk activity for mashups etc.

 

What you should do is change the directory for spooler and logs to a different disk, so that it doesn't thrash your system disk.

Anonymous
Not applicable

Thanks for the quick response!
We will double-check the setup of the queries to see if your topics apply.
The spooler folder is currently not filling up, the files appear and disappear after some seconds to minutes.

Your ideas is so great  @lbendlin 
Hi,  @Anonymous 
I'm wondering if you have resolved your issue by now. If so, it would be great if you could mark the helpful replies as Answered. This way, other members who have similar questions can find the solutions more easily.
In addition, you can also adjust the performance of the gateway with the CPU of the server. We recommend that you read the following documents to understand the performance logs of your gateway and optimize the performance of your gateway based on them:
Adjust gateway performance based on server CPU | Microsoft Learn
vjianpengmsft_0-1716874882970.png

Configure gateway disk space | Microsoft Learn
vjianpengmsft_1-1716874918761.png

Monitor and optimize on-premises data gateway performance | Microsoft Learn

 vjianpengmsft_2-1716874981345.png

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors