# Ansible-discourse: Install Discourse with Ansible (without Docker)

**URL:** https://meta.discourse.org/t/ansible-discourse-install-discourse-with-ansible-without-docker/31215
**Category:** Self-hosting
**Tags:** unsupported-install, hosting
**Created:** [2015年七月20日 16:38 UTC](https://meta.discourse.org/t/ansible-discourse-install-discourse-with-ansible-without-docker/31215 "2015-07-20T16:38:41Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![jamielinux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamielinux/32/116093_2.png) [@jamielinux](https://meta.discourse.org/u/jamielinux)
#### Post date: [2015年七月21日 10:28 UTC](https://meta.discourse.org/t/ansible-discourse-install-discourse-with-ansible-without-docker/31215/6 "2015-07-21T10:28:53Z")

</div>

> [@sam](#):
>
> There is tons of tuning in the Docker install.

Ah ok, when codinghorror said “Linux tuning” I assumed he meant Linux kernel tuning 😌 . I agree there is plenty of tuning of other components and my aim was to replicate all of this tuning. (Though in fact, `ansible-discourse` does some kernel tuning too.)

> [@sam](#):
>
> From a very particular way of running unicorn (so it forks out sidekiq) to jemalloc, out-of-band gc and gc tuning.

`ansible-discourse` should also be doing all of these things. Tuning is done for Ruby/Unicorn (environment variables, jemalloc, workers etc), Redis (kernel tuning), PostgreSQL (shared\_buffers, work\_mem etc) and NGINX (workers, ratelimiting, spdy etc).

> [@sam](#):
>
> The Ruby 2.2 image we have (which is enabled on meta) is a custom build of Ruby with method cache patches. Unfortunately, even patched we are struggling to meet the same memory and cpu perf we get on 2.0, hence it is not yet default.

I’ve defaulted to Ruby 2.2 as I was under the impression everything was fine [`[1]`](https://meta.discourse.org/t/ruby-2-2-first-look/25275/5) [`[2]`](https://meta.discourse.org/t/ruby-2-2-first-look/25275/10). Perhaps I’ll drop back to Ruby 2.0.

---

_[View the full topic](https://meta.discourse.org/t/ansible-discourse-install-discourse-with-ansible-without-docker/31215)._
