Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Re: meshconfig-agent-tasks not scheduling tasks regularly

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Re: meshconfig-agent-tasks not scheduling tasks regularly


Chronological Thread 
  • From: Casey Russell <>
  • To: Mark Feit <>
  • Cc: Larry Blunk <>, "" <>
  • Subject: Re: [perfsonar-user] Re: meshconfig-agent-tasks not scheduling tasks regularly
  • Date: Thu, 19 Oct 2017 13:04:37 -0500
  • Ironport-phdr: 9a23:RwkmDh0h9SZJpff3smDT+DRfVm0co7zxezQtwd8ZseMTLPad9pjvdHbS+e9qxAeQG96Ku7Qc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q89pDXYAhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7Vq4/Vyi84Kh3SR/okCYHOCA/8GHLkcx7kaZXrAu8qxBj34LYZYeYP+d8cKzAZ9MXXWhOXshRWSJPAY2ycpUBAPYaMOlCs4XwvUEDoQeiCQSuAu7k1z9GhmXx3a0/y+ksDxvJ3Bc+ENMOrX/asMj1NLwJUe+ryKnIySjIYvRK1jfn9YjIaQshru+IXbJ0asfRylMgFwXfjlqOr4zpJTWV2foRs2WC6edrSOyhi2kiqw5rozivwN8hio3IhoITyVDL6zh2wIczJdGiVEF7ZtukHINMtyCUNot2Xt8iTH9yuCog1rIGvpu7cDAXxJkmyBPTceGLf5WG7x75WuudPy10iG9qdb+/nxq+7Emtx+LmWsWpzVpHoDBJn9fSunwX1xHe6NCLSvhn8UenwzaAyQbT5vtCIU8qiarWLYMqzL0olpcLr0jOHzP6lUfzga+YdUgr4fSk5uHob7n6upOROYp5hR3iPqkvn8GyBPo0PwYBUmWd5O+yzqfs/VfjT7VPlvA2krfWsJTdJckDo662GQ5V0oI65xa4DjeqzM0UnHYZIF9Ldx+LlYfpO1bJIPD3CfewnU6gnytsx/DDJrHhA5PNIWbfkLr5Y7pw6lJQxQg2wNBR5J9bEa0NLff8V0PtqNDVABo0PBCoz+vmDdhw050SVGyAD6OBNaPdq16I5uYhI+mWY48VvS7wJOQ/5/7zln85gkESfa2t3ZYMa3C3BPJmI1+HbnrqmNsBF3kFvhYmQOzwlFKCSSJTZ2q1X68k/jE0FpimDYnYRoCqhryOxj27EoRLZmBdFF+MC2zld4GFW/cXdCKSOdFtniYFVbinV48uywuutAnkxLp7MObY4DMXuo/+1Is92+qGsBgo9nRaAsWBmzWIQWx1gksJQSM7xqZyvRY7x1ueh/tWmftdQPda/P5YGj0nLoXRy+gyX9voRxnac9ONYFWvRM+rB3c3Q85nkIxGWFp0B9j31kOL5CGtGbJA0uXTXJE=

BTW, this is a host that has NOT been pushed to the 4.0.2 beta, it's still running PS 4.0.1


