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

    Page timeout when creating multicast task

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    7
    2.1k
    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.
    • dolfD
      dolf
      last edited by

      FOG version 8595
      Ubuntu 14.04
      Accessing FOG web interface from Google Chrome 51.0.2704.106 m

      When creating a multicast task using the web interface, the next page only loads after all of the PCs have turned on (they so so sequentially - it’s quite a beautiful thing to see). During that time, the browser shows “loading”. Now when I do this with many (50+) PCs, either the browser or PHP (unsure) becomes impatient at some point and terminates the script prematurely. The result is:

      • the multicast task is created, and waits for 50 hosts to join
      • n < 50 tasks are created for hosts to join the multicast task
      • m < n PCs have actually turned on (because of WOL)

      Maybe this is due to PHP script timeout? Maybe it is due to the browser deciding that the server must be dead if it doesn’t respond in time? In either case, it’s not scalable. I would like to task ALL my hosts at once.

      It would be better if there were a background process to create the tasks, so that the next page can load while that continues.

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Please try updating. I’ve added code to much more quickly create Multicast Tasks (and more accurately I may add). I’ve also added code that, for non-multicast tasks, will run in the background while you still can move around the pages. Hopefully this helps in all respects. This, for now, does mean multicast from groups will not generate the requisite snapin taskings, but it’s only because I need to think of the logic to enable it. It should work hopefully soon.

        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

        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
        • dolfD
          dolf
          last edited by

          Thanks! It flies now.

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            Glad I could help.

            Just an update, snapins should now be deployed for Multicast Tasks.

            I will work to update the other tasking types in a similar fashion.

            Thank you,

            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
            • Tom ElliottT
              Tom Elliott
              last edited by

              Now all group tasks are created doing a batch insert method. This should prove extremely efficient.

              The only part that isn’t handled is WOL once the tasking is created, however this shouldn’t pose much an issue as the FOG Scheduler service (normally cycled once every minute) will check for any tasks awaiting checking and send a WOL packet to those hosts. It may take a little longer, but the same result is achieved I think.

              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
              • dolfD
                dolf
                last edited by

                Great! I was about to say that the same goes for group unicasts. WOL by the FOG Scheduler service should be fine.

                1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman @Tom Elliott
                  last edited by

                  @Tom-Elliott said in Page timeout when creating multicast task:

                  This, for now, does mean multicast from groups will not generate the requisite snapin taskings, but it’s only because I need to think of the logic to enable it. It should work hopefully soon.

                  I’ve been learning about triggers in mysql. It’s really super efficient, you could do all the snapin stuff from deployment with triggers.

                  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
                  • 1 / 1
                  • First post
                    Last post

                  211

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project