Pinging hosts causes fog to freeze



  • 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



  • [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 :)


  • Senior Developer

    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.


  • Developer

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


  • Moderator

    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.


Log in to reply
 

445
Online

39174
Users

10821
Topics

102951
Posts

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