GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Gungho::Component::Throttle::Domain(3) User Contributed Perl Documentation Gungho::Component::Throttle::Domain(3)

Gungho::Component::Throttle::Domain - Throttle By Domain

  ---
  throttle:
    domain:
      max_items 1000
      interval: 3600
      domains:
        - match: 'A [Regular]+ Exp?ression'
        - match: \.cpan\.org$
  components:
    - Throttle::Domain

This component allows you to throttle requests by domain names.

You can specify a regular expression, in which case only the domains that match the particular regular expression will be throttled. Otherwise, the hostname from each request will be used as the key to throttle.

All configuration parameters are specified in throttle.domain hash:

  throttle:
    doamin:
      key1: value

Specifies the max number of items that can be fetched within the time specified in "interval"

Specifies the interval to which to apply the max_items configuration.

Specifies the domain to apply the throttling. If unspecified, the same throttling configuration will be applied to all domains

Checks if a request can be executed succesfully. Returns 1 if it's ok to execute the request.
2007-11-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.