• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.0k
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.
  • D
    dolf
    last edited by Jul 16, 2016, 2:31 PM

    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
    • T
      Tom Elliott
      last edited by Jul 16, 2016, 5:22 PM

      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

      W 1 Reply Last reply Jul 17, 2016, 4:50 AM Reply Quote 0
      • D
        dolf
        last edited by Jul 16, 2016, 7:09 PM

        Thanks! It flies now.

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Jul 16, 2016, 8:19 PM

          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
          • T
            Tom Elliott
            last edited by Jul 16, 2016, 10:55 PM

            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
            • D
              dolf
              last edited by Jul 17, 2016, 12:24 AM

              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
              • W
                Wayne Workman @Tom Elliott
                last edited by Jul 17, 2016, 4:50 AM

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

                162

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project