title: Multiple redmine instances best practices
body: <p>I'm studying the best way to have multiple redmine instances in the same server (basically I need a database for each redmine group).</p>
  
  <p>Until now I have 2 options:</p>
  
  <ol>
  <li>Deploy a redmine instance for each group</li>
  <li>Deploy one redmine instance with multiple database</li>
  </ol>
  
  <p>I really don't know what is the best practice in this situation, I've seen some people doing this in both ways.</p>
  
  <p>I've tested the deployment of multiple redmines (3 instances) with nginx and passenger. It worked well but I think with a lot of instances it may not be feasible. Each app needs around 100mb of RAM, and with the increasing of requests it tends to allocate more processes to the app. This scenario seems bad if we had a lot of instances.</p>
  
  <p>The option 2 seems reasonable, I think I can implement that with rails environments. But I think that there are some security problems related with sessions (I think a user of site A is allowed to make actions on site B after an authentication in A).</p>
  
  <p>There are any good practice for this situation? What's the best practice to take in this situation?</p>
  
  <p>Other requirement related with this is: we must be able to create or shut down a redmine instance without interrupt the others (e.g. we should avoid server restarts..).</p>
  
  <p>Thanks for any advice and sorry for my english!</p>
  
  <p>Edit:</p>
  
  <p>My solution:
  I used a redmine instance for each group. I used nginx+unicorn to manage each instance independently (because passenger didn't allow me to manage each instance independently).</p>