Configure the Query Rate Limit

In Coveo for Sitecore, a query rate limit is set to mitigate the outgoing communication to the Coveo index. While the default settings fit the needs of most installations, you might want to customize them further.

To configure these settings

  1. Open the Coveo.SearchProvider.Rest.Custom.config file in a text editor.

    Sitecore 7 and 8

    The Coveo.SearchProvider.Rest.Custom.config file is located under <SITECORE_INSTANCE_ROOT>\Website\App_Config\Include\Coveo.

    Sitecore 9 and 10

    The Coveo.SearchProvider.Rest.Custom.config file is located under <SITECORE_INSTANCE_ROOT>\App_Config\Include\Coveo.

  2. In the sitecore\coveo\restEndpointConfiguration node, add/edit the following parameters:

    Name Description Example value

    Coveo for Sitecore (September 18, 2020)

    queryQuotaPerOrgLimit

    The maximum number queries per second (QPS) that can be sent to the platform.

    The default value is half of your license QPS. This is to account for many CM or CD instances.

    If the number is set higher than the one specified in the license, the license limit is applied.

    To increase the license limit, contact Coveo Support.

    <queryQuotaPerOrgLimit>
    30
    </queryQuotaPerOrgLimit>

    Coveo for Sitecore (September 18, 2020)

    querySuggestQuotaPerOrgLimit

    The maximum number query suggestions per second that can be sent to the platform.

    The default value is half of your license query suggestions per second. This is to account for many CM or CD instances.

    If the number is set higher than the one specified in the license, the license limit is applied.

    To increase the license limit, contact Coveo Support.
    <querySuggestQuotaPerOrgLimit>
    50
    </querySuggestQuotaPerOrgLimit>

    Coveo for Sitecore (September 18, 2020)

    queryRateLimit

    The maximum number queries per second (QPS) that can be sent to the platform.

    The default value is 10.

    If the number is set higher than twice the default value, this limit is applied.

    This parameter has been deprecated. If you are using the September 18, 2020 release of Coveo for Sitecore or a more recent version, use queryQuotaPerOrgLimit instead.

    <queryRateLimit>
    10
    </queryRateLimit>
    maximumQueryRateLimitLatency

    The maximum amount of time a query is queued before sending a too many requests response (status code 429).

    The default value is 00:00:05, which is five seconds.

    You can see the request error in the Sitecore logs as a WARN with a Limit of query reached description.

    <maximumQueryRateLimitLatency>
    00:00:05
    </maximumQueryRateLimitLatency>
What's Next for Me?