Climbing Server Load


  • Testers

    since updating to 2929 my server load has been steadily climbing throughout the day. I upgraded early yesterday and by this morning the system was unresponsive to tftp and web access and console access was slow. I rebooted and was back to normal but at this point after 6.5 hours up time server load average is 32 to 33 and pages are slow to respond in the web interface.


  • Senior Developer

    why would you have to restart mysql at all?


  • Testers

    15 hours uptime and server load is still below 2 looks like we have a winner I will try the presistant DB access hack next after the last step do i need to restart the DB again or only after step 3?
    [B]Persistent DB Connection[/B]

    • Use a [B]Persistent DB Connection[/B]. This uses the already established connection to get the data, rather than reopening the socket or TCP link

    • Open this file [B]/var/www/fog/lib/fog/Config.class.php[/B]

    • Go to line:
      define(‘DATABASE_HOST’, ‘localhost’);

    • Change to:
      define(‘DATABASE_HOST’, ‘p:127.0.0.1’);

    • Restart mysql:
      service mysql restart

    • Open this file [B]/opt/fog/.fogsettings[/B] (so updates/upgrades to overwrite the settings above)

    • Go to line:
      snmysqlhost="";

    • Change to:
      snmysqlhost=“p:127.0.0.1”;

    • If you DB is on another server, use p:[ipaddress of DB server].


  • Senior Developer

    Hey also try persistent db for more responsive GUI access


  • Testers

    I applied the cleanup edit and latest trunk 2933 and rebooted it seems stable I will keep an eye on it I did notice the bandwidth transmit is not showing anything but receive is any idea why it would stop tracking?


  • Developer

    I believe Junk is refering to the PHP Session. cleanup portions.
    http://fogproject.org/wiki/index.php/Fog_Tweaks#PHP_Session_Purging


  • Developer


  • Developer

    Latest svn version is 2933

    Please upgrade. Tom patched a few mistakes and this could be related.


  • Testers

    Running Ubuntu 12.04 lts
    SVN 2929

    fog install log follows
    …#######:. …,#,… .::##::.
    .:###### .:;####:…;#;…
    …##… …##;,;##::::.##…
    ,# …##…##:::## …::
    ## .::###,##. . ##.::#.:######::.
    …##:::###::…#. … .#…#. #…#:::.
    …:####:… …##…##::## … #
    # . …##:,;##;:::#: … ##…
    .# . .:;####;::::.##:::;#:…
    # …:;###…

    ###########################################

    FOG

    Free Computer Imaging Solution

    http://www.fogproject.org/

    Developers:

    Chuck Syperski

    Jian Zhang

    Peter Gilchrist

    Tom Elliott

    GNU GPL Version 3

    ###########################################

    Version: 1.3.0 Installer/Updater

    • Found FOG Settings from previous install at: /opt/fog/.fogsettings
    • Performing upgrade using these settings…

    Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.

    #####################################################################

    FOG now has everything it needs to setup your server, but please
    understand that this script will overwrite any setting you may
    have setup for services like DHCP, apache, pxe, tftp, and NFS.

    It is not recommended that you install this on a production system
    as this script modifies many of your system settings.

    This script should be run by the root user on Redhat or with sudo on Ubuntu.

    ** Notice ** Redhat users will need to disable SELinux and iptables in
    order to use FOG
    Please see our wiki for more information at http://www.fogproject.org/wiki

    Here are the settings FOG will use:
    Base Linux: Debian
    Detected Linux Distribution: Ubuntu
    Installation Type: Normal Server
    Server IP Address: 10.200.10.150
    DHCP router Address:
    DHCP DNS Address: 10.200.10.33
    Interface: bond0
    Using FOG DHCP: 0
    Internationalization: 1
    Image Storage Location: /images
    Donate: 0

         DHCP will NOT be setup but you must setup your
         current DHCP server to use FOG for PXE services.
    
         On a Linux DHCP server you must set:
             next-server
    
         On a Windows DHCP server you must set:
             option 066 & 067
    
           Option 066 is the IP of the FOG Server: (e.g. 10.200.10.150)
           Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe)
    

    Are you sure you wish to continue (Y/N)
    Installation Started…

    Installing required packages, if this fails
    make sure you have an active internet connection.

    • Preparing apt-get

    • Packages to be installed: apache2 php5 php5-json php5-gd php5-cli php5-mysql php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt language-pack-it language-pack-en language-pack-es language-pack-zh-hans

    • Skipping package: apache2 (Already installed)

    • Skipping package: php5 (Already installed)

    • Skipping package: php5-common (Already installed)

    • Skipping package: php5-gd (Already installed)

    • Skipping package: php5-cli (Already installed)

    • Skipping package: php5-mysql (Already installed)

    • Skipping package: php5-curl (Already installed)

    • Skipping package: mysql-server (Already installed)

    • Skipping package: mysql-client (Already installed)

    • Skipping package: tftpd-hpa (Already installed)

    • Skipping package: tftp-hpa (Already installed)

    • Skipping package: nfs-kernel-server (Already installed)

    • Skipping package: vsftpd (Already installed)

    • Skipping package: net-tools (Already installed)

    • Skipping package: wget (Already installed)

    • Skipping package: xinetd (Already installed)

    • Skipping package: sysv-rc-conf (Already installed)

    • Skipping package: tar (Already installed)

    • Skipping package: gzip (Already installed)

    • Skipping package: build-essential (Already installed)

    • Skipping package: cpp (Already installed)

    • Skipping package: gcc (Already installed)

    • Skipping package: g++ (Already installed)

    • Skipping package: m4 (Already installed)

    • Skipping package: htmldoc (Already installed)

    • Skipping package: lftp (Already installed)

    • Skipping package: openssh-server (Already installed)

    • Skipping package: php-gettext (Already installed)

    • Skipping package: php5-mcrypt (Already installed)

    • Skipping package: language-pack-it (Already installed)

    • Skipping package: language-pack-en (Already installed)

    • Skipping package: language-pack-es (Already installed)

    • Skipping package: language-pack-zh-hans (Already installed)

    Confirming package installation.

    • Checking package: apache2…OK
    • Checking package: php5…OK
    • Checking package: php5-json…OK
    • Checking package: php5-gd…OK
    • Checking package: php5-cli…OK
    • Checking package: php5-mysql…OK
    • Checking package: php5-curl…OK
    • Checking package: mysql-server…OK
    • Checking package: mysql-client…OK
    • Checking package: tftpd-hpa…OK
    • Checking package: tftp-hpa…OK
    • Checking package: nfs-kernel-server…OK
    • Checking package: vsftpd…OK
    • Checking package: net-tools…OK
    • Checking package: wget…OK
    • Checking package: xinetd…OK
    • Checking package: sysv-rc-conf…OK
    • Checking package: tar…OK
    • Checking package: gzip…OK
    • Checking package: build-essential…OK
    • Checking package: cpp…OK
    • Checking package: gcc…OK
    • Checking package: g++…OK
    • Checking package: m4…OK
    • Checking package: htmldoc…OK
    • Checking package: lftp…OK
    • Checking package: openssh-server…OK
    • Checking package: php-gettext…OK
    • Checking package: php5-mcrypt…OK
    • Checking package: language-pack-it…OK
    • Checking package: language-pack-en…OK
    • Checking package: language-pack-es…OK
    • Checking package: language-pack-zh-hans…OK

    Configuring services.

    • Setting up and starting MySql…OK

    • Backing up user reports…OK

    • Setting up and starting Apache Web Server…OK

    • Changing permissions on apache log files…OK

    • Downloading kernels and inits…OK

    • Copying back any custom hook files.

    • Copying back any custom report files.
      You still need to install/update your database schema.
      This can be done by opening a web browser and going to:

      http://10.200.10.150/fog/management

    Press http://10.200.10.150/fog/management

      Default User:
             Username: fog
             Password: password

  • Testers


Log in to reply
 

359
Online

38746
Users

10569
Topics

100052
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.