This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.
Este artigo foi traduzido automaticamente.
这篇文章已经过机器翻译.放弃
Translation failed!
测试基于速率的策略
要测试基于速率的策略,您可以将流量发送到基于速率策略绑定到的任何虚拟服务器。
任务概述:测试基于速率的策略
-
配置流选择器(可选)和速率限制标识符(必填)。例如:
add stream selector sel_subnet Q.URL "CLIENT.IP.SRC.SUBNET(24)" add ns limitIdentifier k_subnet -Threshold 4 -timeSlice 3600 -mode REQUEST_RATE -limittype smooth -selectorName sel_subnet -trapsInTimeSlice 8
-
配置要与使用速率限制标识符的策略关联的操作。例如:
add responder action resp_redirect redirect ""http://response_site.com/""
-
配置使用 sys.check_limit 表达式前缀调用速率限制标识符的策略。例如,策略可以对来自特定子网的所有请求应用速率限制标识符,如下所示:
add responder policy resp_subnet "SYS.CHECK_LIMIT("k_subnet")" resp_redirect
-
将策略全局绑定或绑定到虚拟服务器。例如:
bind responder global resp_subnet 6 END -type DEFAULT
-
在浏览器地址栏中,向虚拟服务器发送测试 HTTP 查询。例如:
http://<IP of a vserver>/testsite/test.txt
-
在 Citrix ADC 命令提示符下,键入:
show ns limitSessions <limitIdentifier>
示例
> sh limitsession k_subnet 1) Time Remaining: 98 secs Hits: 2 Action Taken: 0 Total Hash: 1718618 Hash String: /test.txt IPs gathered: 1) 10.217.253.0 Active Transactions: 0 Done >
-
重复查询并再次检查限制标识符统计信息,以验证统计信息是否正确更新。</span>
分享:
分享:
本文中包含的内容
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.