Throttling Prevention
Last updated
Was this helpful?
Last updated
Was this helpful?
KONNEKT’s throttling prevention includes two policies an "" policy and a "" policy designed to manage and control the rate at which requests are made to the Microsoft’s GraphAPI, ensuring that the connections to SharePoint Online (SPO) remain stable and perform optimally. These policies are particularly useful in preventing an excessive resource usage and maintaining a smooth user experience.
The usage of Microsoft 365 APIs is subject to limitations in terms of the amount of requests per time, that an application may send. If an application uses more resources, it will be throttled. You can find more on this in the .
Since KONNEKT is using Microsoft SharePoint Online REST API and Microsoft Graph API, it may happen, that Microsoft APIs will throttle your KONNEKT usage. If an application is throttled, the corresponding API (e.g. SharePoint Online REST API) tells KONNEKT, that it has to wait for a defined amount of time. This starts from some seconds and can grow up to minutes, depending on the usage. Impacts for KONNEKT may be slow browsing through or loading/writing of files. If the throttling grows up to minutes, it will result in error messages that the drive is currently not available.
KONNEKT has several mechanisms to reduce the occurrence of throttling, which are applied automatically.
When a user attempts to upload a large number of files to / or a data migration within SPO within a short period, the device may reach the specified limit.
If a user performs intensive read operations, such as querying or searching a large directory (> 1000 items), the device may reach the specified limit.
Examples:
Using the File Explorer Search in large folders
Scrolling through folders with numerous graphic or PDF files
Since version 2.10 KONNEKT additionally checks permissions per folder and files since these queries consume a higher number of resource units compared to the other operations. The system may reach the specified limit much faster, which can trigger throttling prevention. Permission queries won't be triggered if "" is set to 'High'.
In heavy load environments, all measures may not be enough to prevent throttling.
KONNEKT was made for regular office work. If you use high volume files (e.g. video editing, graphics design, CAD) or read/write gigabytes of data, KONNEKT (& SharePoint Online) may not be the proper tool of choice.
Each type of GraphAPI request consumes different amounts of resource units:
Single-item reads: 1 resource unit each
Write operations and directory queries: 2 resource units each
Permission queries: 5
The following circumstances promote throttling:
Usage of 3rd party tools for SharePoint Online backup - especially during working hours
Use of tools that crawl your whole filesystem (like preview renderer etc.)
Use of very big folders with >1000 files on the first level of the folder
To avoid this, please
Do not run backups of SharePoint online during working hours.
Segment your data (not too many files in the first level of a folder).
Set KONNEKT SharePoint Throttling Prevention Policy (see below) to "High"
Log entries that contain "[Sharepoint] UpdateDrives: Skipping volume due to throttling prevention.
" are NOT caused by SharePoint throttling. Those indicate regular operations to prevent throttling - nothing to worry about. ;-)
Soft Limit: When the soft limit is reached, the system will begin to throttle requests. This means that most operations will be delayed for a short period (e.g., 2 seconds), and the throttling prevention level will switch to HIGH. Some operations, such as opportunistic upload jobs and read-ahead operations, will be postponed until the request amount falls below the soft limit.
Hard Limit: When the hard limit is reached, the system will stop sending any requests. The application will display an error message until the end of the time window is reached.
Use "Hard Limit" only when necessary, as it prevents KONNEKT from accessing communicating to Microsoft's endpoints.
Please also check our .
For details see:
Do not use any preview renderer for KONNEKT resources. See also . You can additionally set the to the file extension "YYY" (which does not exist), to prevent Windows File Explorer from rendering previews for PDF files.
When you turn the , you will see log entries with "ThrottlingHook: Need to wait Xs before start
" (where X stands for the amount of seconds SharePoint Online wants us to wait).
The "" policy limits requests by enhanced refresh cycles e.g. updating the users Site Collections.
The "" policy operates by monitoring the number of requests and there corresponding resource units made within a specified time window and applying limits to these requests. This policy, “”, includes soft and hard limits: