Git Product home page Git Product logo

Comments (8)

ukutaht avatar ukutaht commented on August 16, 2024 4

Clickhouse reccommends at least 32gb of memory. It works with less memory but it's not designed for it.

For reference, I have an instance running since October with 1vCPU and 1GB RAM and it's chugging along just fine. It's possible that it won't work forever, at some point Clickhouse might compress data into 'parts' that are bigger than 1GB and they won't fit into memory anymore. At that point you would need to give it more memory. This just happened on our production db server actually because we were under the reccommended memory limit.

We are thinking about ways to make Plausible more streamlined for small instance types. It's likely the next release in the summer will be less resource hungry,

from docs.

MaybeThisIsRu avatar MaybeThisIsRu commented on August 16, 2024 4

Clickhouse reccommends at least 32gb of memory.

Wow! That's... a lot.

For reference, I have an instance running since October with 1vCPU and 1GB RAM and it's chugging along just fine. It's possible that it won't work forever, at some point Clickhouse might compress data into 'parts' that are bigger than 1GB and they won't fit into memory anymore. At that point you would need to give it more memory. This just happened on our production db server actually because we were under the reccommended memory limit.

Thanks for this info - at least we have a starting point to reference. 🙂

We are thinking about ways to make Plausible more streamlined for small instance types. It's likely the next release in the summer will be less resource hungry,

That would be amazing! 👍🏼

from docs.

ukutaht avatar ukutaht commented on August 16, 2024 2

The 32gb limit was on their docs page when I made the previous comment about it. The Clickhouse team has done a lot of work on it recently. So if you pick a newer build it will handle low memory environments much better.

4GB sounds right

from docs.

ukutaht avatar ukutaht commented on August 16, 2024 1

One idea is to store stats in postgres since it has to be installed for user data anyways. It has extensions like timescale which should make time-series data fairly efficient to work with.

I will have to evaluate if we can replicate all features in postgres and also how much extra work it will be to manage two database adapters going forward.

from docs.

binaryfire avatar binaryfire commented on August 16, 2024

@ukutaht +1 on this, thank you! Making it less resource hungry for smaller VPSs would be great

from docs.

binaryfire avatar binaryfire commented on August 16, 2024

@ukutaht TimescaleDB would be an excellent choice. At my work, we've just switch our Zabbix instance from MySQL to Postgres/Timescale and it's performing very well. Scraping telemetry from over 100 nodes on a pretty small VPS.

Another thing that Postgres would bring to the table is easier deletion / updating of data. So implementing a retention/auto culling system for old data would be simple. For example something like Matomo's: https://matomo.org/faq/troubleshooting/faq_42/

I think this will be really important in the long run. It's still early days for Plausible but once data starts building up, we're going to need a way of keeping fewer aggregated data points for stale data. I imagine that would save you guys a bundle in storage costs for you hosted platform too :)

And yeah, like you said, you're already running Postgres for user data so it'd be one less service to run.

PS. Not sure if this would be of use? It's MySQL, but could still help get things started: https://github.com/oddconcepts/plausible-mysql

from docs.

IanCal avatar IanCal commented on August 16, 2024

Is there a source for the 32GB CH requirement? Clickhouse themselves recommend a minimum of 4, but it can run with less. https://clickhouse.com/docs/en/operations/requirements/

from docs.

metmarkosaric avatar metmarkosaric commented on August 16, 2024

closing this as i've added a note about minimal hardware requirements now. 4gb as mentioned above and we recommend you test and experiment with it on your own instance as needs will vary depending on how large your site is

from docs.

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.