Installed Packages
perfSONAR-repo.noarch                                                                                 0.8-1                                                                @Internet2
perfsonar-common.noarch                                                                               4.0.1-1.el6                                                          @perfSONAR
perfsonar-core.noarch                                                                                 4.0.1-1.el6                                                          @perfSONAR
perfsonar-graphs.noarch                                                                               4.0.1-1.el6                                                          @perfSONAR
perfsonar-lscachedaemon.noarch                                                                        4.0-1.el6                                                            @Internet2
perfsonar-lsregistrationdaemon.noarch                                                                 4.0.1-1.el6                                                          @perfSONAR
perfsonar-meshconfig-agent.noarch                                                                     4.0.1-1.el6                                                          @perfSONAR
perfsonar-meshconfig-jsonbuilder.noarch                                                               4.0.1-1.el6                                                          @perfSONAR
perfsonar-meshconfig-shared.noarch                                                                    4.0.1-1.el6                                                          @perfSONAR
perfsonar-oppd-bwctl.noarch                                                                           4.0-1.el6                                                            @Internet2
perfsonar-oppd-owamp.noarch                                                                           4.0-1.el6                                                            @Internet2
perfsonar-oppd-server.noarch                                                                          4.0-1.el6                                                            @Internet2
perfsonar-oppd-shared.noarch                                                                          4.0-1.el6                                                            @Internet2
perfsonar-testpoint.noarch                                                                            4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit.noarch                                                                              4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit-compat-database.noarch                                                              4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit-install.noarch                                                                      4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit-library.noarch                                                                      4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit-ntp.noarch                                                                          4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit-security.noarch                                                                     4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit-servicewatcher.noarch                                                               4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit-sysctl.noarch                                                                       4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit-systemenv.noarch                                                                    4.0.1-1.el6                                                          @perfSONAR
perfsonar-toolkit-systemenv-testpoint.noarch                                                          4.0.1-1.el6                                                          @perfSONAR
perfsonar-tools.noarch                                                                                4.0.1-1.el6                                                          @perfSONAR
perfsonar-traceroute-viewer.noarch                                                                    4.0.1-1.el6                                                          @perfSONAR
Available Packages
perfSONAR-repo-extras.noarch                                                                          0.8-1                                                                perfSONAR 
perfSONAR-repo-nightly.noarch                                                                         0.8-1                                                                perfSONAR 
perfSONAR-repo-staging.noarch                                                                         0.8-1                                                                perfSONAR 
perfsonar.noarch                                                                                      4.0.1-1.el6                                                          perfSONAR 
perfsonar-centralmanagement.noarch                                                                    4.0.1-1.el6                                                          perfSONAR 
perfsonar-meshconfig-guiagent.noarch                                                                  4.0.1-1.el6                                                          perfSONAR 
perfsonar-regulartesting.noarch                                                                       3.5.1.1-1                                                            perfSONAR 
perfsonar-ui-web.noarch                                                                               1.7.1-1                                                              perfSONAR 

pscheduler-account.noarch                                                                         1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-archiver-bitbucket.noarch                                                              1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-archiver-esmond.noarch                                                                 1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-archiver-failer.noarch                                                                 1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-archiver-http.noarch                                                                   1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-archiver-rabbitmq.noarch                                                               1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-archiver-syslog.noarch                                                                 1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-bundle-full.noarch                                                                     1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-core.noarch                                                                            1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-docs.noarch                                                                            1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-rpm.noarch                                                                             1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-server.noarch                                                                          1.0.1.2-1.el6                                                            @perfSONAR
pscheduler-test-clock.noarch                                                                      1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-dns.noarch                                                                        1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-idle.noarch                                                                       1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-idlebgm.noarch                                                                    1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-idleex.noarch                                                                     1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-latency.noarch                                                                    1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-latencybg.noarch                                                                  1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-rtt.noarch                                                                        1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-simplestream.noarch                                                               1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-throughput.noarch                                                                 1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-test-trace.noarch                                                                      1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-bwctliperf2.noarch                                                                1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-bwctliperf3.noarch                                                                1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-bwctlping.noarch                                                                  1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-bwctltracepath.noarch                                                             1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-bwctltraceroute.noarch                                                            1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-dnspy.noarch                                                                      1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-iperf2.noarch                                                                     1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-iperf3.noarch                                                                     1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-nuttcp.noarch                                                                     1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-owping.noarch                                                                     1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-paris-traceroute.noarch                                                           1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-ping.noarch                                                                       1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-powstream.noarch                                                                  1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-psclock.noarch                                                                    1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-simplestreamer.noarch                                                             1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-sleep.noarch                                                                      1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-sleepbgm.noarch                                                                   1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-snooze.noarch                                                                     1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-tracepath.noarch                                                                  1.0.1.1-1.el6                                                            @perfSONAR
pscheduler-tool-traceroute.noarch                                                                 1.0.1.1-1.el6                                                            @perfSONAR
[root@ps-ku-bw crussell]# 


Sincerely,
Casey Russell
Network Engineer
KanREN
phone785-856-9809
2029 Becker Drive, Suite 282
Lawrence, Kansas 66047
linkedin twitter twitter

On Thu, Oct 19, 2017 at 1:01 PM, Casey Russell <> wrote:
Mark and Larry,

    One of my hosts (ps-ku-bw) has failed to schedule tasks today.  This is one of my larger hosts and the MaxClients problem might have actually been the trigger that began the avalanche.  I've left the host broken in case Mark or one of the other developers wants information from it while it's in this failed state.

     At 9:47am yesterday, the httpd error log showed the following:

