{"action":"created","issue":{"url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/292","repository_url":"https://api.github.com/repos/kaltura/nginx-vod-module","labels_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/292/comments","events_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/292/events","html_url":"https://github.com/kaltura/nginx-vod-module/issues/292","id":151815971,"number":292,"title":"delay while preparing .ts files","user":{"login":"kuznetcoff777","id":15265762,"avatar_url":"https://avatars.githubusercontent.com/u/15265762?v=3","gravatar_id":"","url":"https://api.github.com/users/kuznetcoff777","html_url":"https://github.com/kuznetcoff777","followers_url":"https://api.github.com/users/kuznetcoff777/followers","following_url":"https://api.github.com/users/kuznetcoff777/following{/other_user}","gists_url":"https://api.github.com/users/kuznetcoff777/gists{/gist_id}","starred_url":"https://api.github.com/users/kuznetcoff777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuznetcoff777/subscriptions","organizations_url":"https://api.github.com/users/kuznetcoff777/orgs","repos_url":"https://api.github.com/users/kuznetcoff777/repos","events_url":"https://api.github.com/users/kuznetcoff777/events{/privacy}","received_events_url":"https://api.github.com/users/kuznetcoff777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-04-29T08:19:14Z","updated_at":"2016-05-11T15:40:17Z","closed_at":null,"body":"Hi!\r\nWe made a test scheme, let me describe step-byt-step the vision of how it works\r\n1-request from client for .ts (10 seconds segments, most of them with high bitrate about 4 mbit/s)\r\n↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\r\n2-nginx:80\r\n↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\r\n3-local proxy cache (if not found such .ts)\r\n↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\r\n4-local porxy nginx:8080 (kaltura module)\r\n↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\r\n5-range request to remote storage nginx:80\r\n↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\r\n6-range response to proxy nginx:8080 (kaltura module)\r\n↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\r\n7-kaltura module preparing .ts file \r\n↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\r\n8-.ts file goes to nginx:80 (simultaneously it writes to local proxy cache) and then to the client.\r\n\r\n\r\nOn step 7-8 sometimes i see as proxy kaltura module anwers with 5-10 seconds delay (access log $request_time). Also i see that remote storage answers to module pretty fast (less then 1 seconds).\r\nSo i try to understand the reason of such delays (i monitor processor load it is not heavy and have large reserve)\r\nCan you explain how module works in remote mode? I mean when it gets range response - does it store that response in memory or on disk while preparing .ts file from it?"},"comment":{"url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/comments/218499031","html_url":"https://github.com/kaltura/nginx-vod-module/issues/292#issuecomment-218499031","issue_url":"https://api.github.com/repos/kaltura/nginx-vod-module/issues/292","id":218499031,"user":{"login":"erankor","id":4777488,"avatar_url":"https://avatars.githubusercontent.com/u/4777488?v=3","gravatar_id":"","url":"https://api.github.com/users/erankor","html_url":"https://github.com/erankor","followers_url":"https://api.github.com/users/erankor/followers","following_url":"https://api.github.com/users/erankor/following{/other_user}","gists_url":"https://api.github.com/users/erankor/gists{/gist_id}","starred_url":"https://api.github.com/users/erankor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erankor/subscriptions","organizations_url":"https://api.github.com/users/erankor/orgs","repos_url":"https://api.github.com/users/erankor/repos","events_url":"https://api.github.com/users/erankor/events{/privacy}","received_events_url":"https://api.github.com/users/erankor/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T15:40:17Z","updated_at":"2016-05-11T15:40:17Z","body":"Is there a request for it consistently happens ? can you capture a slow request with tcpdump ?"}}