Skip to content

Commit

Permalink
refactor(clustering/sync): use CLUSTERING_PING_INTERVAL as sync delay (
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored Nov 28, 2024
1 parent e457f6c commit ef762bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kong/clustering/services/sync/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ local _M = {}
local _MT = { __index = _M, }


local constants = require("kong.constants")
local events = require("kong.clustering.events")
local strategy = require("kong.clustering.services.sync.strategies.postgres")
local rpc = require("kong.clustering.services.sync.rpc")


local FIRST_SYNC_DELAY = 0.2 -- seconds
local EACH_SYNC_DELAY = 30 -- seconds
local EACH_SYNC_DELAY = constants.CLUSTERING_PING_INTERVAL -- 30 seconds


function _M.new(db, is_cp)
Expand Down

1 comment on commit ef762bb

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:ef762bb59e7ee34b46e84da4de035288c23f8f20
Artifacts available https://github.com/Kong/kong/actions/runs/12064782577

Please sign in to comment.