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

1.3.4 - high cpu load - client login

Scheduled Pinned Locked Moved Unsolved
FOG Problems
7
90
34.6k
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.
  • T
    Tom Elliott @UWPVIOLATOR
    last edited by Feb 22, 2017, 4:35 PM

    @UWPVIOLATOR said in 1.3.4 - high cpu load - client login:

    ched MaxRequestWorkers s

    What’s your client checkin time set to?

    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

    U 1 Reply Last reply Feb 22, 2017, 4:39 PM Reply Quote 0
    • U
      UWPVIOLATOR @Tom Elliott
      last edited by Feb 22, 2017, 4:39 PM

      @Tom-Elliott

      30min but I have GPO pushed out to stop all FOG Service until we get it stable.

      If you look back a few posts. I think encryption is part of the issue. All our clients encryptions were broke and replying back every minute. We tried to reset all but we got errors. So at this point I am not sure all clients encryptions have been reset.

      mysql
      use fog
      UPDATE hosts SET hostPubKey=“”, hostSecToken=“”, hostSecTime=“0000-00-00 00:00:00”;

      T 1 Reply Last reply Feb 22, 2017, 4:46 PM Reply Quote 0
      • T
        Tom Elliott @UWPVIOLATOR
        last edited by Tom Elliott Feb 22, 2017, 11:06 AM Feb 22, 2017, 4:46 PM

        @UWPVIOLATOR As long as things are “usable” you might have better luck just running:

        UPDATE `hosts` SET `hostPubKey`= '', `hostSecToken` = '';
        

        The hostSecTime is irrelevant at that point.

        I don’t think simply clearing them will fix the problem though. I suspect what’s happening is the hosts are being “kicked” out because there’s simply too many.

        Another way to achieve the “reset all” would be:

        Put all hosts into a group.

        From the group you can then reset all data (whether or not there is data to be reset).

        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

        U 1 Reply Last reply Feb 22, 2017, 4:50 PM Reply Quote 0
        • U
          UWPVIOLATOR @Tom Elliott
          last edited by Feb 22, 2017, 4:50 PM

          @Tom-Elliott

          We tried to put them all into one group before. We have to many hosts and it crashes.

          Will try UPDATE hosts SET hostPubKey= ‘’, hostSecTok = ‘’;

          We want to leave FOG alone today since we can do imaging while the GPO is in effect. We will then schedule an update to RC10 or newest. Then see if it stays stable. Then start removing the GPO site by site to see if we crash it again.

          Did you see the mpm_prefork.conf file I posted below? Does that look right?

          U T 2 Replies Last reply Feb 22, 2017, 4:56 PM Reply Quote 0
          • U
            UWPVIOLATOR @UWPVIOLATOR
            last edited by Feb 22, 2017, 4:56 PM

            @Tom-Elliott

            ERROR 1054 (42S22): Unknown column ‘hostSecTok’ in ‘field list’

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott @UWPVIOLATOR
              last edited by Feb 22, 2017, 5:06 PM

              @UWPVIOLATOR Edited the original, sorry i missed the en at the end.

              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

              U 1 Reply Last reply Feb 22, 2017, 5:28 PM Reply Quote 0
              • U
                UWPVIOLATOR @Tom Elliott
                last edited by Feb 22, 2017, 5:28 PM

                @Tom-Elliott

                Query OK, 4023 rows affected (0.15 sec)
                Rows matched: 21413 Changed: 4023 Warnings: 0

                1 Reply Last reply Reply Quote 0
                • U
                  UWPVIOLATOR
                  last edited by Feb 22, 2017, 8:58 PM

                  @Tom-Elliott

                  What is this doing that it is pulling so much resources? Happening multiple times a day.

                  0_1487797067900_upload-2b392fa5-d959-4d04-99e9-9ef4edc89b55

                  J W U 3 Replies Last reply Feb 22, 2017, 9:27 PM Reply Quote 0
                  • J
                    Junkhacker Developer @UWPVIOLATOR
                    last edited by Feb 22, 2017, 9:27 PM

                    could you verify for me the path listed for “Snapin Path” in your Storage management master node

                    signature:
                    Junkhacker
                    We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                    A 1 Reply Last reply Feb 22, 2017, 9:40 PM Reply Quote 0
                    • A
                      andjjru @Junkhacker
                      last edited by Feb 22, 2017, 9:40 PM

                      @Junkhacker /opt/fog/snapins

                      Sorry for the confusion earlier with us all participating here, I should’ve introduced myself.

                      J 1 Reply Last reply Feb 22, 2017, 9:48 PM Reply Quote 0
                      • J
                        Junkhacker Developer @andjjru
                        last edited by Feb 22, 2017, 9:48 PM

                        @andjjru i’m not entirely familar with that part of the code, but the md5sum task must be part of the image replicator service. i knew we did that for snapins, but i didn’t think we did it for images. anyway, perhaps you should try disabling IMAGEREPLICATORGLOBALENABLED until most of the clients have had a chance to check in and reset their keys

                        signature:
                        Junkhacker
                        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                        A 1 Reply Last reply Feb 22, 2017, 10:06 PM Reply Quote 2
                        • A
                          andjjru @Junkhacker
                          last edited by Feb 22, 2017, 10:06 PM

                          @Junkhacker Alright I disabled IMAGEREPLICATORGLOBALENABLED and that process went away. Thanks.

                          1 Reply Last reply Reply Quote 2
                          • W
                            Wayne Workman @UWPVIOLATOR
                            last edited by Feb 23, 2017, 12:30 AM

                            @UWPVIOLATOR said in 1.3.4 - high cpu load - client login:

                            What is this doing that it is pulling so much resources? Happening multiple times a day.

                            Not long ago, a week or so, a change was made so the entire images got hashed instead of just the first 10 megs.

                            Turn the occurrence of this way down:
                            Web Interface -> FOG Configuration -> FOG Settings -> FOG Linux Service Sleep Times -> IMAGEREPSLEEPTIME Set that to something like 24 hours.

                            The default is 600 seconds. What I’m guessing is you have a ton of images and it takes hours to hash them all - thus your FOG Server is always slammed.

                            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/

                            T 1 Reply Last reply Feb 23, 2017, 12:35 AM Reply Quote 0
                            • T
                              Tom Elliott @Wayne Workman
                              last edited by Feb 23, 2017, 12:35 AM

                              @Wayne-Workman I will go back to using 10mb. It wasn’t using the first 10mb though. Because it was constantly pinging for traffic across ftp. It only checked the filesizes originally. While this worked, it failed to detect changes in files like d1.partitions that might have been updated.

                              So I re-added the “file hash” checking as a means but made it so the hashing was done at the “local” node’s rather than at the single “side”.

                              I am trying to check things out.

                              I’m thinking about testing the last 10mb of the file though as it’s fully possible the first 10 mb would be the same, but much less likely that the last 10 mb would be.

                              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 Feb 23, 2017, 12:41 AM Reply Quote 0
                              • W
                                Wayne Workman @Tom Elliott
                                last edited by Wayne Workman Feb 22, 2017, 6:43 PM Feb 23, 2017, 12:41 AM

                                @Tom-Elliott This appears to work for hashing the last 10 megs. Also works for files that are sub-10MB

                                [root@fog-server Acerbase]# tail -c 10485760 d1p1.img | md5sum
                                326ea3163c9bc3e202fa323e47f02b23  -
                                

                                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/

                                T 1 Reply Last reply Feb 23, 2017, 12:43 AM Reply Quote 1
                                • T
                                  Tom Elliott @Wayne Workman
                                  last edited by Feb 23, 2017, 12:43 AM

                                  @Wayne-Workman I’m probably going to go with sha512sum to ensure less potential of collision (while md5 shouldn’t have too many).

                                  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 Feb 23, 2017, 12:44 AM Reply Quote 1
                                  • W
                                    Wayne Workman @Tom Elliott
                                    last edited by Feb 23, 2017, 12:44 AM

                                    @Tom-Elliott Doesn’t really matter what you choose now that we’re only going to hash the last 10 megs. Speed differences in them won’t be noticeable.

                                    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
                                    • T
                                      Tom Elliott
                                      last edited by Tom Elliott Feb 22, 2017, 6:57 PM Feb 23, 2017, 12:52 AM

                                      Updated working-1.3.5.

                                      I want to push up RC-11, but want to hear more back about the init’s (which will have to wait until at least tomorrow 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

                                      F 1 Reply Last reply Feb 28, 2017, 3:40 PM Reply Quote 0
                                      • U
                                        UWPVIOLATOR
                                        last edited by Feb 24, 2017, 12:54 AM

                                        Good News! CPU load was low all day today. Mid day we turned the FOG Service back on at a few sites. We will monitor this tomorrow morning then add more clients back and report back.

                                        What we did.

                                        Disabled IMAGEREPLICATORGLOBALENABLED
                                        Increased MaxRequestWorkers from 150 to 500 in mpm_prefork_module
                                        Reset all host encryption UPDATE hosts SET hostPubKey= ‘’, hostSecToken = ‘’;

                                        F 1 Reply Last reply Feb 28, 2017, 7:13 PM Reply Quote 0
                                        • T
                                          Tom Elliott
                                          last edited by Feb 24, 2017, 1:45 PM

                                          Do you guys think it’s suitable to solve this yet, or just hold for a little bit?

                                          Would you guys mind jumping on the working branch to see if the changes there will help fix the issue more directly? I believe the high load was coming from the constant md5summing that was happening for each image every cycle the replicator service was running.

                                          I’ve switched out to using the first and last 10 mb of the files at both the remote and local systems, hash those together (Thanks @Wayne-Workman and @Junkhacker) and compare. So it’s still entirely possible that load can still get high (if it has to replicate multiple images/snapins at the same time) but it should be less CPU intensive during the “checking” processes.

                                          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

                                          U 1 Reply Last reply Feb 24, 2017, 2:43 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 4 / 5
                                          4 / 5
                                          • First post
                                            61/90
                                            Last post

                                          213

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project