Skip to content

Commit dd04eb1

Browse files
committed
DOC: update README.md
1 parent 66859fe commit dd04eb1

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ Application Options:
3535
--scheme= the listeners to enable, this can be repeated and defaults to the schemes in the swagger spec
3636
--cleanup-timeout= grace period for which to wait before killing idle connections (default: 10s)
3737
--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)
4040
--socket-path= the unix socket to listen on (default: /var/run/data-plane.sock)
4141
--host= the IP to listen on (default: localhost) [$HOST]
4242
--port= the port to listen on for insecure connections, defaults to a random value [$PORT]
4343
--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)
4546
--read-timeout= maximum duration before timing out read of the request (default: 30s)
4647
--write-timeout= maximum duration before timing out write of the response (default: 60s)
4748
--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:
5051
--tls-key= the private key to use for secure connections [$TLS_PRIVATE_KEY]
5152
--tls-ca= the certificate authority file to be used with mutual tls auth [$TLS_CA_CERTIFICATE]
5253
--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)
5456
--tls-read-timeout= maximum duration before timing out read of the request
5557
--tls-write-timeout= maximum duration before timing out write of the response
5658
@@ -63,16 +65,24 @@ HAProxy options:
6365
-s, --restart-cmd= Restart command
6466
--reload-retention= Reload retention in days, every older reload id will be deleted (default: 1)
6567
-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)
6870
-m, --master-runtime= Path to the master Runtime API socket
6971
-i, --show-system-info Show system info on info endpoint
7072
-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)
7479
--update-map-files Flag used for syncing map files with runtime maps values
7580
--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)
7686
7787
Logging options:
7888
--log-to=[stdout|file] Log target, can be stdout or file (default: stdout)
@@ -89,6 +99,7 @@ Show version:
8999
90100
Help Options:
91101
-h, --help Show this help message
102+
92103
```
93104

94105
## Example
@@ -99,6 +110,7 @@ You can test it by simply running:
99110
./dataplaneapi --port 5555 -b /usr/sbin/haproxy -c /etc/haproxy/haproxy.cfg -d 5 -r "service haproxy reload" -s "service haproxy restart" -u dataplaneapi -t /tmp/haproxy
100111
```
101112

113+
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.
102114
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):
103115

104116
```
@@ -109,7 +121,7 @@ If you are using secure passwords, supported algorithms are: md5, sha-256 and sh
109121

110122
## Using the Data Plane API
111123

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/)
113125

114126
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`)
115127

0 commit comments

Comments
 (0)