Hybrid mode, also known as Control Plane/Data Plane separation (CP/DP), is a deployment model that splits all Kong Gateway nodes in a cluster into one of two roles:
- Control Plane (CP) nodes, where configuration is managed and the Admin API is served from
- Data Plane (DP) nodes, which serve traffic for the proxy
In hybrid mode, the database only needs to exist on Control Plane nodes.
Each DP node is connected to one of the CP nodes, and only the CP nodes are directly connected to a database. Instead of accessing the database contents directly, the DP nodes maintain a connection with CP nodes to receive the latest configuration.
Konnect runs in hybrid mode. In this case, Kong manages the database for you, so you can’t access it directly.
This means you can’t manage Konnect configuration via kong.conf
like you can for Kong Gateway, as Kong handles that configuration.
Additionally, Konnect uses the Control Plane Config API to manage Control Planes while Kong Gateway uses the Admin API.
The following diagram shows what Kong Gateway looks like in self-managed hybrid mode:
flowchart TD A[(Database)] B(Control Plane
#40;Kong Gateway instance#41;) C(Data Plane 3
#40;Kong Gateway instance#41;) D(Data Plane 1
#40;Kong Gateway instance#41;) E(Data Plane 2
#40;Kong Gateway instance#41;) subgraph id1 [Self-managed CP node] A---B end B --Kong proxy configuration---> id2 & id3 subgraph id2 [Self-managed on-prem] C end subgraph id3 [Self-managed cloud] D E end style id1 stroke-dasharray:3,rx:10,ry:10 style id2 stroke-dasharray:3,rx:10,ry:10 style id3 stroke-dasharray:3,rx:10,ry:10
Figure 1: In self-managed hybrid mode, the Control Plane and Data Planes are hosted on different nodes. The Control Plane connects to the database, and the Data Planes receive configuration from the Control Plane.
When you create a new Data Plane node, it establishes a connection to the
Control Plane. The Control Plane listens on port 8005
(Kong Gateway) or 443
(Konnect) for connections and
tracks any incoming data from its Data Planes.
Once connected, every API or Kong Manager/Konnect UI action on the Control Plane triggers an update to the Data Planes in the cluster.