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

Issues with Fog 1.5.2

Scheduled Pinned Locked Moved Solved
FOG Problems
4
44
6.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.
  • Q
    Quazz Moderator @K.Hays
    last edited by Jun 22, 2018, 1:56 PM

    @k-hays Try grep -irl pm.max_children /etc

    K 1 Reply Last reply Jun 22, 2018, 2:02 PM Reply Quote 0
    • K
      K.Hays @Quazz
      last edited by Jun 22, 2018, 2:02 PM

      @quazz Ok I found it! Now, what do you think the max i should put there is. Sometimes we might image up to two, maybe three labs at a time. would 90 be a stretch?

      Q 1 Reply Last reply Jun 22, 2018, 2:11 PM Reply Quote 0
      • Q
        Quazz Moderator @K.Hays
        last edited by Jun 22, 2018, 2:11 PM

        @k-hays It depends on how many resources your server has available to itself.

        We haven’t done a ton of testing on the exact numbers. The value will depend on the amount of RAM and how much the average PHP-FPM uses.

        Start with 40 as a safe value and go from there, imo.

        K 1 Reply Last reply Jun 22, 2018, 2:14 PM Reply Quote 0
        • K
          K.Hays @Quazz
          last edited by Jun 22, 2018, 2:14 PM

          @quazz Ok will do. I’ll end up testing this today as well. We’re using a server that has a lot of unused resources so we can devote a good bit to it. I also want to say that we are on the current dev-branch, so 1.5.4. These were all fresh builds as well, even on ubuntu. Does it automatically set the max children to 5 now?

          1 Reply Last reply Reply Quote 0
          • G
            george1421 Moderator
            last edited by Jun 22, 2018, 2:14 PM

            @k-hays said in Issues with Fog 1.5.2:

            . would 90 be a stretch?

            Don’t do that much you could run into a situation of resource exhaustion. Under normal imaging you shouldn’t see more than 10 worker thread. For max children I would set it to 40.

            If you are using FOG 1.5.2 or later here is what I would change in the www.conf file for php-fpm.

            php_admin_value[memory_limit] = 256M
            pm.max_requests = 2000
            pm.max_children = 40
            pm.min_spare_servers = 6
            pm.start_servers = 5
            

            Update those settings then restart php-fpm.

            Queue up your multicast then on the fog server linux console start top then press P to sort by CPU usage. Watch, you should have 5-7 php-fpm worker threads running, they should be the top cpu users.

            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!

            K 1 Reply Last reply Jun 22, 2018, 2:16 PM Reply Quote 1
            • K
              K.Hays @george1421
              last edited by Jun 22, 2018, 2:16 PM

              @george1421 Ok, does it make a difference if we do unicast? Just wondering

              G 1 Reply Last reply Jun 22, 2018, 2:18 PM Reply Quote 0
              • G
                george1421 Moderator @K.Hays
                last edited by george1421 Jun 22, 2018, 8:18 AM Jun 22, 2018, 2:18 PM

                @k-hays The memory setting will help the unicast imaging too

                But just to be sure none of your conditions have changed since your original post of 2 months ago? You are still having the same exact condition?

                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!

                1 Reply Last reply Reply Quote 0
                • K
                  K.Hays
                  last edited by Jun 22, 2018, 2:21 PM

                  In terms of network yes. The server itself is the same, but it’s been reloaded to debian 9 and 1.5.4 as opposed to ubuntu and 1.5.2.

                  K 1 Reply Last reply Jun 22, 2018, 2:22 PM Reply Quote 0
                  • K
                    K.Hays @K.Hays
                    last edited by K.Hays Jun 22, 2018, 8:23 AM Jun 22, 2018, 2:22 PM

                    @k-hays Also if you meant the error, then yes. It is the exact same issue (or at least extremely similar). I made the changes and will test it again shortly.

                    1 Reply Last reply Reply Quote 0
                    • K
                      K.Hays
                      last edited by K.Hays Jun 22, 2018, 11:05 AM Jun 22, 2018, 4:47 PM

                      So PHP wouldn’t restart and i’m pretty sure it was because i had set my min spare servers larger than the max. That being said, if my min is 6 (as you said) what should my max be?

                      Edit- @george1421 I set it to 6 just to see and PHP still failed with a different error this time. It says the start server can be less then the min spare and no more than the max. So what should i change them to?

                      G 1 Reply Last reply Jun 22, 2018, 5:30 PM Reply Quote 0
                      • G
                        george1421 Moderator @K.Hays
                        last edited by Jun 22, 2018, 5:30 PM

                        @k-hays Max should be 40 as I posted below.

                        php_admin_value[memory_limit] = 256M
                        pm.max_requests = 2000
                        pm.max_children = 40
                        pm.min_spare_servers = 6
                        pm.start_servers = 5
                        

                        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!

                        K 2 Replies Last reply Jun 22, 2018, 6:30 PM Reply Quote 0
                        • K
                          K.Hays @george1421
                          last edited by K.Hays Jun 22, 2018, 12:32 PM Jun 22, 2018, 6:30 PM

                          @george1421 Yes, and it is currently set to 40. When i said max i meant the Max_spare_servers option. So what it’s telling me is that pm.start_servers cannot be a smaller number than pm.min_spare_servers. Or at least thats the error i’m getting. The last things you had me change (pm.Start_servers and pm,.mid_spare_servers) are apparently causing the error. Also the pm.max_spare_servers that needs to be set higher than what we set the start_servers options as well. could i just set them to 5,6,7 respectively? Im sorry, i’m really not entirely sure how this works

                          1 Reply Last reply Reply Quote 0
                          • K
                            K.Hays @george1421
                            last edited by K.Hays Jun 22, 2018, 12:54 PM Jun 22, 2018, 6:39 PM

                            @george1421 Another update. I set Min_spare_servers = 6, max_spare_servers = 6, and start_servers = 6 and php successfully restarted/not sure if thats good or bad.

                            G 1 Reply Last reply Jun 22, 2018, 7:23 PM Reply Quote 0
                            • G
                              george1421 Moderator @K.Hays
                              last edited by Jun 22, 2018, 7:23 PM

                              @k-hays said in Issues with Fog 1.5.2:

                              max_spare_servers = 6

                              Set that value to 40 and make sure you have the memory allocated to 256M and you should be good to go. Understand this fix will only address imaging and not your initial post of html in the FOS screen.

                              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!

                              K 1 Reply Last reply Jun 22, 2018, 7:53 PM Reply Quote 0
                              • K
                                K.Hays @george1421
                                last edited by Jun 22, 2018, 7:53 PM

                                @george1421 ok so max_spare_servers needs to be 40. gotchya. Should i change the other 2 _servers settings from 6? Also should max_spare_servers be set to the same as number as pm.max_children?

                                K 1 Reply Last reply Jun 22, 2018, 7:54 PM Reply Quote 0
                                • K
                                  K.Hays @K.Hays
                                  last edited by Jun 22, 2018, 7:54 PM

                                  @k-hays also we have been able to get to the web gui recently without issue.

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    K.Hays
                                    last edited by Jun 22, 2018, 8:14 PM

                                    Well we went ahead and tested it the the _servers options set to 6,6,6 respectively just to see. It is in fact working. The image is running right now but we waited for the next batch in the unicast task to start and they did. We hadn’t previously gotten the first batch to finish successfully before that so it’s lookin good. So the only other thing you think i should change then would be max_spare_servers to 40; not either of the other min_servers/startserver settings from 6?

                                    G 1 Reply Last reply Jun 22, 2018, 8:35 PM Reply Quote 0
                                    • G
                                      george1421 Moderator @K.Hays
                                      last edited by Jun 22, 2018, 8:35 PM

                                      @k-hays Please, only change MAX server AND make sure you added the memory line for 256M. The rest of the values are ok at 6.

                                      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!

                                      K 1 Reply Last reply Jun 22, 2018, 8:38 PM Reply Quote 0
                                      • K
                                        K.Hays @george1421
                                        last edited by K.Hays Jun 22, 2018, 2:40 PM Jun 22, 2018, 8:38 PM

                                        @george1421 Yep the memory has been changed since this morning; and i will change the max server when the tasks complete. Thank you !! can or should the memory go higher? The server has 32 gigs of ram, not that it needs it.

                                        G 1 Reply Last reply Jun 22, 2018, 9:27 PM Reply Quote 0
                                        • G
                                          george1421 Moderator @K.Hays
                                          last edited by Jun 22, 2018, 9:27 PM

                                          @k-hays Not for the worker threads. We are finding (so far) 256MB per php-fpm worker is working well. Run with these setting and for sure provide feedback. Once we get these number working stable on all that are having issues we will include them in the fog 1.5.5 update.

                                          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!

                                          K 2 Replies Last reply Jun 25, 2018, 12:52 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 2 / 3
                                          2 / 3
                                          • First post
                                            34/44
                                            Last post

                                          217

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project