Comments (8)
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.
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.
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.
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.
@ukutaht +1 on this, thank you! Making it less resource hungry for smaller VPSs would be great
from docs.
@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.
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.
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)
- Possible to replicate the pricing slider on the "Choose the right subscription tier" docs page? HOT 1
- What's the API to list sites HOT 2
- Docker Secrets support is undocumented HOT 1
- Update instruction removes all collected data HOT 3
- New session HOT 1
- Plausible container is constantly restarting HOT 1
- Auto Height for iframe embed? HOT 1
- Historical data retention?
- Spektrix ecommerce tracking on Plausible Custom Event Sales
- Plausible with Node.js HOT 1
- Question on alternative to proxy approach for JS script HOT 2
- Docker plausible connect with external postgres database HOT 1
- Viewing all custom properties of events while filtering on one custom property HOT 1
- [Question] Reverse proxy issues HOT 1
- Comparsion is only in the graph, missing from all boxes below HOT 1
- self host invite_only - adding a viewer still allows a viewer to create a new website +Add Website HOT 1
- Custom events without having to manually add in console HOT 1
- Modsecurity trigger on text/plain please add description to whitelist Plausible in modsecurity. HOT 1
- Manual width mode does not work HOT 3
- STM32F411RETx_FLASH.ld.txt 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 docs.