Closed briuccio closed 2 years ago
@briuccio
You'll need to set the rate limit in the miiserver.exe.config file to match that set for your API in the google developer console.
Add the new <section...>
value shown below within the existing <configSections>
element, or create the <configSections>
element if it doesnt exist. Then add the complete <lithnet-google-ma>
section as shown below. You may need to tweak the value until the rate limit error goes away.
<configuration>
<configSections>
<section name="lithnet-google-ma" type="Lithnet.GoogleApps.MA.MAConfigurationSection, Lithnet.GoogleApps.MA" />
</configSections>
<lithnet-google-ma>
<contacts-api rate-limit="1500" pool-size="30" />
</lithnet-google-ma>
...
/<configuration>
@ryannewington
Is the "rate limit" you mentioned here the same as the "Queries per minute per user" in the Google Developer Console? If so, ours is currently set at 600, so would we enter that as the rate-limit parameter? Or should we request a higher limit? I ask because we get this same error when provisioning a lot of contact objects.
@IAmStevenJohnson The default rate limit is set to 1500, so the reason you are seeing errors is the MA is trying to send more requests than your project API limits allow.
You can either set the MA to use only 600, which will stop the errors, by reducing the throughput, or you can increase the project API limits.
If the goal is to get rid of the errors, set the MA to 600 to match your project limit. If performance is an issue, increase the project limit and adjust the MA limit to match.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
Hello Ryan, I pick back this ticket to ask you which tag need to be insert to limit groups api call?
<configuration>
<configSections>
<section name="lithnet-google-ma" type="Lithnet.GoogleApps.MA.MAConfigurationSection, Lithnet.GoogleApps.MA" />
</configSections>
<lithnet-google-ma>
<**contacts-api rate-limit**="1500" pool-size="30" />
</lithnet-google-ma>
Groups come under the directory API, but group settings comes under its own
<lithnet-google-ma http-debug-enabled="true" export-threads="30">
<directory-api rate-limit="1500" pool-size="35" export-threads-group-member="5" import-threads-group-member="10" batch-size-group-member="100" />
<groupssettings-api rate-limit="1500" pool-size="30" />
<contacts-api rate-limit="1500" pool-size="30" />
</lithnet-google-ma>
Hello, I got an error when trying to manage shared contacts. Below the error I got from the logs when trying to export:
It also happens when trying to import contacts: