Hi,
Is it mandatory that we should have 2GB of Ram for Discourse. I am planning to use discourse for one of my forum.
Please help me.
Thanks
Hi,
Is it mandatory that we should have 2GB of Ram for Discourse. I am planning to use discourse for one of my forum.
Please help me.
Thanks
You donāt need 2 GB. Where did you see that?
The minimum requirement is 1 GB as stated in http://www.discourse.org/faq and the setup document on GitHub.
1GB also pretty highā¦how about 512 MBā¦I have a server with 512 MBā¦Can I go ahead and install discourseā¦
No, 1GB is the minimum for a functional site. You can use 512mb for single user testing, it will sort of work.
But a live public Discourse site on 512mb will be quite painful for everyone who tries to use it.
Depends on the number of users and requests I think. I run a small private instance with some old friends of mine. I have reduced the unicorn workers and the sidekiq concurrency. It works really well with a small amount of RAM.
Out of curiosity, is it known what components of discourse are the most resource hungry?
How much is a small amount?
246 MB (unicorn) + 317 MB (sidekiq) = 563 MB
But donāt forget you need redis and a database server as well.
Mine is running on the lowest tier VPS that Vultr.com offers, with 768MB of RAM + a swap file. It runs fine for the low traffic I have at the moment. In the future hopefully it will pick up a bit more and Iāll upgrade my RAM.
I have to say, there was a lot ofā¦ shock? from the phpList techies when we saw what the server requirements were. It was considered really quite extraordinary.
Yeah, PHP is really old technology, the COBOL of its time.
I love this - ahh of all the programming languages Iāve worked with.
PHP first appeared in the same year as Ruby - 1995 - 20 years ago!!
Yeah COBOL - 1959 - 56 years ago.
To think of all those new-age programmers that will never care about programming in Assembly, dBase or any languages Iāve had to grin and bear - lucky gits!
Right, joking aside though, I have had several people tell me that they find the system requirements extreme, and that ruby is a mental language to compose a web app in. No idea myself, and donāt care, I donāt have to pay for the server space so I just take the great features and enjoy my job! But I am intrigued as to what is going on hereā¦ hosting discourse is by far the most expensive part of our community infrastructure I am told.
They just came of age at very different times.
PHP happened around the time 128mb of memory was considered reasonable for a server, and it was designed to work on the lowest-spec boxes out there as a simple āPersonal Home Pageā, hence āPHPā. It wasnāt even a programming language, really. A lot of it (some say all of it) was really quite accidental. But always designed to work on the lowest spec boxes out there due to its simple roots and was in wide use in the USA and Europe even in 1999.
Ruby was more of a programmersā programming language, designed to fold in all the best aspects of existing languages like Perl, Python, Lisp, etc. It was viewed as wildly experimental until around 2004 when it finally became popular in the US. So it demands more resources as it is more forward thinking. Ruby itself just reached version 2.0 not that long ago, for example.
The minimum spec for a Discourse site is 1GB RAM, dual core VPS, which is $10/month $5/month on Digital Ocean. You can run a good sized forum on that.
You could probably run a similar PHP based forum for $2-3/month on ultra low cost shared tenant hosting.
Whether those are onerous numbers depends on your budget and needs, I suppose ā if you are in the third world it would be tough to run Discourse.
Unless your only presence is the Discourse site, or your server is radically over-spec (or a dedicated box?) thereās something up here. Weāre not primarily a community (not yet, at least) but Discourse equates to 8% of our monthly operational costs.
This whole pricing thing needs contextā¦
A $20 monthly charge for 2GB server costs is not expensive, itās less than the price of 6 Medium Latteās at Starbucks in the US or UK.
Only need 1GB great, thatās 3 Medium Latteās you are missing out on.
Personally I donāt go in for these kind of coffees, but I do know people who drink a minimum of 1 every working day, thatās Ā£52 a month (~$81 USD).
And thatās if you are a single person in a company - how many expensive coffees do you think are purchased per month from the people that will use your community / forum / discourse install?
Ask them to donate the price of a coffee.
Depends a lot on your infrastructure too.
I have a small server farm in my company (7 servers today) and we already have a pretty good PostgreSQL machine, so I told Discourse to use it. Thatās pretty good, and if you consider that PostgreSQL is the go-to SGBD in most open-source stacks this will happen a lot. And we reuse a 12GB 12CPUs server so thats pretty fast .
Redis is also a default in-memory stuff, but since we doesnāt got a dedicated machine for it yet itās togheter with Discourse on a pretty standard Ubuntu VM.
We can host a lot of small apps with it, sinatra cruds, go apps, and re-use the nginx to proxy pass to other apps.
Most people coming to Discourse probably already have hosting of some type, so itās going to be disappointing for them to learn that they need additional hosting. The technical aspect is also daunting - Iām fairly tech savvy but Docker and Ruby are new to me.
Thereās also the issue of getting the forum to be self-sufficient from a financial aspect. From my reading here, Iām still not sure whether I can get Adsense blocks to update (or even show) on subsequent page views b/c of the way Discourse refreshes in place (without using DFP):
17 posts were split to a new topic: Why does my low activity install need 2GB RAM?
A post was merged into an existing topic: Why does my low activity install need 2GB RAM?