[root@ps-ku-bw crussell]# tail -f /var/log/httpd/error_log
[Wed Oct 18 06:22:07 2017] [warn] [client 139.162.108.53] incomplete redirection target of '/toolkit/' for URI '/' modified to 'http://164.113.32.57/toolkit/'
[Wed Oct 18 06:44:26 2017] [warn] [client 141.212.122.81] incomplete redirection target of '/toolkit/' for URI '/' modified to 'http://164.113.32.57/toolkit/'
[Wed Oct 18 08:41:56 2017] [warn] [client 54.174.92.112] incomplete redirection target of '/toolkit/' for URI '/' modified to 'http://ps-ku-bw.perfsonar.kanren.net/toolkit/'
[Wed Oct 18 08:44:26 2017] [warn] [client 107.170.201.175] incomplete redirection target of '/toolkit/' for URI '/' modified to 'http://164.113.32.145/toolkit/'
[Wed Oct 18 08:46:51 2017] [warn] [client 107.170.201.175] incomplete redirection target of '/toolkit/' for URI '/' modified to 'http://164.113.32.57/toolkit/'
[Wed Oct 18 09:11:21 2017] [error] [client 66.249.66.139] File does not exist: /var/www/html/robots.txt
[Wed Oct 18 09:28:02 2017] [error] [client 46.229.164.99] File does not exist: /var/www/html/robots.txt
[Wed Oct 18 09:32:52 2017] [warn] [client 155.94.88.58] incomplete redirection target of '/toolkit/' for URI '/' modified to 'http://ps-ku-bw.perfsonar.kanren.net/toolkit/'
[Wed Oct 18 09:41:38 2017] [warn] [client 155.94.88.58] incomplete redirection target of '/toolkit/' for URI '/' modified to 'http://ps-ku-bw.perfsonar.kanren.net/toolkit/'
[Wed Oct 18 09:47:29 2017] [error] server reached MaxClients setting, consider raising the MaxClients setting

Since then, nothing has logged in the httpd access log:  
[root@ps-ku-bw crussell]# tail -f /var/log/httpd/access_log
::1 - - [18/Oct/2017:09:47:02 -0500] "PUT /esmond/perfsonar/archive/9bc084ac0a8349ec9b2e94488ca62716/ HTTP/1.1" 201 2 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"
::1 - - [18/Oct/2017:09:47:03 -0500] "PUT /esmond/perfsonar/archive/ccc9b3f6b47b4ec5b63337c182dd2f97/ HTTP/1.1" 201 2 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"
::1 - - [18/Oct/2017:09:47:04 -0500] "PUT /esmond/perfsonar/archive/347c05205385475d988d6e663501096e/ HTTP/1.1" 201 2 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"
::1 - - [18/Oct/2017:09:47:04 -0500] "PUT /esmond/perfsonar/archive/347c05205385475d988d6e663501096e/ HTTP/1.1" 409 101 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"
::1 - - [18/Oct/2017:09:47:05 -0500] "PUT /esmond/perfsonar/archive/317550e6dae940bcb028c715220ec36c/ HTTP/1.1" 201 2 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"
::1 - - [18/Oct/2017:09:47:07 -0500] "PUT /esmond/perfsonar/archive/54534a09177a472c8c2880c89322100e/ HTTP/1.1" 201 2 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"
::1 - - [18/Oct/2017:09:47:08 -0500] "PUT /esmond/perfsonar/archive/693d654508ba4f209728da0de249fda6/ HTTP/1.1" 201 2 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"
::1 - - [18/Oct/2017:09:47:16 -0500] "PUT /esmond/perfsonar/archive/aad5e250b92044a9be0582a1890acafb/ HTTP/1.1" 201 2 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"
::1 - - [18/Oct/2017:09:47:31 -0500] "PUT /esmond/perfsonar/archive/0e594a3f088a422b9c2f253954e6be5a/ HTTP/1.1" 201 2 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"
::1 - - [18/Oct/2017:09:47:36 -0500] "PUT /esmond/perfsonar/archive/2024f2829908405e9353db034ec54c2d/ HTTP/1.1" 201 2 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"

The Pscheduler log shows that the tests that WERE scheduled are running and able to log (I believe) to the Central archive, but not locally.

