diff --git a/kong/clustering/data_plane.lua b/kong/clustering/data_plane.lua index 30ef653a77d..95dff28f0d6 100644 --- a/kong/clustering/data_plane.lua +++ b/kong/clustering/data_plane.lua @@ -111,8 +111,6 @@ function _M:init_worker(basic_info) return end - ngx_log(ngx_WARN, "sync v1 is enabled due to rpc sync can not work.") - -- we only check once if self.inited then return @@ -120,6 +118,8 @@ function _M:init_worker(basic_info) self.inited = true + ngx_log(ngx_WARN, "sync v1 is enabled due to rpc sync can not work.") + -- only run in process which worker_id() == 0 start_communicate()