I am running a few jails via ezjail. Nginx and pf on the main host take care of routing incoming requests to the appropriate jail.
Each jail needs to run different instances of the same service - Apache and MySQL.
Please help me get the set up right for doing this^^.
As far as I understand, since jails share the same network stack as the host, so all the mysql instances infact depend on the same port. Is this a problem? Would there be a tangible benefit to running each mysql instance on a different port number?
When I check the output of
What else should I take care of when doing this - running the same service in different jails?
Each jail needs to run different instances of the same service - Apache and MySQL.
Please help me get the set up right for doing this^^.
As far as I understand, since jails share the same network stack as the host, so all the mysql instances infact depend on the same port. Is this a problem? Would there be a tangible benefit to running each mysql instance on a different port number?
When I check the output of
top
each mysqld instance seems to have the exact same amount of memory consumption. Why/how is that - is the mysql memory somehow shared? Would there be a benefit to restricting the amount of memory each jail can consume? What else should I take care of when doing this - running the same service in different jails?