Hello community how many resources i need for NodeBB
-
If anything I'd trade half the ram for an extra cpu core.
-
Nodebb does not require a lot of RAM resources, but mongodb does. It is better to use postgresql.
-
@psytonik said in Hello community how many resources i need for NodeBB:
Hello to all i want to get some VPS with config
1 Core CPU
2048 Mb RAM
20 Gb SSDcan you help me with this.
may i need 2 cores or 1 core enough ?
forum i need +- for 100 usersThis should handle a few hundred users nicely, depending on how many jack in simultaneously.
@volanar said in Hello community how many resources i need for NodeBB:
Nodebb does not require a lot of RAM resources, but mongodb does. It is better to use postgresql.
Have you actually tested PostgreSQL vs. MongoDB?
-
@gotwf Yes, I tested both options for 3 months. Postgresql takes up less disk space and requires less RAM. The difference is 2 times. What confirms this article https://www.enterprisedb.com/news/new-benchmarks-show-postgres-dominating-mongodb-varied-workloads
-
@volanar Interesting. This is not congruent with my testing. I had both PostgreSQL and MongoDB on dedicated vm's and NodeBB on another. Transaction time was quite slower PostgreSQL side. MongoDB caching comes to pay dividends in spades here?
I am a proponent/advocate PostgreSQL but decided to stick with MongoDB for my stuff: "If it ain't broke, don't fix it!".
MongoDB is easier and more flexible cluster/sharding side as well. Anytime you embark upon such madness you add complexity of scale exponentially but MongoDB handles such reasonably well (although by this scale you probably want/need a dedicated mongodb admin keeping their thumb on the pulse).
Caveat emptor: My testing was against out of the box configs, i.e. no db tuning.
-
@gotwf Is Postgresql slower than mongodb? It's impossible.
Horizontal scaling for 100 users? Postgresql is a very stable database and there is nothing to break there. By the way, postgresql scales perfectly horizontally, and with the release of new versions it is even better.
If it is not critical for you to use more disk space and RAM, then use mongodb. -
@volanar I delved into this a fair bit a few months back. Did not save my "data". Be all that as it may or may not be us going tit for tat does little to address the OP's primary concern:
@psytonik said in Hello community how many resources i need for NodeBB:
Hello to all i want to get some VPS with config
1 Core CPU
2048 Mb RAM
20 Gb SSD
can you help me with this.
may i need 2 cores or 1 core enough ?
forum i need +- for 100 usersTo whom I reiterate;
"Hell yeah, should run great sporting nodebb, mongo and nginx all under a single virtual roof. Rock on!"