Comments (4)
how many memory will be enough for our data size?
Maybe 8G maybe 128G. You should test.
from clickhouse.
The max_server_memory_usage_to_ram_ratio is set to 0.4.
Why ?
8GB * 0.4 = 3.2 GB -- you allowed Clickhouse to use only 3.2GB. Mark cache size by default is 5GB.
Given our current setup and data size, what would be a good configuration for a low memory machine? If an upgrade is needed, how much memory would be required to handle our current data size?
It makes no sense since you don't allow clickhouse to use 60% of RAM.
from clickhouse.
@den-crane Because we want to leave enough memory for our web server.
If we were to move our ClickHouse server to a separate machine and restore max_server_memory_usage_to_ram_ratio to default , how many memory will be enough for our data size?
from clickhouse.
Lower the size of the mark cache in the config.xml. It can be set as low as 500 MB, but it cannot be set to zero.
Lower the number of query processing threads down to 1.
Lower the max_block_size to 8192. Values as low as 1024 can still be practical.
Lower max_download_threads
to 1.
Set input_format_parallel_parsing
and output_format_parallel_formatting
to 0.
To flush the memory that is cached by the memory allocator, you can run the
SYSTEM JEMALLOC PURGE
command.
It is not recommended to use S3 or Kafka integrations on low-memory machines because they require a lot of memory for buffers.
from clickhouse.
Related Issues (20)
- Alias column in subquery for `IN` is not expanded before skip index analysis
- Improve the performance of `rb_contain` of 32-bit Bitmap
- OOM are prone to occur in window functions HOT 1
- The Recursive CTEs for generating Fibonacci Sequence produce wrong rows after n > 10. HOT 1
- There is a bug in decimal data comparison HOT 2
- Decimal
- Code: 241. DB::Exception: Memory limit (total) exceeded
- Code: 241. DB::Exception: Memory limit (total) exceeded HOT 1
- I need an unexpected set of privileges when inserting into the first source table in cascading materialized view HOT 1
- Unable to restore backups of tables with Object('json') column HOT 2
- Flaky / stuck: 02864_statistics_uniq HOT 1
- Wrong downcast from 'const DB::ColumnVector<UInt64>' to 'DB::ColumnLowCardinality' HOT 2
- Unexpected S3 reconciliation after a minor upgrade is causing high outgoing bandwidth usage, resource exhaustion HOT 2
- Optimize injective functions with several arguments inside of Uniq functions
- Apply LIMIT in GROUP BY
- S3Queue Log Status Ignores Failed Downstream Materialized Views
- min_bytes_to_use_direct_io > 0 can lead to "Cannot read all array values" or even segfault HOT 5
- A new function `sparseGrams`
- `clickhouse-local` should have `max_memory_usage` by default
- If the configuration file is not `.xml`, `.yml` or `.yaml`, autodetect its format.
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 clickhouse.