Comments (4)
hi there, this is a tricky issue. I don't really see a positive outcome here rather than using a rate limiter for your inserter and handle the back pressure at the data producer level.
Another option would be to add way more memory to your chproxy, or to bypass chproxy for data insertion or to make clickhosue faster 😅
No miracle would happen here.
from chproxy.
Yes, indeed a tricky issue. Rate limiting in front of chproxy is (much stricter) in place now. But still, imho is a program running into OOM a bug :) Just adding more resources will just move the point where the oom will happen. To solve this bug I think a completely different memory management would be needed, but yes, its not trivial as not all connection need the same amount of memory.
from chproxy.
Unfortunately, we (contentsquare) don't use chproxy to insert data. This feature has been done by the previous maintainers (Vertamedia) and we don't maintain it anymore.
If it was happening on select queries, we might do something (but from what I remember, the query results are either streamed or put in temporary files to avoid an OOM in such situation). But since it's about insert queries, feel free to make a PR to fix the issue. As Vianney said, it will be tricky to solve it, and you should use a rate limiter to make sure it can't happen, for example by using the max_concurrent_queries
parameter
from chproxy.
Related Issues (20)
- [Feature] db_index option to Redis cache configuration
- [Feature] better work with large query responses HOT 7
- timeout for user errors HOT 2
- 可以支持cpu和mem的metrics收集来做负载均衡吗?
- [BUG] Redis password gets exposed in info logs when redis username is empty HOT 1
- [QUESTION] Custom 401 error page?
- [Feature] <Allow overriding values of allowed parameters at runtime>
- [Feature] Change status code to concurrent query failed on cancelled requests HOT 3
- [Feature] Аdd a metric for clickhouse proxy responses HOT 2
- [QUESTION] may be a bug of proxied_response_duration_seconds metric HOT 1
- [QUESTION] why only one replica node in each shard have a high load? HOT 1
- [BUG] host header on requests to ClickHouse HOT 3
- [BUG] fix linter issues
- [Feature] Fallback/backup node
- [Feature] allow log_comment in query parameters
- [QUESTION] Availability of max_query_size Flag in Chproxy HOT 1
- killQuery needs luck with a TCP-balanced cluster
- why disable docker build for arm HOT 3
- [Feature] Weighted round robin load balancing HOT 1
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 chproxy.