英文:
What is the minimum value for `interval_sec` and maximum value for `count` while configuring a rule for Security Policy in Google Cloud Armor?
问题
在设置速率限制选项以进行速率限制时,官方文档没有说明interval_sec的最小值和count
的最大值。
在Google Cloud控制台中,interval_sec的最小可设置值为10秒,通过试错,count
的最大值报告为10000。
是否可以正确地将count
的最大值表示为10,000,interval_sec
的最小值表示为10秒?
英文:
While setting Rate Limit options to set rate-based throttling, the official documentation does not state the minimum value for interval_sec and the maximum value for count
.
In the Google Cloud Console, the minimum value that can be set is 10 seconds for interval_sec, and via hit and trial, the maximum value reported by an error, for count
, is 10000.
Would it correct to state 10k as the maximum value for count
, and 10 seconds as the minimum value for interval_sec
?
答案1
得分: 1
根据文档,interval_sec 的最低示例值为10。所以,如果我们要根据文档的示例来进行设置,那么最低值将是10。
关于最大值计数,由于它是从您的 Google 控制台结果中获取的,我相信那将是正确的最大值。不过,我不确定是否使用它会是最佳实践。根据这份文档,一切都取决于您的设置。就像共享文档中的示例情况一样,限制仅设置为5000。关于这个问题的更多信息和理解,我建议您访问我与您分享的文档。
英文:
Based from the documentation the lowest given sample of interval_sec is 10. So if we are going to base the example from the documentation then the lowest will be 10.
Regarding the maximum value count. Since it was the result from your google console I believe that will be the right maximum value. Though I am not sure if using it will be the best practice. Based with this documentation everything will depend on your set up. Just like the example scenario from the shared documentation the limit is only set to 5000. For more information and understanding about this concern I suggest you visit the documentation I shared with you.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论