-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use large dynamic data in wasm proxy rust filter? #37992
Comments
You can try using universal |
Do you know if there is a limit of the tree nodes? |
Is it |
No. The routing will happen when I check for a header key: "X-Client-Id: 123", then I match against a key paired list or hashmap. The key is the client id and if the match successfully happens then go to a specific cluster endpoint. So basically and endpoint can serve a list/hashmap of clients. |
There is no limit, other than resources available to Envoy process. |
Title: How to use large dynamic data in wasm proxy rust filter?
Description:
I have develop several filters with wasm proxy using rust and now there is a requirement I'm not sure how to tackle.
Scenario:
I have a large file with a list of clients more than 1000000+ registers and I need to route to specific endpoints based on a header request header. Ex: X-Client-Id: 123456
Have have some options:
I also noticed that if I keep sending snapshots to envoy they keep increasing the memory, I looked into the os process and if the envoy container keeps receiving snapshots it puts all in memory without any recycling.
IMPORTANT POINT:
Envoy will run in kubernetes, when the pod starts up it should have this data ready to be used and ocasionally new updates in this list will happen and I need to update the "cache".
Is there a way anyone can recommend me to go? I 'm kinda lost at this point.
Thanks in advance for your help and if you need more details please comment! =D
The text was updated successfully, but these errors were encountered: