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

    WIN10 Multicast Imaging Issues

    Scheduled Pinned Locked Moved Solved
    Windows Problems
    3
    34
    2.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.
    • george1421G
      george1421 Moderator @Joe Gill
      last edited by

      @joe-gill So just multicasting is not working as you need it? (sorry too many threads).

      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!

      J 1 Reply Last reply Reply Quote 0
      • J
        Joe Gill @george1421
        last edited by

        @george1421

        That is correct.

        george1421G 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @Joe Gill
          last edited by george1421

          @joe-gill OK between imaging I want you to test something for me.

          Lets disable php-fpm (you’re on FOG 1.5.4 right?) If so, lets check to see if its php-fpm causing the problem.

          From the /etc directory search for the php-fpm handler with
          grep -R -e ":9000
          That should locate the correct configuration file. It should be in /etc/httpd or /etc/apache2 depending on your configuration. I suspect

          Look for lines that look like this

          #SetHandler application/x-httpd-php
          SetHandler "proxy:fcgi://127.0.0.1:9000"
          

          Change the location of the hash tag to this

          SetHandler application/x-httpd-php
          #SetHandler "proxy:fcgi://127.0.0.1:9000"
          

          Save and exit your editor.
          Now restart apache to reload the updated configuration
          systemctl restart httpd for RHEL based systems
          systemctl restart apache2 for Debian based systems

          I’m also suggesting that you create the info.php page as described here so we can test to see when php-fpm is running with apache: https://forums.fogproject.org/topic/12030/fog-using-a-huge-amount-of-memory-and-failing/11

          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!

          J 1 Reply Last reply Reply Quote 0
          • J
            Joe Gill @george1421
            last edited by

            @george1421

            I believe I have already done this.

            0_1528740738265_3b5a2eeb-ebd8-4a32-a530-55ca64674a83-image.png

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @Joe Gill
              last edited by

              @joe-gill Well then its pretty clear that php-fpm isn’t causing the multicasting issue. (nuts). Nothing of any value shows up in the multicasting logs when things go sideways?

              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!

              J 1 Reply Last reply Reply Quote 0
              • J
                Joe Gill
                last edited by Joe Gill

                @george1421
                I can post any logs, if you’d like. Multicast does complete. The image just does not function. I was out sick the last couple days. I’m back at it today. I’m hoping to get my new image done here this week. We’ll see.

                1 Reply Last reply Reply Quote 0
                • J
                  Joe Gill @george1421
                  last edited by

                  @george1421

                  The multicast logs look normal.

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @Joe Gill
                    last edited by

                    @joe-gill So is imaging working correctly now with apache-php? If so I want to break it to find out what is going sideways.

                    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!

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      Joe Gill @george1421
                      last edited by

                      @george1421
                      Multicast fails on both Apache-PHP and FPM.

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

                        @joe-gill mind installing working branch to see if it helps with mulyicast? I’d also recommend trying the rendezvous option for mulyicast. This can be setup in fog settings. Set the address to the ip of your fog server, then as a failsafe restart the multicast manager service and then the clients.

                        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

                        J 2 Replies Last reply Reply Quote 0
                        • J
                          Joe Gill @Tom Elliott
                          last edited by

                          @tom-elliott
                          Thanks! Will do! I’ll report back. I will try a few labs today and see what happens.

                          1 Reply Last reply Reply Quote 0
                          • J
                            Joe Gill @Tom Elliott
                            last edited by

                            @tom-elliott
                            @george1421

                            So… I tasked 5 machines for a test batch. Multicast worked on those 5 just fine. The image seems to be running fine. The task session was extremely fast. They were finished in less than 8 minutes.

                            I tasked 30 more… and the interface locks up. I cannot get to the interface now at all.

                            My server is running Debian 9.4. It ran fine using Apache. Now that we are back to FPM, the interface is locking up tight.

                            Thanks guys! I’ll be around today until noon MST than again tomorrow 7 - 3 MST.

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              Joe Gill @Joe Gill
                              last edited by

                              I restarted PHP-FPM and the interface came back up.

                              1 Reply Last reply Reply Quote 0
                              • J
                                Joe Gill
                                last edited by

                                Well I think I may have something for you guys now.

                                I had a batch of clones multitasking after I restarted the PHP-FPM services when things locked up… Some of the clones in the group did not start. Some did. The ones that started hung at this screen.

                                0_1528990027796_IMG_20180614_091812.jpg

                                Than after a bit of time, I noticed the interface was locked up once again… So I restarted PHP-FPM services and got the following message…

                                0_1528990162953_IMG_20180614_092017.jpg

                                Let me know if you need any log files. Thanks!

                                1 Reply Last reply Reply Quote 0
                                • J
                                  Joe Gill
                                  last edited by

                                  @Tom-Elliott
                                  @george1421

                                  This might help with the Debian 9 issue.

                                  0_1528994080142_Screenshot from 2018-06-14 10-33-30.png

                                  Looks like the pm.max_childeren setting has been reached. That is when the server interface locks up.

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

                                    @joe-gill can you try setting max children to say 200 and restart php fpm

                                    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

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      Joe Gill @Tom Elliott
                                      last edited by

                                      @tom-elliott
                                      I am playing with it right now. Based on having 4 gb of RAM allotted for the server. I came up with these from another website about php-fpm.

                                      I reset the settings to the following:

                                      pm.max_children = 40
                                      pm.start_servers = 15
                                      pm.min_spare_servers = 15
                                      pm.max_spare_servers = 25
                                      pm.max_requests = 500

                                      So far PHP-FPM hasn’t bombed out. I will report back after I run a few more things.

                                      Thanks!

                                      george1421G 1 Reply Last reply Reply Quote 0
                                      • george1421G
                                        george1421 Moderator @Joe Gill
                                        last edited by george1421

                                        @joe-gill Excellent find.

                                        OK we can start debugging (i.e. better understanding what is going on) from here.

                                        When you are running your multicast with 20-30 systems. I need you to run a command on the fog server.
                                        ps -ylC php-fpm --sort:rss
                                        Will print out all of the php-fpm processes. We are interested in the RSS column. In you mind, just give an estimate of the average size of the memory consumed.

                                        FWIW: ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"Mb") }' will average the memory consumed by all worker threads.

                                        Once imaging is done stop php-fpm and check the free ram and record that value.

                                        Report back the number.

                                        The next test is I want to see if there is a direct correlation between the number of php-fpm worker threads and the number of hosts in your multicast pool. With your new numbers you will need more than 15 hosts in your deployment queue to see any change in the number of worker threads.

                                        You can probably drop back the start_servers, min_spare_servers back to 5, and then drop your max_spare_servers back to 8-10.

                                        The idea is the worker threads are dynamic. Starting up with 5 is not a bad number, and setting min spare will leave 5 running even if there is not requests coming in.

                                        There is a default timer if a worker thread is not awakened in 10 seconds the php-fpm management process will kill it off returning its memory back to the system. The management process will kill off stagnant workers sitting around for 10 seconds until the min_spare_servers is reached. In your case if there are any worker counts above 25, they will be killed immediately to get back to 25 spare threads. The point of all of this is a dance between workers sitting around not doing anything but consuming memory and having system resources.

                                        My suspicion is that there is a direct correlation between multicast clients and worker threads (1:1). Setting the number of max_children too high might starve your FOG server of ram.

                                        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!

                                        J 1 Reply Last reply Reply Quote 0
                                        • J
                                          Joe Gill @george1421
                                          last edited by

                                          @george1421
                                          Very interesting! I will run those tests here later this morning. The images so far have worked with Multicasting also. I haven’t had any issues with loosing interactivity with my FOG interface either since I adjusted things.

                                          Stay tuned. I’ll have some results to post here in about an hour or so.

                                          J 1 Reply Last reply Reply Quote 1
                                          • J
                                            Joe Gill @Joe Gill
                                            last edited by

                                            @george1421

                                            OK. So here is some feedback.

                                            I ran ps -ylC php-fpm --sort:rss with 27 clients running a multicast session. I did not get any results at all returned.

                                            0_1529082844498_f0e39a2c-8602-4372-b0aa-26a06f32efa5-image.png

                                            I did have php-fpm7.0 -F -c /etc/php/7.0/fpm/php-fpm.conf running. In fact it had been running since I ran my last Multicast sessions. I hadn’t received any more errors until this morning when I ran a batch. Incidentally, when I received the warning below, I ran the command above and it still didn’t return anything.

                                            0_1529082781337_ec95aeb0-fdcb-4385-993c-a18890bd6836-image.png

                                            I have that multicast session open as we speak. So if their are any other things you’d like me to try PM me.

                                            george1421G 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post

                                            166

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project