Comments (2)
Since 2.9 you may use core.get_var()
method to fetch variables from proc.*
scope: https://www.arpalert.org/src/haproxy-lua-api/3.0/index.html#core.get_var
For now there is no core.set_var()
so you cannot set proc.*
variables outside of TXN context, see #2212
However you may set global Lua variables within your script and register custom Lua fetches to return desired values and use the fetch results from haproxy configuration. See https://www.arpalert.org/src/haproxy-lua-api/3.0/index.html#core.register_fetches
In the end there doesn't seem to be an actual bug or issue on haproxy side, thus if you need more assistance to solve your use-case feel to ask for help on the community forum (https://discourse.haproxy.org/) or on the mailing list (https://www.haproxy.org/#tact), some users probably faced similar challenges and may be able to help you.
Hope this helps
from haproxy.
Can we close the issue or should we change it to a feature request ?
from haproxy.
Related Issues (20)
- Can not set IP for backend server by Runtime API HOT 2
- 3.0-dev7: multiple crashes HOT 14
- Haproxy return empty response from server when headers are modified for GET request HOT 9
- server-state-file causing SEGV in 3.0-c0ee2d7 HOT 9
- "internal error" stream state when using gzip compression on 3.0-dev7 HOT 9
- src/ssl_ckch.c: dead code suspected by coverity HOT 1
- Enhanced observability for TLS ClientHello: ciphers, supported groups, key shares and sigalgs HOT 2
- if there are any issues with the code here? HOT 4
- OCSP stapling support with WolfSSL HOT 2
- Unexpected and random content-length in HTTP/1.0 responses with filter bwlim-out and 3.0-dev7-50d8c1-78 HOT 13
- infinite loop when shutting down HOT 7
- Support rewriting username in MQTTS CONNECT HOT 1
- Additional websocket connections cause exponential increase in CPU usage HOT 3
- cannot build on MacOS-14 Silicon HOT 13
- Lua ACL does not work HOT 3
- x86 build failed
- 3.0-dev8 runtime API "clear map" not clearing the whole map HOT 5
- quic http/3 limited-quic version 2.9.7 HOT 2
- Optimised code in h1.c doesn't do what it says it does HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haproxy.