Hi being new to LXD, I have a few questions I need clarification on for my intended usage. I plan to setup Ubuntu 18.0.4 with LXD and create 2 LXD containers one for Ubuntu 18.0.4 LEMP stack and one for CentOS 7.5 Centmin Mod LEMP stack for intended purposes in benchmarking the performance between the 2 LXD container’s LEMP stacks.
1. system TCP/Kernel tuning /etc/sysctl.conf at LXD container and host level.
Where does /etc/sysctl.conf come into this setup ? LXD container’s inherit host level /etc/sysctl.conf settings ? or can each LXD container set it’s own /etc/sysctl.conf settings separate from host level ?
2. LXD container identification methods ?
My CentOS Centmin Mod LEMP stack project auto installer auto tunes a server environment based on server resources as well as virtualisation type detected i.e. kvm, xen and openvz and optimises accordingly. For OpenVZ detection, i script and check for /proc/user_beancounters. So with LXD containers, is there anything similar within the container to allow me to identify that the environment is LXD container based ?
3. Container CPU limits
I read about cpu limits at http://lxd.readthedocs.io/en/stable-3.0/containers/#cpu-limits. If I am benchmarking and comparing 2x LXD containers, should I be messing with CPU limits for better comparison or the default out of box ok ?
Any help in clarifying the above questions is very much appreciated