{"action":"created","issue":{"url":"https://api.github.com/repos/h2non/toxy/issues/38","labels_url":"https://api.github.com/repos/h2non/toxy/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/h2non/toxy/issues/38/comments","events_url":"https://api.github.com/repos/h2non/toxy/issues/38/events","html_url":"https://github.com/h2non/toxy/issues/38","id":118216608,"number":38,"title":"Strange spikes in latency with toxy","user":{"login":"shorea","id":11096681,"avatar_url":"https://avatars.githubusercontent.com/u/11096681?v=3","gravatar_id":"","url":"https://api.github.com/users/shorea","html_url":"https://github.com/shorea","followers_url":"https://api.github.com/users/shorea/followers","following_url":"https://api.github.com/users/shorea/following{/other_user}","gists_url":"https://api.github.com/users/shorea/gists{/gist_id}","starred_url":"https://api.github.com/users/shorea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shorea/subscriptions","organizations_url":"https://api.github.com/users/shorea/orgs","repos_url":"https://api.github.com/users/shorea/repos","events_url":"https://api.github.com/users/shorea/events{/privacy}","received_events_url":"https://api.github.com/users/shorea/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/h2non/toxy/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-21T19:32:17Z","updated_at":"2015-11-23T17:48:51Z","closed_at":null,"body":"Created a simple pass through toxy script to just forward traffic and I'm seeing large ~20 sec spikes fairly regularly. I'm sending 60 requests per second through toxy. I've got some client side metrics enabled and the majority of the time is spent receiving the response from toxy. Is there some default poison applied that could be causing this? Can toxy not handle that rate of requests (I assume it can per some benchmarks on the rocky README)? When I run the same code without toxy (directly hitting the endpoint) I'm not getting any spikes. Hitting toxy with http and toxy is forwarding to an https endpoint.\r\n\r\n```javascript\r\nvar toxy = require('toxy')\r\nvar fs = require('fs')\r\n\r\nvar poisons = toxy.poisons\r\nvar rules = toxy.rules\r\nvar proxy = toxy()\r\n\r\n// Configure and enable proxy\r\nproxy.all(\"*\").forward(\"https://dynamodb.us-west-2.amazonaws.com\")\r\nproxy.listen(6241)\r\n```"},"comment":{"url":"https://api.github.com/repos/h2non/toxy/issues/comments/159009597","html_url":"https://github.com/h2non/toxy/issues/38#issuecomment-159009597","issue_url":"https://api.github.com/repos/h2non/toxy/issues/38","id":159009597,"user":{"login":"shorea","id":11096681,"avatar_url":"https://avatars.githubusercontent.com/u/11096681?v=3","gravatar_id":"","url":"https://api.github.com/users/shorea","html_url":"https://github.com/shorea","followers_url":"https://api.github.com/users/shorea/followers","following_url":"https://api.github.com/users/shorea/following{/other_user}","gists_url":"https://api.github.com/users/shorea/gists{/gist_id}","starred_url":"https://api.github.com/users/shorea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shorea/subscriptions","organizations_url":"https://api.github.com/users/shorea/orgs","repos_url":"https://api.github.com/users/shorea/repos","events_url":"https://api.github.com/users/shorea/events{/privacy}","received_events_url":"https://api.github.com/users/shorea/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T17:48:50Z","updated_at":"2015-11-23T17:48:50Z","body":"Thanks for digging into this @h2non! I reran our simulation with 40 RPS and we only had two 20 second spikes as opposed to the five or six we normally get with 60 RPS for the same period. It's strange that it is always 20 seconds for every spike, even for your benchmark there are approx 20 second spikes. I wonder what could be causing such consistent latency? Is there any information I could provide that would help you debug this? "}}