About postgres

16 views
Skip to first unread message

Jose J.

unread,
Jan 2, 2019, 10:01:42 AM1/2/19
to iocage
starting with jails and iocage

I always read that to use postgres inside jails I must set allow_sysvipc=1

The doc says that from FBSD11 you should use sysvmsg, sysvsem, and sysvshm instead.

Set whether a process in the jail has access to System V IPC primitives. Prior to FreeBSD 11.0, System V primitives
share a single namespace across the host and jail environments, meaning that processes within a jail would be able to communicate with, and potentially interfere with, processes outside of the jail, or in other jails. In FreeBSD 11.0  and later, this setting is deprecated. Use sysvmsg, sysvsem, and sysvshm instead.


for sysvmsg, sysvsem, and sysvshm, although it says that the default value is disable, but my jails were created with value=new

sysvmsg:new
sysvsem:new
sysvshm:new

taking into account that I want several jails with postgres, what value should I use for these parameters? new?

Best regards
Jose

Brandon Schneider

unread,
Jan 2, 2019, 1:47:33 PM1/2/19
to Jose J., iocage
IIRC You will want to set those three to inherit to replicate the old behavior.

I don't personally use postgres, but I know Dan Langille is a big proponent of it, perhaps shoot him a tweet and see what he's found.
-Brandon


--
You received this message because you are subscribed to the Google Groups "iocage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iocage+un...@googlegroups.com.
To post to this group, send email to ioc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iocage/607eb3aa-35ef-42af-b897-c9a243311e28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jose J.

unread,
Jan 4, 2019, 7:51:32 AM1/4/19
to iocage
Thanks for your reply
Jose
Reply all
Reply to author
Forward
0 new messages