dataplaneapi | HAProxy Data Plane API | Proxy library
kandi X-RAY | dataplaneapi Summary
kandi X-RAY | dataplaneapi Summary
HAProxy Data Plane API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dataplaneapi
dataplaneapi Key Features
dataplaneapi Examples and Code Snippets
Community Discussions
Trending Discussions on dataplaneapi
QUESTION
I am fiddling around with dataplaneapi which is a great addition. However, I cant find proper parameters for manipulating a http-request in my frontend. The rule needs to look like this:
...ANSWER
Answered 2021-Jan-18 at 08:07I asked the folks over at github and they delivered the answer:
curl --request POST \ --url 'http://127.0.0.1:5679/v2/services/haproxy/configuration/http_request_rules?parent_name=test_2&parent_type=frontend&version=61' \ --header 'Authorization: Basic YWRtaW46YWRtaW4=' \ --header 'Content-Type: application/json' \ --data '{ "cond": "if", "cond_test": "ACL_somename_de", "index": 0, "type": "replace-header", "hdr_format": "1595708099.pages.domain.de", "hdr_match": ".*", "hdr_name": "Host" }'
source: https://github.com/haproxytech/dataplaneapi/issues/149
QUESTION
The HAProxy Data Plane API is an executable (details on GitHub here) that runs alongside HAProxy and provides a REST API that can be used to configure HAProxy whilst it is running, therefore providing a control plane for HAProxy.
If multiple instances of HAProxy are being run, how does one ensure consistency of the configuration across all instances? i.e. if the configuration of one instance is modified via a REST call to the API, how can this change be communicated to all instances?
...ANSWER
Answered 2020-Mar-31 at 14:39The Data Plane API is a sidecar process that runs next to HAProxy and manages configuration for a single instance. It does not manage configuration of multiple instances. You would have to make changes to the Data Plane API installed on each cluster member. Thankfully, the Data Plane API supports transactions so you may apply changes in parallel and commit all instances at once should your changes work without exception!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dataplaneapi
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page