Oct 19 12:57:19 ps-ku-bw archiver WARNING  17050500: Failed to archive https://localhost/pscheduler/tasks/e67b5ce2-dcfc-47e0-9989-c94b4fa52481/runs/61e2a10e-2915-4cff-9bee-de5a16756baa to esmond: 400: Invalid JSON returned
Oct 19 12:57:20 ps-ku-bw archiver WARNING  17050432: Failed to archive https://localhost/pscheduler/tasks/51f1cb7d-bd30-472f-bd51-5eb0b0ae2350/runs/75ce65dd-0606-49fc-8dcb-23f381429815 to esmond: Archiver permanently abandoned registering test after 2 attempt(s): 400: Invalid JSON returned
Oct 19 12:57:20 ps-ku-bw archiver WARNING  17050432: Gave up archiving https://localhost/pscheduler/tasks/51f1cb7d-bd30-472f-bd51-5eb0b0ae2350/runs/75ce65dd-0606-49fc-8dcb-23f381429815 to esmond
Oct 19 12:57:21 ps-ku-bw archiver WARNING  17050502: Failed to archive https://localhost/pscheduler/tasks/0bea838f-9368-4250-a893-3d61a4bdc7cd/runs/6d4417a8-3f18-470d-860c-9b6bf23e9dc0 to esmond: 400: Invalid JSON returned

I say "I believe" they're logging to the central MA, but not locally, because, as you may note, the API is unavailable if you try querying it for one of those URLs to see what happened.  (problem with the HTTPD daemon?).

[root@ps-ku-bw crussell]# service httpd status
httpd (pid  16970) is running...
[root@ps-ku-bw crussell]# service pscheduler-scheduler status
scheduler (pid  17017) is running...
[root@ps-ku-bw crussell]# service pscheduler-archiver status
archiver (pid  17004) is running...
[root@ps-ku-bw crussell]# service pscheduler-ticker status
ticker (pid  16999) is running...
[root@ps-ku-bw crussell]# service cassandra status
cassandra (pid  1810) is running...

I'll leave the host alone for a few hours in case anyone wants me to gather more info.  


Sincerely,
Casey Russell
Network Engineer
KanREN
2029 Becker Drive, Suite 282
Lawrence, Kansas 66047
linkedin twitter twitter

On Tue, Oct 17, 2017 at 2:44 PM, Casey Russell <> wrote:
Mark and Larry,

     I have seen this occasionally on my lower powered hosts, (and maybe on others, although I've been watching these lower powered hosts much closer, so I'm much more likely to have noticed it there.

     I don't have a host where that error is active, but here you can see where one of my hosts encountered the error yesterday (this was just before I installed the 4.0.2 beta on it and rebooted it). 

[root@ps-washburn-bw crussell]# cat /var/log/httpd/error_log | grep Max
[Mon Oct 16 16:50:42 2017] [error] server reached MaxClients setting, consider raising the MaxClients setting
[root@ps-washburn-bw crussell]# 

You can see that (today at least) these hosts do have a lot of connections open (sparing you the detailed output, although it's available if you want it).  Although that in an of its self is not necessarily a problem

[root@ps-washburn-bw crussell]# netstat -tan | wc -l
1238
(that's 1238 active TCP connections)

(Another of my lower powered hosts)
[crussell@ps-esu-bw ~]$ netstat -tan | wc -l
1903

Out of curiosity, I checked to see how many of those were hitting Apache on tcp port 80:
[root@ps-washburn-bw crussell]# netstat -an | grep ':80' | wc -l
78

[crussell@ps-esu-bw ~]$ netstat -tan | grep ':80' | wc -l
66

It doesn't seem too out of whack, but today may be entirely non-representative of what it looks like when the "MaxClients" problem was occurring.  Again, I installed the 4.0.2 beta on both of these hosts yesterday and the problem hasn't recurred since, so today's netstat results may not reflect what it looks like on an affected host.


Sincerely,
Casey Russell
Network Engineer
KanREN
2029 Becker Drive, Suite 282
Lawrence, Kansas 66047
linkedin twitter twitter

On Tue, Oct 17, 2017 at 12:32 PM, Mark Feit <> wrote:

Larry Blunk writes:

 


Has anyone experienced Apache hitting the MaxClients limit and hanging?   We've had this happen on several boxes
since upgrading to 4.01.   We've had to restart Apache to get them functioning again.  We've upped the
MaxClients limit on them, but it still occurs even after doubling the setting to 512.   These are high perfomance
boxes, so it doesn't seem like it should be a CPU issue.

 

There shouldn’t be a lot of connections to the HTTP server during normal operations; MeshConfig and task setup from remote nodes are the only things that should be connecting.  The internal parts of pScheduler poke the database directly.

 

If you encounter that again, I’d be interested to see what the process table and netstat say about what’s connected and from where and if there are old processes that connect and aren’t dying.

 

--Mark

 







Archive powered by MHonArc 2.6.19.

Top of Page