On 06/02/2019 12:16, Andrey V. Elsukov wrote:
Hi,

this doesn't look very useful.
Do you have some specificity with this host except carp? Some
modifications to kernel config, lagg, jails, etc.

No, none of those. Its a supermicro motherboard, runs FreeBSD
GENERIC and mysql+redis on top, thats it. The only oddity is
carp (used to fail over the redis). but the panic happens when
I disable carp and have removed all the ports too. My only customisation to the build is to disable sendmail and lpr.

We do use geli for the dirves, and load aesni as a module as well to speed that up.

loader.conf below:

        kern.geom.label.disk_ident.enable=0
        kern.geom.label.gptid.enable=0

        ahci_load="YES"
        console="comconsole"

        aesni_load="YES"
        cryptodev_load="YES"
        geom_eli_load="YES"
        carp_load="YES"

        zfs_load="YES"
        vfs.zfs.arc_max="1G"
        vfs.zfs.prefetch_disable="1"
        vfs.zfs.txg.timeout="5"
        vfs.zfs.vdev.cache.size="10M"
        vfs.zfs.vdev.cache.max="10M"

rc.conf below

        geli_enable="YES"
        geli_autodetach="NO"
        geli_devices="ada0p4 ada1p4"
        
        hostname="serpentine-passive.telehouse-internal.ingresso.co.uk"
        
        ifconfig_igb0="inet 10.32.10.4/16"
        ifconfig_igb0_ipv6="inet6 2a02:1658:1:2:e550::4/64"
        ifconfig_igb0_alias0="inet 10.32.10.8/16 vhid 80 advskew 160 pass 
redacted"
        
        defaultrouter="10.32.10.6"
        ipv6_defaultrouter="2a02:1658:1:2:e550::6"
        
        ifconfig_igb1="down"
        
        pf_enable="NO"
        pf_rules="/usr/local/etc/pf.conf"
        
        redis_enable="YES"
        stunnel_enable="YES"
        
        mysql_enable="YES"
        mysql_dbdir="/usr/home/mysql/data"
        
        tsw_redis_capture_enable="YES"
        tsw_redis_capture_if="igb0"
        
        datadog_enable="YES"
        datadog_user="root"
        datadog_chdir="/usr/local/datadog"
        
        sshd_enable="YES"
        named_enable="YES"
        zfs_enable="YES"
        ntpd_enable="YES"
        
        syslogd_enable="NO"
        syslog_ng_enable="YES"
        
        exim_enable="YES"
        sendmail_enable="NO"
        sendmail_submit_enable="NO"
        sendmail_outbound_enable="NO"
        sendmail_msp_queue_enable="NO"
        
        nfs_server_enable="NO"
        nfs_client_enable="YES"
        nfsv4_server_enable="NO"
        nfsuserd_enable="YES"
        rpcbind_enable="YES"
        rpc_lockd_enable="YES"
        rpc_lockd_flags="-p 819"
        rpc_statd_enable="YES"
        rpc_statd_flags="-p 823"
        mountd_enable="NO"
        
        fluentd_enable="YES"

The tsw_redis_capture script just set the carp to MASTER if redis is enabled - means if the machine boots without redis running then carp wont grap the address anyway.

_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to