kong icon indicating copy to clipboard operation
kong copied to clipboard

The event-hook delete operation cannot be automatically synchronized across multiple Kong instances.

Open mark0725 opened this issue 3 months ago • 4 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Kong version ($ kong version)

kong 3.10

Current Behavior

Multiple Kong instances with one database. When an event-hook is created or deleted on one Kong instance, the event-hook is not automatically synchronized and deleted on the other nodes. The changes only take effect on those nodes after they are restarted.

Expected Behavior

No response

Steps To Reproduce

No response

Anything else?

No response

mark0725 avatar Sep 10 '25 09:09 mark0725

Could you give me a practical example — in what situation you used it, whether in a plugin or in some modified Kong code? Or, alternatively, could you share steps to reproduce it?

chobits avatar Sep 16 '25 01:09 chobits

Could you give me a practical example — in what situation you used it, whether in a plugin or in some modified Kong code? Or, alternatively, could you share steps to reproduce it?

A and B are both connected to the same database. Steps to reproduce the issue:

Use A's admin API to create an eventhook for the target, then use B's admin API to create a target; the eventhook is triggered as expected. Use A's admin API to delete this eventhook, then use B's admin API to create a target; the eventhook has not been deleted and can still be triggered.

mark0725 avatar Sep 16 '25 02:09 mark0725

The event-hook relies on worker events to update, which are triggered by the config sync or Admin API. This is not handled in the case of multiple nodes sharing the same DB. Other nodes are not aware of the change, unless notified with a cluster event. The hybrid mode is encouraged in this use case

StarlightIbuki avatar Nov 04 '25 07:11 StarlightIbuki

This issue is marked as stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Dec 06 '25 02:12 github-actions[bot]

Dear contributor,

We are automatically closing this issue because it has not seen any activity for three weeks. We're sorry that your issue could not be resolved. If any new information comes up that could help resolving it, please feel free to reopen it.

Your contribution is greatly appreciated!

Please have a look our pledge to the community for more information.

Sincerely, Your Kong Gateway team

github-actions[bot] avatar Dec 13 '25 02:12 github-actions[bot]