{"action":"created","issue":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/1263","repository_url":"https://api.github.com/repos/openresty/lua-nginx-module","labels_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/1263/labels{/name}","comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/1263/comments","events_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/1263/events","html_url":"https://github.com/openresty/lua-nginx-module/issues/1263","id":298498761,"number":1263,"title":"Balancer is not triggered ","user":{"login":"sukidesuaoi","id":36180787,"avatar_url":"https://avatars2.githubusercontent.com/u/36180787?v=4","gravatar_id":"","url":"https://api.github.com/users/sukidesuaoi","html_url":"https://github.com/sukidesuaoi","followers_url":"https://api.github.com/users/sukidesuaoi/followers","following_url":"https://api.github.com/users/sukidesuaoi/following{/other_user}","gists_url":"https://api.github.com/users/sukidesuaoi/gists{/gist_id}","starred_url":"https://api.github.com/users/sukidesuaoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sukidesuaoi/subscriptions","organizations_url":"https://api.github.com/users/sukidesuaoi/orgs","repos_url":"https://api.github.com/users/sukidesuaoi/repos","events_url":"https://api.github.com/users/sukidesuaoi/events{/privacy}","received_events_url":"https://api.github.com/users/sukidesuaoi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-20T07:47:26Z","updated_at":"2018-02-20T08:08:47Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm currently using lua-nginx included in Kong. However, I am encountering some error where in the balancer is not triggered. I'm not sure why it is skipped for this particular case. \r\n\r\n\r\nExample of a successful run:\r\n```\r\n2018/02/20 03:05:03 [info] 32#0: *362 client 127.0.0.1 closed keepalive connection\r\n2018/02/20 03:05:04 [debug] 32#0: *367 [lua] base_plugin.lua:20: rewrite(): executing plugin \"kong_middleman\": rewrite\r\n2018/02/20 03:05:04 [debug] 32#0: *367 [lua] base_plugin.lua:24: access(): executing plugin \"kong_middleman\": access\r\n2018/02/20 03:05:04 [debug] 32#0: *367 [lua] init.lua:331: balancer(): setting address (try 1): 172.18.80.231:8001\r\n2018/02/20 03:05:04 [debug] 32#0: *367 [lua] base_plugin.lua:28: header_filter(): executing plugin \"kong_middleman\": header_filter\r\n2018/02/20 03:05:04 [debug] 32#0: *367 [lua] base_plugin.lua:32: body_filter(): executing plugin \"kong_middleman\": body_filter\r\n2018/02/20 03:05:04 [debug] 32#0: *367 [lua] base_plugin.lua:32: body_filter(): executing plugin \"kong_middleman\": body_filter\r\n2018/02/20 03:05:04 [debug] 32#0: *367 [lua] base_plugin.lua:36: log(): executing plugin \"kong_middleman\": log\r\n2018/02/20 03:05:04 [info] 32#0: *367 client 172.19.0.3 closed keepalive connection\r\n```\r\n\r\nExample of not successful:\r\n```\r\n2018/02/20 07:03:03 [debug] 32#0: *186 [lua] base_plugin.lua:24: access(): executing plugin \"middleman\": access\r\n2018/02/20 07:03:03 [debug] 32#0: *186 [lua] base_plugin.lua:28: header_filter(): executing plugin \"middleman\": header_filter\r\n2018/02/20 07:03:03 [debug] 32#0: *186 [lua] base_plugin.lua:32: body_filter(): executing plugin \"middleman\": body_filter\r\n2018/02/20 07:03:03 [debug] 32#0: *186 [lua] base_plugin.lua:32: body_filter(): executing plugin \"middleman\": body_filter\r\n2018/02/20 07:03:03 [debug] 32#0: *186 [lua] base_plugin.lua:32: body_filter(): executing plugin \"middleman\": body_filter\r\n2018/02/20 07:03:03 [debug] 32#0: *186 [lua] base_plugin.lua:32: body_filter(): executing plugin \"middleman\": body_filter\r\n2018/02/20 07:03:03 [debug] 32#0: *186 [lua] base_plugin.lua:32: body_filter(): executing plugin \"middleman\": body_filter\r\n2018/02/20 07:03:03 [debug] 32#0: *186 [lua] base_plugin.lua:36: log(): executing plugin \"middleman\": log\r\n2018/02/20 07:03:25 [debug] 32#0: *194 [lua] cluster_events.lua:231: [cluster_events] polling events from: 1519110180.415 to: 1519110205.06\r\n```\r\n\r\n\r\nI noticed that the balancer() is not triggered in the second example.\r\nIs there any reason why the it is being skipped?\r\n\r\nThank you in advance"},"comment":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/comments/366896937","html_url":"https://github.com/openresty/lua-nginx-module/issues/1263#issuecomment-366896937","issue_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/1263","id":366896937,"user":{"login":"spacewander","id":4161644,"avatar_url":"https://avatars3.githubusercontent.com/u/4161644?v=4","gravatar_id":"","url":"https://api.github.com/users/spacewander","html_url":"https://github.com/spacewander","followers_url":"https://api.github.com/users/spacewander/followers","following_url":"https://api.github.com/users/spacewander/following{/other_user}","gists_url":"https://api.github.com/users/spacewander/gists{/gist_id}","starred_url":"https://api.github.com/users/spacewander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacewander/subscriptions","organizations_url":"https://api.github.com/users/spacewander/orgs","repos_url":"https://api.github.com/users/spacewander/repos","events_url":"https://api.github.com/users/spacewander/events{/privacy}","received_events_url":"https://api.github.com/users/spacewander/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T08:08:47Z","updated_at":"2018-02-20T08:08:47Z","author_association":"MEMBER","body":"@sukidesuaoi \r\nI think you should ask the question in the Kong's repo.\r\nThere are many ways to skip balancer phase. Only the developers of Kong could answer if the skip of balancer phase is by design or by mistake."}}
{"actor":{"display_login":"spacewander"}}