GithubHelp home page GithubHelp logo

Comments (4)

den-crane avatar den-crane commented on June 29, 2024 1

how many memory will be enough for our data size?

Maybe 8G maybe 128G. You should test.

from clickhouse.

den-crane avatar den-crane commented on June 29, 2024

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.

stevelukis avatar stevelukis commented on June 29, 2024

@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.

alexey-milovidov avatar alexey-milovidov commented on June 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.