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: README.md
+22-10Lines changed: 22 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,14 @@ Application Options:
35
35
--scheme= the listeners to enable, this can be repeated and defaults to the schemes in the swagger spec
36
36
--cleanup-timeout= grace period for which to wait before killing idle connections (default: 10s)
37
37
--graceful-timeout= grace period for which to wait before shutting down the server (default: 15s)
38
-
--max-header-size= controls the maximum number of bytes the server will read parsing the request header's keys and values, including the request line. It does not limit the size
39
-
of the request body. (default: 1MiB)
38
+
--max-header-size= controls the maximum number of bytes the server will read parsing the request header's keys and values,
39
+
including the request line. It does not limit the size of the request body. (default: 1MiB)
40
40
--socket-path= the unix socket to listen on (default: /var/run/data-plane.sock)
41
41
--host= the IP to listen on (default: localhost) [$HOST]
42
42
--port= the port to listen on for insecure connections, defaults to a random value [$PORT]
43
43
--listen-limit= limit the number of outstanding requests
44
-
--keep-alive= sets the TCP keep-alive timeouts on accepted connections. It prunes dead TCP connections ( e.g. closing laptop mid-download) (default: 3m)
44
+
--keep-alive= sets the TCP keep-alive timeouts on accepted connections. It prunes dead TCP connections ( e.g. closing
45
+
laptop mid-download) (default: 3m)
45
46
--read-timeout= maximum duration before timing out read of the request (default: 30s)
46
47
--write-timeout= maximum duration before timing out write of the response (default: 60s)
47
48
--tls-host= the IP to listen on for tls, when not specified it's the same as --host [$TLS_HOST]
@@ -50,7 +51,8 @@ Application Options:
50
51
--tls-key= the private key to use for secure connections [$TLS_PRIVATE_KEY]
51
52
--tls-ca= the certificate authority file to be used with mutual tls auth [$TLS_CA_CERTIFICATE]
52
53
--tls-listen-limit= limit the number of outstanding requests
53
-
--tls-keep-alive= sets the TCP keep-alive timeouts on accepted connections. It prunes dead TCP connections ( e.g. closing laptop mid-download)
54
+
--tls-keep-alive= sets the TCP keep-alive timeouts on accepted connections. It prunes dead TCP connections ( e.g. closing
55
+
laptop mid-download)
54
56
--tls-read-timeout= maximum duration before timing out read of the request
55
57
--tls-write-timeout= maximum duration before timing out write of the response
56
58
@@ -63,16 +65,24 @@ HAProxy options:
63
65
-s, --restart-cmd= Restart command
64
66
--reload-retention= Reload retention in days, every older reload id will be deleted (default: 1)
65
67
-t, --transaction-dir= Path to the transaction directory (default: /tmp/haproxy)
66
-
--max-open-transactions= Limit for active transaction in pending state (default: 20)
67
-
-n, --backups-number=Number of backup configuration files you want to keep, stored in the config dir with version number suffix (default: 0)
68
+
-n, --backups-number= Number of backup configuration files you want to keep, stored in the config dir with version number suffix
69
+
(default: 0)
68
70
-m, --master-runtime= Path to the master Runtime API socket
69
71
-i, --show-system-info Show system info on info endpoint
70
72
-f= Path to the dataplane configuration file
71
-
--userlist-file= Path to the dataplaneapi userlist file. By default userlist is read from HAProxy conf. When specified userlist would be read from this file
72
-
--fid= Path to file that will dataplaneapi use to write its id (not a pid) that was given to him after joining a cluster
73
-
-p, --maps-dir= Path to maps directory (default: /etc/haproxy/maps)
73
+
--userlist-file= Path to the dataplaneapi userlist file. By default userlist is read from HAProxy conf. When specified
74
+
userlist would be read from this file
75
+
--fid= Path to file that will dataplaneapi use to write its id (not a pid) that was given to him after joining a
76
+
cluster
77
+
-p, --maps-dir= Path to directory of map files managed by dataplane (default: /etc/haproxy/maps)
78
+
--ssl-certs-dir= Path to SSL certificates directory (default: /etc/haproxy/ssl)
74
79
--update-map-files Flag used for syncing map files with runtime maps values
75
80
--update-map-files-period= Elapsed time in seconds between two maps syncing operations (default: 10)
81
+
--cluster-tls-dir= Path where cluster tls certificates will be stored. Defaults to same directory as dataplane configuration file
82
+
--spoe-dir= Path to SPOE directory. (default: /etc/haproxy/spoe)
83
+
--spoe-transaction-dir= Path to the SPOE transaction directory (default: /tmp/spoe-haproxy)
84
+
--master-worker-mode Flag to enable helpers when running within HAProxy
85
+
--max-open-transactions= Limit for active transaction in pending state (default: 20)
76
86
77
87
Logging options:
78
88
--log-to=[stdout|file] Log target, can be stdout or file (default: stdout)
@@ -89,6 +99,7 @@ Show version:
89
99
90
100
Help Options:
91
101
-h, --help Show this help message
102
+
92
103
```
93
104
94
105
## Example
@@ -99,6 +110,7 @@ You can test it by simply running:
Dataplaneapi will require write permissions to the haproxy configuration file and the directories containing additional managed files (maps, ssl, spoe). The default locations can be overriden with command-line options.
102
114
Test it out with curl, note that you need user/pass combination setup in HAProxy userlist in haproxy configuration (in above example: /etc/haproxy/haproxy.cfg, userlist controller):
103
115
104
116
```
@@ -109,7 +121,7 @@ If you are using secure passwords, supported algorithms are: md5, sha-256 and sh
109
121
110
122
## Using the Data Plane API
111
123
112
-
For more docs how to use the Data Plane API check our [documentation](https://www.haproxy.com/documentation/hapee/1-9r1/configuration/dataplaneapi/)
124
+
For more docs how to use the Data Plane API check our [documentation](https://www.haproxy.com/documentation/hapee/2-2r1/reference/dataplaneapi/)
113
125
114
126
Alternatively, dataplaneapi serves its own interactive documentation relevant for the current build on the `/v2/docs` uri. Just point your browser to the host/port dataplane was started with (i.e. `http://localhost:5555/v2/docs`)
0 commit comments