nginx - Simulate poor bandwidth in a testing environment (Mac OS X)? -
we have customized flash/html5 video player use users on our site. i'm fleshing out experience users have 'suboptimal' bandwidth--basically we'd client side code able detect poor user experience due excessive buffering. test "poor bandwidth" handling code in local development environment.
does know of techniques simulating "poor bandwidth" in local environment testing purposes?
more have local browser connecting virtual machine instances of uwsgi, nginx, , python/django , able inject arbitrary amounts of delay delivery of content these systems. (i'm concerned doing nginx, video content delivery/streaming).
edit: may relevant dev environment mac os x.
just use nginx's configuration.
while os x lion's network link conditioner works expected it's still annoying use when i'm trying test subset of web app's behavior--i.e., slow video buffering handling system.
as such, i've found more convenient set rate limiting in nginx.conf
file, e.g.,:
location ~ /files/(.*\.(mp4|m4v|mov))$ { ... limit_rate 50k; # <-- limit download rate per connection 50kbps ... }
edit: see nginx httpcoremodule docs.
Comments
Post a Comment