{"action":"created","issue":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1285","labels_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1285/labels{/name}","comments_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1285/comments","events_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1285/events","html_url":"https://github.com/phoenixframework/phoenix/issues/1285","id":111689931,"number":1285,"title":"Performance Testing of Phoenix Channels","user":{"login":"jeregrine","id":100886,"avatar_url":"https://avatars.githubusercontent.com/u/100886?v=3","gravatar_id":"","url":"https://api.github.com/users/jeregrine","html_url":"https://github.com/jeregrine","followers_url":"https://api.github.com/users/jeregrine/followers","following_url":"https://api.github.com/users/jeregrine/following{/other_user}","gists_url":"https://api.github.com/users/jeregrine/gists{/gist_id}","starred_url":"https://api.github.com/users/jeregrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeregrine/subscriptions","organizations_url":"https://api.github.com/users/jeregrine/orgs","repos_url":"https://api.github.com/users/jeregrine/repos","events_url":"https://api.github.com/users/jeregrine/events{/privacy}","received_events_url":"https://api.github.com/users/jeregrine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phoenixframework/phoenix/labels/area:channels","name":"area:channels","color":"009800"},{"url":"https://api.github.com/repos/phoenixframework/phoenix/labels/testing","name":"testing","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-15T19:24:25Z","updated_at":"2015-10-16T09:35:39Z","closed_at":null,"body":"@Gazler set this test environment up to test how many websockets can connect to a channel. \r\nHow to test:\r\n\r\n```bash\r\nbrew install tsung\r\ngit clone git@github.com:jeregrine/phoenix_chat_example.git\r\nmix deps.get\r\nMIX_ENV=prod mix do deps.get,phoenix.server\r\n<tab tab>\r\ntsung -f websocket.xml start\r\n```\r\n\r\nWe are currently investigating how to push more load to Phoenix and see what is blocking the current throughput (if it is the tool or some configuration we are not aware).\r\n\r\nDuring testing the result's were not great as shown by \r\n\r\n```\r\nsudo cpan Template\r\ncd ~/.tsung/log/<latest_run>/\r\n/usr/local/lib/tsung/bin/tsung_stats.pl ./\r\nopen graph.html\r\n```\r\n\r\nI am not sure if we need to change how Tsung is setup or if it's a phoenix issue. MY GUT say's its a tsung configuration issue. But if we get this to work it is super neat because it actually tests the whole system not just the opening of a socket see https://github.com/jeregrine/phoenix_chat_example/blob/master/websocket.xml#L22-L43 for examples.\r\n\r\n\r\nEDIT: PLEASE NOTE this could be multiple things. This was a super neat, and reproducible way to test phoenix channels. "},"comment":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/comments/148667033","html_url":"https://github.com/phoenixframework/phoenix/issues/1285#issuecomment-148667033","issue_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1285","id":148667033,"user":{"login":"chrismccord","id":576796,"avatar_url":"https://avatars.githubusercontent.com/u/576796?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismccord","html_url":"https://github.com/chrismccord","followers_url":"https://api.github.com/users/chrismccord/followers","following_url":"https://api.github.com/users/chrismccord/following{/other_user}","gists_url":"https://api.github.com/users/chrismccord/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismccord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismccord/subscriptions","organizations_url":"https://api.github.com/users/chrismccord/orgs","repos_url":"https://api.github.com/users/chrismccord/repos","events_url":"https://api.github.com/users/chrismccord/events{/privacy}","received_events_url":"https://api.github.com/users/chrismccord/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T09:35:39Z","updated_at":"2015-10-16T09:35:39Z","body":"The linked repo does not set buiild_embedded, so protocols are not consolidated by default. Can you verify protocols are consolidated in your latest runs?"}}