• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Pinging hosts causes fog to freeze

Scheduled Pinned Locked Moved
FOG Problems
4
5
1.9k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ?
    A Former User
    last edited by Apr 26, 2015, 6:53 PM

    When in the WebUI fog feels the need to ping every host registered within fog, this is no good because you cannot proceed to another page until it finishes pinging and when you have 10,000+ hosts registered in your fog server this takes a really long time to complete…thus making it impossible to deploy an image to a host until it finishes…is there a way to get rid of this or maybe make it optional to ping all hosts in a future update

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Apr 26, 2015, 7:56 PM

      If you look through the source (using grep recursively to look through the file contents) for the word “ping”, I bet you’ll find lots of matches.

      Probably best to search the web directory only.

      There’s likely a loop in the PHP code that handles this. You’d probably be able to just comment the ping part out, or the whole loop, depending on how it’s written.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • J
        jbsclm Developer
        last edited by Apr 26, 2015, 8:05 PM

        Have you tried unticking FOG_HOST_LOOKUP under Fog Configuration->Fog Settings-> General settings

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Apr 26, 2015, 10:01 PM

          This is a well known problem, and I’ve tried everything I can think of to make it an asynchronous method caller. The jQuery isn’t what’s holding it up directly, rather the php methods are naturally blocking which is what’s causing the issue. I don’t know what I can do to make it better, but I’ve tried. Maybe somebody else knows of a better method.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by Apr 27, 2015, 12:10 AM

            [quote=“Tom Elliott, post: 46238, member: 7271”]This is a well known problem, and I’ve tried everything I can think of to make it an asynchronous method caller. The jQuery isn’t what’s holding it up directly, rather the php methods are naturally blocking which is what’s causing the issue. I don’t know what I can do to make it better, but I’ve tried. Maybe somebody else knows of a better method.[/quote]

            Thanks! I appreciate your efforts, for now I have just remedied the issue with jbsclm`s solution. Yes hopefully some day somebody will have a better method 🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              1/5
              Last post

            215

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project