You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: using-gatewayd/global-configuration/proxies.md
+7-14Lines changed: 7 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -10,34 +10,27 @@ grand_parent: Using GatewayD
10
10
11
11
# Proxies
12
12
13
-
The proxy object is used to proxy connections between database clients and servers. At the moment two types of proxies are supported by GatewayD:
13
+
The proxy object is used to proxy connections between database clients and servers.
14
14
15
-
1.**Fixed**: a fixed proxy creates a pool with a fixed number of connection to the database server.
16
-
2.**Elastic**: an elastic proxy will create a new connection to the database server when a new database client is connected, that is *on-demand*. The connections can be reused.
17
-
18
-
Both of the above proxies will honor the pool capacity, and if the number of connections from the clients is more than the capacity, new connections will be rejected.
15
+
GatewayD supports a fixed proxy that creates a pool with a fixed number of connection to the database server. It honors the pool capacity, and if the number of connections from the clients is more than the capacity, new connections will be rejected.
19
16
20
17
The PostgreSQL database expects new connections to authenticate before keeping them connected forever, thus the TCP connections from GatewayD will be timed out and dropped. A health check scheduler is started when creating connections to the database. If there are connections available in the available connections pool after the `healthCheckPeriod` is reached, it will remove and recreate new TCP connections to the database and put them in the pool.
21
18
22
19
Each proxy has two pools:
23
20
24
-
1.**Available connections pool**: if the fixed proxy is selected, new connections will be created upon start, and they will be put into this pool. Elastic proxy won't have an available connection pool, unless connections are reused.
21
+
1.**Available connections pool**: new connections will be created upon start, and they will be put into this pool.
25
22
2.**Busy connections pool**: when a new database client is connected to GatewayD, a connection will be removed from the available connections pool and put into this pool. Later when the client is disconnected, the connection will be closed and a new connection will be put back into the available connections pool.
26
23
27
24
## Configuration parameters
28
25
29
-
| Name | Type | Default value | Possible values | Description |
0 commit comments