Guest User

Zane - Databases and Jails

a guest
Feb 15th, 2017
178
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Allan & Kris,
  2.  
  3. Long time listener, first time caller.
  4.  
  5. I’m a developer and after much consternation I’ve been migrating my server infrastructure on Digital Ocean from Ubuntu 14.04 to FreeBSD 11. (A test run of my existing configs on Ubuntu 16.04 went horribly wrong)
  6.  
  7. It was a smooth transition from 3 Ubuntu rigs over to 1 FreeBSD rig with separate jails. I love how logically everything is laid out on FreeBSD. I never could have imagined tools as nice as pf, pkg, and ezjail.
  8.  
  9. I am very greatful to have your show as education and entertainment throughout the process of migrating.
  10.  
  11. - - - - -
  12.  
  13. Now on to my question,
  14.  
  15. The one pain point I had was moving a RubyOnRails application that communicated with a Postgres Database. Moving the Rails app was fine but some mailing lists and forums described horror stories when running Postgres in a jail.
  16.  
  17. I'd like to have the Rails app and Postgres running in separate jails, but I didn’t want to risk the hassle of data corruption.
  18.  
  19. I ended up migrating to MySQL running in a Jail, and so far that's been fine.
  20.  
  21. The most recent tutorials I could find suggested enabling SysV IPC for jails on the host machine for Postgres, but after watching Bryan Cantrill’s talk on Jails and Solaris Zones at PapersWeLove I was scared away from enabling raw sockets or SysV IPC for jails.
  22.  
  23. For future reference, Can you safely run the most recent version of Postgres in a FreeBSD 11 jail without SysV IPC or raw sockets enabled?
  24.  
  25. Thank you for everything!
  26.  
  27. - Zane
RAW Paste Data Copied